> 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/recommendations.md).

# Recommendations

### General recommendations

Basically the longer roles the better. However, roles are being sent with every message, and consume tokens. Long (hundreds of words) will noticeably eat your tokens reserve.

You can always check SmartBots AI history logs and determine how much tokens each AI message consumes.

### Limit response length

It is often desirable to limit a response length (to avoid tokens consumption, and response faster). We recommend adding the following text to roles:

> You are laconic. Always keep your answers under 50 words or less, especially when someone requests to tell more.

(adjust "50 words" to your own limitation).

### Offer human support

If you want your bot to redirect to a human support in complex cases add the following to "personality":

> If you don't know an answer; or not sure; or need a real world information; or don't have access to some information, offer to contact Glaznah Gassner instead. He knows the responses to all questions.

(specify desired SL name instead of Glaznah Gassner).

### NSFW (adult) Roles

If adult or explicit interaction is required, you must use an **uncensored AI model** that supports NSFW content.

You can switch your role to such a model while editing a role:

<figure><img src="/files/1e0PUboSG8QGAjwHqpHc" alt="" width="520"><figcaption></figcaption></figure>

### Additional recommendations for AI prompt construction

1. **Use a structured approach.** Break down your prompt into clear sections or bullet points. Clearly separating personality, knowledge, and specific requirements will result in more precise and targeted responses.
2. **Specify desired tone or style (*****personality*****).** For instance, decide if the AI should sound formal, casual, friendly, or humorous. This clarifies the style of communication from the outset.
3. **Provide sufficient context (*****knowledge*****).** Make sure to include any important background information, constraints, or specialized terminology. This helps the AI respond accurately and maintain consistency throughout the conversation.

### Read more

Proceed to next sections of our AI docs:

1. Short [Simple examples](/docs-v2/ai/simple-examples.md)
2. Comprehensive [Roles library](/docs-v2/ai/roles-library.md)


---

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