> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/scenarios/create-and-configure-a-scenario/how-to-configure-a-scenario-step.md).

# How to Configure a Scenario Step

{% hint style="info" %}

* **Scenario step** — a single stage inside a scenario with source, destination, and optional conditions
* **Conversion rule** — a rule that transforms incoming or outgoing files into another structure or format
* **XSLT** — a transformation language used in conversion rules and scenario conditions

See the [Glossary](/glossary/glossary.md) for DocStudio term definitions.
{% endhint %}

### Configure the first step

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

1. In **Step name**, enter a name.
2. In **Destination template UUID**, paste the UUID, or unique ID, of the target template for the next envelope.
3. In **XSLT conversion rule**, paste the rule that maps data from the source envelope to the destination envelope.
4. Enable **Send an envelope immediately after starting a step** if the next envelope must be sent automatically.
5. Click the **Save** <img src="/files/Cc9wRxz4yr2WrK09Ynjl" alt="" data-size="line"> icon in the upper-right corner of the step.

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

After you save the first step, you can add another step or save the scenario.

### Add and configure 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** so they match the destination of the previous step.
3. Configure the destination template and conversion rule like in the first step.
4. Enable **Condition** if this step must run only in specific cases.
5. Save the step.

### Configure optional conditions

Conditions are optional. Use them when the step must run only for specific source data.

See [Scenario Step Conditions](/user/scenarios/condition-types/scenario-step-conditions.md) for condition logic and supported condition types.

### Before you save

* make sure the destination template UUID is set
* check that the destination template version is correct
* add the XSLT conversion rule
* configure a condition if the step must run only in specific cases

### Next steps

* [Scenario Step Conditions](/user/scenarios/condition-types/scenario-step-conditions.md)
* [How to Run a Scenario](/user/scenarios/running-scenarios/how-to-run-a-scenario.md)
* [How to Run a Scenario via Integration](/user/scenarios/running-scenarios/how-to-run-a-scenario-via-integration.md)
