> For the complete documentation index, see [llms.txt](https://mind-expression-docs.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mind-expression-docs.gitbook.io/home/concepts/scopes.md).

# Scopes

In Mind Expression, Scopes work as independent AI agents. A Scope is a minimum service module in which configurations of endpoint APIs and sets of Subjects are defined. You can create one or more Scopes, and you will see a list of managed Scopes and get their details from the list. When creating a Scope, the Scope Engine URL (API URL) and authentication key are auto-generated, which are inherent to the Scope.

### Create and manage Scopes

**Create Scopes**

To create a Scope, set up the Scope mode (development or production), Scope name, and time zone. By default, the development mode is selected.

If the Template toggle is on, you can view a list of Scope Templates where you can select a sample scope that contains a pre-configured conversation flow.&#x20;

If you wish to create a scope from scratch, you may simply turn this toggle off.&#x20;

<figure><img src="/files/MSvuBQpy5iZD5yCCvZgq" alt=""><figcaption></figcaption></figure>

### Edit Scopes

![](/files/YRx3Q1JZAurqP6hzIcG4)

You can edit the Scope mode, Scope name, and time zone.

### Delete Scopes

To delete a Scope, open the more actions menu and click **Delete**. Be advised that all associated data will be permanently deleted and the action cannot be undone.\
\
To learn more about how to create and manage Scopes, see [Quickstarts: Create Scope](https://me-dev.mind.ai/docs/quickstarts/create-scope).

### Back up, import, and restore Scopes

**Back up Scopes**

![](/files/Sy62W0ORsSLh9gM5AckN)

Scope backup is useful to migrate data between Scopes, and it helps you manage Scopes better. Scope backup includes Subject, Messages, Escalation, and Webhook data. Currently, we are not supporting delta backup and restore.<br>

### Import Scopes

![](/files/TxYUlREVtW7dNanuca6e)

To import a Scope backup, set up the Scope mode (development or production), backup, Scope name, and time zone.<br>

### Restore Scopes

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiRqPwZJVepiA6JYXHnaO%2Fuploads%2FYPzZukXpskzogGSh6RyD%2FScreen%20Shot%202022-05-25%20at%202.05.06%20PM.png?alt=media\&token=e98846ad-9fcb-4177-a987-bc36235ee6b7)

You can restore Scope with the latest Scope data backup on the Scope Restore page.\
\
To learn more about how to back up and restore Scopes, see [How-to Guides: Back up, import and restore Scopes](/home/how-to-guides/back-up-import-and-restore-scopes.md).

### Scopes Settings

This is a feature where you can modify your Scope, whether to enable the Closing Messages or change the session timeout.

#### Closing Messages

To know more about the Closing Messages, see [Customize messages](/home/how-to-guides/customize-messages.md)

#### Session Timeout&#x20;

When the user is not active anymore in the chat, the conversation will be terminated and once the user decided to reply again at a later time, the session will be starting again.

### Accessing the Scope Settings

![](/files/NordEYzou1dGoRM2mxdG)

For you to access the Scope Settings, go to your Scope first, and inside, you will be able to see the **"Gear Icon"** as shown on the screen.

### Scope Settings Functions

Upon entering the Scope settings, you have the option to modify the Closing and Session Timeout.

#### Closing&#x20;

On the Closing tab, you can select which events the closing message will be displayed: Restart or Ending.

<figure><img src="/files/HwuHCAdz8hhelzhXBtEh" alt=""><figcaption></figcaption></figure>

#### Session

On the Session tab, you can set Context Hopping Confirmation as well as the Session Timeout.

<figure><img src="/files/lT9XHjBIRxjmCjSJ41PT" alt=""><figcaption></figcaption></figure>

If Confirmation is toggled on, this means the AI will ask for confirmation to continue the previous subject for every Context Hop.&#x20;

The session timeout minutes will determine the time a user can remain idle before the session is terminated.&#x20;


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mind-expression-docs.gitbook.io/home/concepts/scopes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
