# Include Interaction Action

This action will dynamically include an interaction from a behaviour and execute it as part of the current behaviour.

{% hint style="danger" %}
Make sure the **bot** you're referencing is **online** when using the "Include Interaction" action.&#x20;

if it's offline, the action will fail. Even if the bot goes offline later, this action will still break during the flow.
{% endhint %}

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-MV0yw3vTw5OsVvxdhKw%2F-MV0zkBOz7XLHlFsinuA%2Fimage.png?alt=media\&token=1b007d5d-1be3-4778-b7ae-a9aaa5187bd2)

### Settings

The action uses the following settings:

| Setting     | Description              | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| ----------- | ------------------------ | ------------------------------------------------------------------------ |
| Bot         | The selected bot         | :no\_entry:                                                              |
| Behaviour   | The selected behaviour   | :no\_entry:                                                              |
| Interaction | The selected interaction | :no\_entry:                                                              |

### Remarks

The selected interaction will be included at the position of the action and will inherit the current behaviour settings and locations. If the included interaction contains relative [Go To](https://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.gotointeractionaction) actions they will relatively refer to the current behaviour and not to the source one.

When including an interaction from another bot, make sure to build your [Go To ](https://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.gotointeractionaction)actions as relative or dynamic. Local redirections will not be imported and will fail during chatbot execution.

It is possible for an included interaction to contain another include action pointing to a different interaction: the Xenioo engine will correctly expand all included actions recursively.

{% hint style="info" %}
Interactions are statically included in the bot at runtime and do not change if the source interaction is changed. To update the included interaction the chatbot using this action must be [re-published](https://docs.xenioo.com/basic-concepts/publishing).
{% endhint %}

### Trigger

This action does not have any trigger.

### Variables

This action does not create any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| 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.
