# How to Configure a Scenario Step

A scenario step routes an envelope to a destination template. It can also transform data using an XSLT conversion rule.

### Configure a step

<figure><img src="/files/Ym5DX2wkj7V5Zj3fXcAY" alt=""><figcaption></figcaption></figure>

1. In **Step name**, enter a name.
2. In **Destination template UUID**, paste the template UUID.
3. In **XSLT conversion rule**, paste the rule to generate the envelope payload.\
   — Optional: Enable **Send an envelope immediately after starting a step**.
4. Click the **Save** <img src="/files/Cc9wRxz4yr2WrK09Ynjl" alt="" data-size="line"> icon (upper-right of the step).

{% hint style="info" %}
After you enter **Destination template UUID**, the system will auto-fill the latest template version UUID.
{% endhint %}

### Add the next step

1. Next to **Scenario steps**, click the <img src="/files/elWCthXICFctKB1GgY5H" alt="" data-size="line"> button.
2. Fill in **Source template UUID** and **Source template version UUID** from the previous step.\
   — Optional: enable **Condition** if this step should run only in specific cases.
3. Configure the destination and conversion rule like in the first step.


---

# 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://support.docstudio.com/user/scenarios/creating-and-configuring/how-to-configure-a-scenario-step.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.
