# Advanced Scenes Usage

#### Scenes Flow

If there are flow map configured in your project, you can use that as well inside the scenes array.\
For example:

If you configured in `Platform - Flow Map` this scenes flow definition:

<figure><img src="/files/0OaXEJOyDPL45NsFjQdU" alt=""><figcaption></figcaption></figure>

You can use the SDK with:

{% code fullWidth="false" %}

```javascript
BlingsPlayer.create({
// ...
  scenes: [{ "lineup": "short flow" }] 
})
```

{% endcode %}

#### Scenes with data

You can also pass data directly to each scene, instead of passing global data. This will allow re-using same scene with different data

```javascript

BlingsPlayer.create({
// ...
  scenes: [ 
    "Intro Scene", 
    { id: 'Prodcut Scene', data: products[1] },
    { id: 'Prodcut Scene', data: products[2] }
  ],
  data: { user_name: "John" } // Data that exist on scene level will override global data 
})

```

**Example usage of data in scenes:**

{% columns %}
{% column %}

<pre class="language-json5"><code class="lang-json5"><strong>// example data: product 1 
</strong>{ 
  days_left: 4,
  title: "earn 200 bonus points",
  description: "Iced Coffee with..",
  CTA_link: "link.com/prod1",
  image: "images.com/prod1.png"
}
</code></pre>

![](/files/b52KzRoC7HBRILTmzbxd)
{% endcolumn %}

{% column %}

<pre class="language-json5"><code class="lang-json5"><strong>// example data: product 2 
</strong>{ 
  days_left: 4,
  title: "$6.99 Breakfat Combo",
  description: "Classic Breakfast..",
  CTA_link: "link.com/prod2",
  image: "images.com/prod2.png"
}
</code></pre>

![](/files/Jy3ymXJkfTjD8lwhDgVc)
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blings.io/developers/getting-started/advanced-topics/advanced-scenes-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
