> For the complete documentation index, see [llms.txt](https://docs.cekat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cekat.ai/en/ai-and-platform/ai-agent/new-ai-agent-interface/ai-behavior.md).

# AI Behavior

Set how the AI greets, talks to, and responds to your customers.

The **AI Behavior** tab is where you set **how the AI communicates** with customers: how it greets them, its tone of voice, the conversation flow, and the rules it must always follow. This section replaces the **AI Agent Behavior** and **Welcome Message** fields in the General tab of the old interface.

This page has three sections. Use the navigation on the left to jump between them quickly.

1. [Welcome Message](#welcome-message)
2. [AI Core Communication](#ai-core-communication): Communication Style, Conversation Flow, Rules & Restriction
3. [Additional Instructions](#additional-instructions)

![The AI Behavior tab with its three sections in the left navigation](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2F9r4PfDacN54ustTix9D6%2F04-ai-behavior-overview.png?alt=media\&token=65ae112d-1df7-4511-b8c1-53b60b3dcf16)

Each section can be opened and closed by clicking its title.

## Editing and saving

1. Click the field you want to change. The editor and its toolbar appear.
2. Use the toolbar to format text: **Undo**, **Redo**, **Bold**, **Bullet list**, **Numbered list**, and paragraph formats (**Normal Text**, **Heading 2**, **Heading 3**).
3. Click **Save** at the bottom of the page. Every save creates a new version in [Version History](#version-history).
4. To discard all unsaved changes, click **Cancel Edit**.

![The AI Behavior saved notification after clicking Save](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FcP0zr5uhGehnQzmg9WN9%2F14-ai-behavior-saved.png?alt=media\&token=359b96aa-2aff-4cb3-813b-fbfd86326ce7)

If you switch tabs before saving, Cekat shows an **Unsaved Changes** dialog. Choose **Save & Switch** to save and move on, or discard your changes. If a field is invalid (for example, over its character limit), your changes cannot be saved until you fix it.

### Adding images

Images can be added in **Welcome Message**, **Conversation Flow**, and **Additional Instructions**. Click the image icon in the toolbar, then choose a file from your device. The image appears in the editor right away.

### Character limits

As you type, the character count is shown below the field. If you go over the limit, the message *Maximum X characters exceeded* appears and the page cannot be saved until the text is shortened.

| Field                   | Limit                                           |
| ----------------------- | ----------------------------------------------- |
| Welcome Message         | 5,000 characters                                |
| Communication Style     | 5,000 characters                                |
| Conversation Flow       | 8,000 characters                                |
| Rules & Restriction     | 3,000 characters                                |
| Additional Instructions | 100 characters (title), 2,000 characters (body) |

## Welcome Message

The Welcome Message is an automatic greeting sent **once** to a customer when they first contact your business.

* The message is sent **exactly as you write it**. The AI does not change or rewrite it.
* If left empty, no Welcome Message is sent. There is no on/off switch; just leave the field empty to turn it off.
* You can add images, for example a product photo or a promo banner.
* Welcome Message has no presets and no Optimize button.

![A filled-in Welcome Message, with the toolbar and character counter](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FY2g2AT06qitkmQjDaq4F%2F05-welcome-message-filled.png?alt=media\&token=befebe68-4847-4ed7-af1b-363fdcce6ea2)

## AI Core Communication

This section has three fields that define the AI's basic behavior. Each field has **presets** you can use as a starting point.

{% hint style="warning" %}
Choosing a preset **replaces the entire content of the field** with the preset text. If you have already written your own instructions, copy them first, or click **Undo** in the toolbar to bring the previous text back.
{% endhint %}

### Communication Style

Defines the AI's **personality and tone of voice**, for example formal, casual, or empathetic.

| Preset      | Summary                                              |
| ----------- | ---------------------------------------------------- |
| Formal      | Professional, formal tone and precise language.      |
| Friendly    | Warm, casual, and enthusiastic.                      |
| Empathetic  | Calm and empathetic when customers are upset.        |
| Concise     | Short, clear answers that get straight to the point. |
| Educational | Explains patiently, with examples.                   |

![The Communication Style presets and the Optimize button](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FlSqMMBNWhpvqnhv9Gxbb%2F06-communication-style-presets.png?alt=media\&token=7ffb2739-3eb5-49f6-aa7d-1f4500a4d58d)

![The Friendly preset applied to Communication Style](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FOsg4p0nDN0pDWJxhmYbH%2F07-communication-style-friendly.png?alt=media\&token=277a7790-a7e5-4239-b79c-9c3167043453)

### Conversation Flow

Defines the **conversation flow**, meaning what the AI does in specific situations, for example when a customer asks about prices, asks for help, or is ready to buy. This field supports images.

| Preset           | Summary                                                                   |
| ---------------- | ------------------------------------------------------------------------- |
| Problem Solving  | Understand the problem, ask clarifying questions, guide step by step.     |
| Customer Service | Greet warmly, listen, resolve, and make sure the issue is fully handled.  |
| Sales Agent      | Understand needs, offer the most relevant product, and focus on benefits. |
| Finance          | Accurate, rule-compliant information; avoid speculation.                  |
| Tutorial         | Break tasks into clear steps and make sure the customer understands.      |

![The Conversation Flow presets](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FuUDyPwOIvUHTmVyE0dNP%2F08-conversation-flow-presets.png?alt=media\&token=fa70c4e8-6dc1-4414-82c9-653160d3cef4)

![The Sales Agent preset applied to Conversation Flow](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FjbDp8HSgeefwd0QCldQ0%2F09-conversation-flow-sales-agent.png?alt=media\&token=8c8e338c-c4fb-432b-919e-bd2eac1c692a)

### Rules & Restriction

Defines the **rules the AI must always follow**, for example which topics it may discuss or what information it must not share.

| Preset        | Summary                                                                   |
| ------------- | ------------------------------------------------------------------------- |
| Safe Tone     | Stay calm and polite, even when customers are upset.                      |
| No Competitor | Never mention or recommend competitor products.                           |
| Compliance    | Only give accurate information; do not give legal or financial advice.    |
| Scope Limit   | Only answer topics relevant to your products or services.                 |
| Privacy Guard | Never ask for or repeat sensitive data such as passwords or card numbers. |

![The Rules & Restriction presets](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FqxMhftykK1iKYFlhLHzm%2F10-rules-restriction-presets.png?alt=media\&token=b09f7a24-00dd-4591-88b1-de0e6c274719)

![The Scope Limit preset applied to Rules & Restriction](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FkkEftMHV2piEgth3fbI3%2F11-rules-restriction-scope-limit.png?alt=media\&token=711a7f1a-0263-4e40-8253-5d0051ee4c4d)

## Additional Instructions

Additional Instructions let you create **separate extra instructions**, each of which can be targeted to a **specific pipeline**. For example, the AI can follow different instructions for new *leads* and for customers who have already purchased.

### How to create an additional instruction

1. Click **+** next to Additional Instructions in the left navigation, or the add button in the Additional Instructions section. New instructions are titled *Instruction 1*, *Instruction 2*, and so on.

   ![A new additional instruction with the Pipeline selector and editor](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FoXjioexRxDHva6kdLf3F%2F12-additional-instruction-new.png?alt=media\&token=bde1fa48-17aa-4327-aecd-1e5064ac8237)
2. Change the title (up to 100 characters).
3. Write the instruction (required, up to 2,000 characters). You can add images.
4. (Optional) Select one or more **pipelines** as the target.

   ![Choosing the target pipeline for an additional instruction](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FveY7KXAr5myBvxjS0Z3D%2F13-additional-instruction-pipeline.png?alt=media\&token=f09648cf-a7ea-4b77-851d-c52930f12aa3)
5. Click **Save**.

| Pipeline setting               | The instruction applies to            |
| ------------------------------ | ------------------------------------- |
| No pipeline selected           | **All** conversations                 |
| One or more pipelines selected | Only conversations in those pipelines |

* You can create up to **30 additional instructions**.
* An instruction with empty content cannot be saved.
* To delete an instruction, click the delete icon on the instruction box, then confirm.

## Optimize

**Optimize** helps you tidy up and clarify your instructions so the AI can understand and follow them more easily. This button is in the toolbar of **Communication Style**, **Conversation Flow**, **Rules & Restriction**, and **Additional Instructions**.

1. Write your instruction, at least **10 words**. With fewer words, the Optimize button is disabled.
2. Click **Optimize**. The button changes to *Optimizing...* while it works.
3. The text in the field is replaced with the Optimize result, and the number of credits used is shown (for example: *3 AI credits used*).
4. Review the result. If it doesn't fit, click **Undo** to return to the previous text.
5. Click **Save** to save.

{% hint style="warning" %}
Optimize uses your **AI credits**. Changes do not take effect for customers until you click **Save**.
{% endhint %}

## Version History

Every time you click **Save**, Cekat stores a full copy of the AI Behavior configuration as a **new version**.

* The version number is shown at the top of the left navigation (for example: *Version 5*).
* Click the version number to see the list of versions. Each row shows the version number, who saved it, and the date and time. The latest (currently active) version is marked with a **green dot**.

![The list of versions in Version History](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FMwsVs0XEKS4VJoN8jUj5%2F15-version-history.png?alt=media\&token=35652d78-8b37-4b5a-a2f1-79827d9af9a4)

### How to restore an older version

1. Click the version number, then choose the version you want to view.
2. That version's content is loaded onto the page. The AI that is currently running **has not changed yet**.
3. Review the content. You can also test it with [Preview](#preview).
4. Click **Save** to make it active. Cekat creates a **new version** with this content.

To return to the active version without saving, click **Cancel Edit**.

## Preview

**Preview** is a testing panel that replaces the chat box on the right side of the old interface. You can chat with the AI using the latest configuration, **including changes you haven't saved yet**, without affecting real customers. The Preview button is available on the AI Behavior, AI Actions & Routing, and AI Configuration tabs.

### How to use Preview

1. Click **Preview** at the top right. Click **Close Preview** to close it.

   ![The Preview panel on the right side](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FzvTDgcX8guEooKeQ4tSo%2F16-preview-panel.png?alt=media\&token=a2365ef6-4099-4ff2-94e1-b095f7f96918)
2. (Optional) Choose **one pipeline** to simulate a customer in that pipeline. Click the same pipeline again to clear the selection.
3. Send messages like a customer. You can send text, emoji, images (PNG, JPG, WEBP), videos (MP4, 3GP), and files.

   ![A customer message and the AI's reply in Preview](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FxT4Ccd1UL10tnkVCYCMr%2F17-preview-conversation.png?alt=media\&token=f060ad82-ac48-473f-933f-1e7c71f5812e)
4. Watch the AI's answer and any actions that happen. If the AI runs an action from [AI Actions & Routing](https://docs.cekat.ai/en/ai-and-platform/ai-agent/new-ai-agent-interface/ai-actions-and-routing.md), a system message appears in the conversation, for example a label added, a pipeline moved, or the conversation transferred to a human agent.
5. Click **Clear Conversation** to start a new session.

### History

* Open the **History** tab in the Preview panel to see earlier test sessions. Use the search box to search by date or name.
* Click a session to reopen it.
* Sessions that belong to other team members are read-only. Click **Continue as new chat** to continue one as a new session of your own.

![The History tab in the Preview panel](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FMvoOtZuGZrnReqqfile5%2F18-preview-history.png?alt=media\&token=78d0b6ef-9577-4337-a8f1-d76fa556f086)

### Preview limits

* A session is limited to **50 messages** (including AI replies). Once the limit is reached, click **Start New Session** to continue.
* Conversations in Preview use AI credits just like regular conversations.
