> For the complete documentation index, see [llms.txt](https://docs.suvvy.ai/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suvvy.ai/en/main-settings/dopolnitelnye-nastroiki/standard-functions.md).

# Standard functions

Standard functions in Savvy are built-in tools that allow the bot to perform specified actions depending on the context of the conversation.

{% hint style="info" %}
Standard functions are automatically executed based on conditions (written in natural language), without the need to create separate actions in the [Workflows](/en/workflows/veb-khuki.md) section or use them instead of directly calling [Knowledge Base](/en/knowledge-base/baza-znanii.md) files in the main instruction.
{% endhint %}

### The following basic standard features are available:

1. Stop Dialogue - a function that allows you to interrupt a conversation.
2. Ignore Message - a function for skipping specific messages from a client or employee.
3. Set Dialogue Tag - add tags to a dialogue to categorize it.
4. Call Manager (Send Notification to Telegram) - a function for initiating the sending of a [notification to Telegram](/en/main-settings/opovesheniya-ot-savvi.md).

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FX3LgjUiNvF1epr9dUrcQ%2Fimage.png?alt=media&amp;token=81e76c2f-7336-49ee-a988-427b11258e27" alt=""><figcaption></figcaption></figure>

### Setting Up Standard Functions

All standard functions have identical settings. When you enable the **Enable Function** option, the **Function Description field** becomes available.

In the **Function Description** field, enter the condition under which the required standard function will be called.

**Example 1**: Stopping the conversation after the client enters their phone number.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FwDhZFe8uYQSnKXaPOwLF%2Fimage.png?alt=media&amp;token=1e2b7bfb-5368-4629-84a3-dffb821690aa" alt=""><figcaption></figcaption></figure>

What happened in the dialogue:

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FDt3FrmZvwR9L1u3rsIjm%2Fimage.png?alt=media&amp;token=7ca85c11-a78e-4532-9d84-c3c8fcb84436" alt=""><figcaption></figcaption></figure>

**Example 2:** We want the bot to remain silent in response to messages consisting solely of emojis, but to send a notification in Telegram when asked to invite a manager.

We write the corresponding instructions:

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FsvjqrBDxaWevy7w50eS0%2Fimage.png?alt=media&amp;token=2c554b25-5454-47ae-92f2-66f2a751c5e6" alt=""><figcaption></figcaption></figure>

We see in the conversation that the bot responded to the message containing emoji and text, but ignored the message consisting solely of emoji.

A request to speak with a manager was answered by a Telegram notification.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FVHQ6XG9SrkHs9syvQlBf%2Fimage.png?alt=media&amp;token=81ec24a9-5623-4449-b93e-5afb9a2debea" alt=""><figcaption></figcaption></figure>

To configure the **standard function: Setting a Dialog Tag**, you must first define or select an existing tag. To do this, click the settings icon in the Available Tags field. In the window that appears, enter a name for the new tag and click **+Add Tag**.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2F66mIIHQyUQUsniqUguTj%2Fimage.png?alt=media&amp;token=e37404ed-19fe-4cf1-bd28-9263f5120d74" alt=""><figcaption></figcaption></figure>

Next, you can select a color for this tag. It will be displayed, for example, in the [Analytics](/en/analytics/analiz-grafikov.md) section's graph.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2F5zqrWf9AMLxyAUXzxXqz%2Fimage.png?alt=media&amp;token=978747a0-bab5-40a4-93bf-cb7f95d2d58c" alt=""><figcaption></figcaption></figure>

Select and add the required tag.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2F3WjccAdiWo7N6Y13waPR%2Fimage.png?alt=media&amp;token=ca747cf2-1f51-42ee-860e-54ede638069a" alt=""><figcaption></figcaption></figure>

In the Function Description field, you must write the function call condition.

<figure><img src="https://2542240793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnmK9dnkx224HgS0VSB5J%2Fuploads%2FEid2FGYDMG3BHmBFikFf%2Fimage.png?alt=media&amp;token=be33703b-f138-494c-b534-7a1da6ae17d2" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If you need to call two standard functions simultaneously, for example, to send a notification to Telegram and set a tag for a conversation when calling a manager, you must call one of the functions in the main instruction or use an Action with a Basic Step.\
Otherwise, only one standard function will be called.
{% endhint %}
