# Editing Scenarios

## Composing scenarios

To compose a scenario, drag and drop steps from the right panel into the workflow.

![](/files/-M6ivV08mHG6jW1EXyVs)

[Action](/scenarios/editing-scenarios/action-steps.md), [Integration](/scenarios/editing-scenarios/integration-steps.md) and [System](/scenarios/editing-scenarios/system-steps.md) steps have one connector that leads to the next step. [Condition steps](/scenarios/editing-scenarios/condition-steps.md) have two connectors: one for 'true' and one for 'false'.

## Scenario status model

There are two scenario views:

* **Editing** view (draft): This view represents the current draft of your scenario, where you can design and modify it
* **Running** view: This view represents a scenario which currently processes data (if it is not stopped). The running view can differ from the draft

When you **publish** your draft, the current running view is archived as a new version, and your draft becomes current active version:

![](/files/-M6j1rrNetCzCEDnNsvH)

{% hint style="info" %}
Publishing a scenario does not affect the STOP/RUN state.
{% endhint %}

To manage versions of your scenarios:

* Click 'Edit' to edit the Draft
* Click 'Publish draft' to update the current running version (the old one is archived). Don't forget to RUN your scenario. By default, it is in the Stopped state.

![](/files/-M6j8HLfdxyV4pp_jl7_)

The Running view provides the following instrument panels:

* Scenario logs: Logs for each step/object
* Debug scenario: Manually push an object into the scenario

The Editing view has the following instrument panels:

* Scenario steps: A visual representation of your scenario's workflow
* Debug scenario: Manually test your scenario
* Scenario logs: Logs for each step/object
* Versions history: View all versions and revert your scenario draft to a previous one if needed

## Scenario versions

Every time you publish a draft, a new version is saved. You can select any version and replace your draft with it to manage changes effectively and maintain a history of your scenario's evolution.

![](/files/-M6j9_JDC6jC5xj7pcez)


---

# 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://readme.directual.com/scenarios/editing-scenarios.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.
