> For the complete documentation index, see [llms.txt](https://archai.gitbook.io/archai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archai.gitbook.io/archai/create-your-own-ai/ai-configuration.md).

# AI Configuration

### Simple talker  preset

The setup has predefined parameters that you can alter.

1. Choose the LLM of your preference. Don't feel any pressure, you may change it anytime later or even use different LLMs for different parts of the scenario (configured in chaingraph).
2. Review and edit system prompt. This is the main instruction for your agent. By default, it is configured to act as an AI assistant. Tailor it your needs.&#x20;

{% hint style="info" %}
In the prompt try to give the agent clear instructions on what its purpose and role are. Describe their personality, tone of voice, spice it up with catchphrases. Experiment  with response rules, reasoning and models.
{% endhint %}

<figure><img src="/files/GtOyNVKPw3bK0YyzEROc" alt="" width="563"><figcaption></figcaption></figure>

3. The last four parameters refer to chat history

`MESSAGES_COUNT` defines the number of messages stored in the agent's chat history. Adjusting this parameter balances context depth with memory efficiency.

`TOKENS_LIMIT` sets the maximum token count the model can process in one interaction. A higher limit allows for longer and more detailed exchanges but requires more computational resources.

`TEMPERATURE_CONTROL` controls the randomness of the AI's responses. Lower values (e.g., 0.3) produce more precise and deterministic outputs, while higher values (closer to 1) allow for creative and varied answers.

`MAX_TOKENS` specifies the maximum token output for each response.

### Advanced mode

You should understand that all of these parameters correspond to nodes in chaingraph. For example, the pre-defined set of parameters corresponds to Agent Profile node. You do not have to use it, though. Just unlink the node and use configure your own graph in the way you like.

<figure><img src="/files/6ipfmvhY5dQvDLkULB7z" alt="" width="169"><figcaption></figcaption></figure>

AI configuration tab makes your life easier when dealing with tangled graphs and tens of parameters. If you want to set them up in the section, add the keys in the node called "Template Param" and you'll be able to configure those keys in AI Configuration tab.&#x20;

<div><figure><img src="/files/YINEwkHT3Gp3q2pLCUAg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/BFs9QfbmCXlQRkvVAufq" alt=""><figcaption></figcaption></figure></div>

Don't forget to Save the agent every time you make changes to AI configuration.

<figure><img src="/files/vU8hVMlAAH7fMzTaZ6sO" alt="" width="563"><figcaption></figcaption></figure>
