> For the complete documentation index, see [llms.txt](https://smartbots-1.gitbook.io/docs-v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartbots-1.gitbook.io/docs-v2/ai/ai-roles.md).

# AI Roles

This section explains the meaning of AI **roles** – the main setting of your SmartBots AI bot. A role determine how your bot behaves and responds, and it is composed of two parts:

1. **Personality** – the style, tone, and attitude of your AI character.
2. **Knowledge** – the factual information, domain-specific data, and references the AI can draw upon.

Roles describe your AI bot’s overall persona. Writing them carefully ensures consistent, accurate responses.

<figure><img src="/files/AHyYPawq1hSbADjbyqqu" alt=""><figcaption><p>Editing a role for Bot Playground script</p></figcaption></figure>

#### AI Model Selection

You can select different AI models to power your bot. Some models can handle more complex or even NSFW (adult, not safe for work) content, depending on your business needs.

<figure><img src="/files/eq6ilGWu0qytQQJyhe1k" alt=""><figcaption><p>AI model selection in Bot Playground</p></figcaption></figure>

Check [Recommendations](/docs-v2/ai/recommendations.md) page for more info on NSFW adult roles.

### Creating and Managing Roles

* A well-crafted role helps ensure the AI responds in a useful, coherent manner. Check out our [Recommendations](/docs-v2/ai/recommendations.md) page for best practices.
* See our [Simple examples](/docs-v2/ai/simple-examples.md) page if you want to look at brief, straightforward role definitions.
* **Role Library**: For comprehensive, ready-to-use roles across various categories (business, entertainment, education, roleplay), explore our [Role Library](/docs-v2/ai/roles-library.md).
* **Manage Roles**: Roles can be created, edited, or updated at the [**“SmartBots AI”** section](https://www.mysmartbots.com/apps/ai/roles) of your SmartBots account.

Use these resources to build and maintain effective roles that match your AI bot’s needs and your organization’s goals.


---

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

```
GET https://smartbots-1.gitbook.io/docs-v2/ai/ai-roles.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.
