# 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="https://1916242109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ZLBWYefH89ZIPVlkPSS%2Fuploads%2Fl4p1KvDlnV3GU5G7TDLB%2Fimage.png?alt=media&#x26;token=5d8a1c06-b854-4581-9fed-cef562b71df0" 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="https://1916242109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ZLBWYefH89ZIPVlkPSS%2Fuploads%2FekjXnmVqPWNrYD7Zcxrr%2Fimage.png?alt=media&#x26;token=c5c0e74b-f64c-4c35-bb47-f26201a17fca" alt=""><figcaption><p>AI model selection in Bot Playground</p></figcaption></figure>

Check [Recommendations](https://smartbots-1.gitbook.io/docs-v2/ai/recommendations) 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](https://smartbots-1.gitbook.io/docs-v2/ai/recommendations) page for best practices.
* See our [Simple examples](https://smartbots-1.gitbook.io/docs-v2/ai/simple-examples) 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](https://smartbots-1.gitbook.io/docs-v2/ai/roles-library).
* **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.
