> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user-documentation/bot-builder/stay-in-session-block.md).

# Stay in Session Block

The **Stay in Session Block** is used to keep the conversation active within the automation. Unlike other blocks, it does not send messages, collect data, or route the user to another step. Instead, it ensures that the current session remains open so the user can continue interacting with the bot.

Normally, once a flow is completed, the session may end or expire. By using the **Stay in Session Block**, you instruct the system to keep the conversation active and allow further interaction without restarting the automation.

#### How to Use the Stay in Session Block

1. Open your **Chat Flow**.
2. Click **Add Node**.
3. Go to **Native Tools**.
4. Select **Stay in Session**.

Once added, the block will automatically keep the conversation session active.

#### Why Use the Stay in Session Block

This block is useful in scenarios where you want the user to continue interacting with the automation after completing a flow.

For example:

* A user checks **pricing details** and may want to ask additional questions.
* A user selects a **service** and might explore other options.
* You want the user to **trigger other keywords** without restarting the flow.

#### Common Use Cases

You can use the **Stay in Session Block** when:

* You expect **follow-up questions** from users.
* You are building **conversational funnels**.
* You want **ongoing engagement** within the chat.
* You do not want the automation to terminate after completing a flow.

The **Stay in Session Block** helps maintain continuity in conversations and ensures a smoother, more natural automation experience.

{% embed url="<https://www.youtube.com/watch?v=jA4-nY6i7DQ>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocumentation.gitbook.io/user-documentation/bot-builder/stay-in-session-block.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
