> For the complete documentation index, see [llms.txt](https://docs.xenioo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.stopinteractionaction.md).

# Flow Control Action

Use this action to stop the flow execution and return to the user. You can use this action as a mean to stop multiple actions or to suspend temporary ( block ) or indefinitely any user interaction.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2FEZ1AINz3PJOEFh3bctGK%2Fimage.png?alt=media&amp;token=58e67471-93b7-4dbc-830c-5cabfaa533e1" alt=""><figcaption></figcaption></figure>

### Settings

The action uses the following settings:

| Setting                    | Description                                                                                                          | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing.md) |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| End Execution              | Setting this flow state will end any other action or operation execution and send back control to the user           | :no\_entry:                                                                 |
| Block User                 | Setting this flow state will start the user lock procedure from the channel                                          | :no\_entry:                                                                 |
| Telegram Group - Member Id | If specified, the indicated **user id** will be blocked from the channel, otherwise the current user will be blocked | :white\_check\_mark:                                                        |
| Duration                   | The duration of the block                                                                                            | :no\_entry:                                                                 |
| Duration Type              | The type of the duration set above, ranges from: minutes hours, days or months                                       | :no\_entry:                                                                 |
| Permanent                  | If flagged, duration and duration type will be disabled and the block is indefinitely                                | :no\_entry:                                                                 |
| Message                    | The message that will be displayed to the user before the block becomes active and everytime he types back           | :white\_check\_mark:                                                        |

{% hint style="warning" %}
**Telegram Group Member Id**

Only has an effect on Telegram, and the main use is in Telegram group chats. There the bot is serving many members at once, so you can target one particular member, for example someone a moderator flagged, and the ban is applied directly by Telegram as a real channel ban.
{% endhint %}

### Remarks

The Channel User Id can be used to specify a very specific user ban and is currently supported only in Telegram. You can use this setting in a Telegram group chat to ban a very specific user.

All other channels ban are managed directly by Xenioo by locking the chatbot interaction with the specified user.

### Trigger

This action has no trigger.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability                         |
| ---------------- | ------------------------------------ |
| Facebook         | Fully Available.                     |
| WhatsApp         | Fully Available.                     |
| Telegram         | Fully Available. Channel direct ban. |
| Web              | Fully Available.                     |
| Alexa            | Fully Available.                     |
| Google Assistant | Fully Available.                     |
| Slack            | Fully Available.                     |
| API              | Fully Available.                     |

This action can be used only inside interactions and not as child of other actions.&#x20;

### Further Reading

{% embed url="<https://www.xenioo.com/en/learn-how-create-telegram-group-chatbot/>" %}
