# 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.

![](/files/-Lg2dYeWfrrx_6zsP1MV)

### 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/>" %}


---

# 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://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.setnlpcontextaction.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.
