> 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.setnlpcontextaction.md).

# Set Context Action

This operation will alter or clear the current [NLP conversation context](/ai/nlp/intents.md#context). Different contexts may alter the conversation flow, depending on the context filter configured on your NLP intents.

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lg2dTYa4Nnr4WJ_gPzF%2F-Lg2dYeWfrrx_6zsP1MV%2Fimage.png?alt=media\&token=a9761880-71a6-4802-9761-a9d0c7295f5c)

### Settings

The action uses the following settings:

| Setting | Description                                  | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ------- | -------------------------------------------- | ---------------------------------------------------- |
| Context | The name of the context that needs to be set | :white\_check\_mark:                                 |

### Remarks

Using this action also resets the context expiration counter that may have been set by the [automatic context](/ai/nlp/intents.md#context) execution.

### Trigger

This action has no triggers.

### Variables

This action produces the following variables after being triggered:

| Variable              | Description                  |
| --------------------- | ---------------------------- |
| conversation\_context | The new conversation context |

### 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.&#x20;

### Further Reading

{% embed url="<https://www.xenioo.com/en/using-nlp-to-fuel-your-chatbot-ai/>" %}
