# How to Send the Client to a Scenario After a Dialog Is Closed?

The conversation with the operator is over, but the work with the client is not. One client should get an appointment offer, another a request to rate the service, and a third a way back to the menu. The status an operator uses to close the dialog can send the client to the right part of the scenario automatically. You set this up separately for each bot.

## When You'll Need This

- After the "Resolved" status, the bot should ask for a rating, and after the "No reply" status, it should send a reminder.
- The bot has several sections (booking, payment, menu), and after the conversation the client should go to a specific one.
- Several bots use the same status, and each of them should lead the client to its own part of the scenario.

## What's Important to Know

- **Alias** — the alias of an **Entry Point** node in the bot scenario (the **Connector alias** field in the node settings). After the dialog is closed, the bot moves the client to this node.
- **Default transition** — the chat-closed alias set in the **Connect to Operator** node. If the status has no transition, the client goes to this alias.
- The transition is set up **for each bot separately**: the same status can lead to different parts of the scenario in different bots.
- The **Bots** field defines in which bots' dialogs operators see the status: empty — in all of them, filled in — only in the selected ones. Add every bot that needs this status, even if you set up the transition only for some of them.
- The transition works when an operator closes the dialog with this status or changes the dialog status to it.
- The status does not affect the transition, and the client follows the aliases from the **Connect to Operator** node, as without the setting, when:
  - the client closes the dialog;
  - the dialog closes due to inactivity;
  - an operator closes several dialogs at once with **Close dialogs** or **Send and close dialogs**.
- If the alias is later removed from the scenario, the client follows the default transition.
- If the transition after chat closing is turned off in the **Connect to Operator** node, the status transition does not work either.

## Before You Start

- [x] You are logged in with supervisor or administrator rights and have access to operator panel settings.
- [x] The bot scenario has an **Entry Point** node with the alias you need.
- [x] The feature is enabled for your system. If the status panel has no **Send the client to a scenario after closing** block, contact your platform administrator.

## Step-by-Step Instructions

### 1. Open the Status Panel

1. Open **Menu → Settings**.
2. In the sidebar, expand the **Core entities** group and select **Dialog statuses**.
3. Click the pencil icon in the status row — the status panel opens on the right. To set up the transition for a new status, click **Add status**.

### 2. Select Bots and Turn On Dialog Closing

1. In the **Bots** field, select the bots the status applies to. The **Send the client to a scenario after closing** block shows a row for each selected bot.
2. Lower in the same panel, turn on the **Closes the dialog** switch. While it is off, the transition block is inactive: the transition works only for statuses that close the dialog.

### 3. Select Aliases for the Bots

1. Go back to the **Send the client to a scenario after closing** block and select the checkbox in the bot row — the **Scenario alias** field becomes active.
2. Open the list and select an alias. The list shows only this bot's aliases; start typing to filter it, or type the alias manually.
3. Repeat for the other bots. If a bot does not need the transition, leave its checkbox cleared.
4. Click **Edit** to save the changes (for a new status — **Create**).

If a bot's checkbox is selected but no alias is chosen, the save button stays inactive. Under the block, you see the message "Choose an alias for every bot with the redirect enabled". If you type an alias that does not exist in this bot's scenario, the system does not save the status and shows an error.

## What Happens Next

When an operator closes a dialog with this status, the bot continues the scenario from the selected alias. The client immediately receives the message from that part of the scenario. For bots without a transition, the client follows the default transition.

## How to Verify Everything Worked

1. Message a bot that has the transition set up and go through the scenario until an operator connects.
2. In the operator panel, close this dialog with the status that has the transition.
3. Make sure the client received the message from the part of the scenario the alias leads to.

## Related Materials

- [How to configure dialog statuses](/en/settings/how-to/configure-chat-statuses.md)
- [What are tags and dialog statuses](/en/settings/explanation/tags-and-dialogue-statuses.md)
- [Handing the chat to a live operator](/en/scenariobuilder/explanation/connect-to-operator-node.md)
- [Connect to Operator node: dialog completion aliases](/en/actionjail/reference/actions/operator_panel__connect_to_operator_with_msg.md#dialog-completion-and-aliases)
- [Entry Point node parameters](/en/scenariobuilder/reference/entry-point-parameters.md)
- [What an alias is in a scenario](/en/product-glossary.md#alias-entry-point)
