# SmartBots AI

SmartBots AI is the artificial intelligence engine to be used with scripts, add-ons and tools. To empower your bot with AI, grab a script at [Bots Store](https://www.mysmartbots.com/store/category/ai/).

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/ef3aa2ff-fc17-4947-97ae-4494d9be67f8/AI_chat_example.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=23a48ee6c10fa2480398061195c1249e810e37fb06e13d405ccda5ddc2d058bd&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =700x309")

## Currently available

* [AI (GTP) IM autoresponder](https://www.mysmartbots.com/store/item/100/ai_gpt_im_autoresponder/) - script, use with your bot
* [Other AI scripts](https://www.mysmartbots.com/store/category/ai/)

## How it works


1. Get AI script (for example, [AI IM Autoresponder](https://www.mysmartbots.com/store/item/100/ai_gpt_im_autoresponder/))
2. The system redirects you to the [Playground](https://play.mysmartbots.com/), where you can select the bot to which you want to add this script.
3. Write instructions for your bot. You can find [information about instructions here](/doc/c68214de-69c3-41c8-ac15-83cb4d9c6bb4).
4. Acquire AI tokens ([read more about tokens](/doc/09722297-b460-489e-9e15-631a6f6219ba))
5. That's it! The script is activated and bot starts responding. You can review the message history and analyze the bot's performance.

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/09b97020-3a4f-45c7-952b-e60fddc76681/AI-tokens.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=573fd7b559b431d8198a460b77e3088ccc7a463b1f1eaa3f9e30a0cebf30e954&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =600x227")

Visit [SmartBots AI control center](https://www.mysmartbots.com/apps/ai) to check your balance.

## AI tokens

Token is a "charge" or AI you own, to be utilized by SmartBots AI engine. Think of token as a short word (\~4 characters). Longer words may consume more than 1 token.

SmartBots AI engine spends tokens while processing your bot queries.

## Token consumption

Each request processed by AI includes:

* User message (what your visitor/customer says)
* [instructions](/doc/c68214de-69c3-41c8-ac15-83cb4d9c6bb4)
* All previous user messages (to keep a context)

For example:

**1st message from resident**

Resident: *"Hello!"*

Request to AI: "Your instructions" + "Hello"

Bot response: *"Hi!"*

**2nd message**

Resident: *"Who are you?"*

Request to AI: "Your instructions + "Hello" (1st message) + "Hi!" (1st response) + "Who are you?" (new message)

Bot response: *"I am a bot"*

## AI usage history

It is critical to see how your AI bot responds, especially during set-up. SmartBots AI control center has a "Dialog history" feature which shows the recent messages, bot responses, tokens usage.

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/915c1140-4f58-4f92-b1df-d4d3ecd4994e/AI_dialog_history.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=d57feb1b2fa84c4a54f2fe92dce11ed3d030478dd31627ba15c3794a501a0d55&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =600x204")

Check AI dialogs to adjust your bot responses, add missing information to [instructions](/doc/c68214de-69c3-41c8-ac15-83cb4d9c6bb4) (or may be reduce instructions to lower the tokens usage).

## Demos

We already have few bots that's running with SmartBots AI. Check them online and in-world:

* [CuteGuide online](https://ai-chat.mysmartbots.com) - chat about SmartBots
* **CuteGuide Resident** in-world - IM about SmartBots
* **AdsOMaticAI Resident** in-world - IM about Ads-O-Matic (our advertising adboard network)

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/9571a4ac-1726-409b-a956-50d69ddedf38/2b96f642ac90086d46fe5fe7.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=a00bcce27f958a078dc48877d0d723021f3400b26bf0d66554d1f0cf6b56bd9c&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =600x487")

---

**Documents**

- [SmartBots AI Instructions](https://www.mysmartbots.com/docs/s/main/doc/smartbots-ai-instructions-rCgZxY2Enw)
- [SmartBots AI Roles](https://www.mysmartbots.com/docs/s/main/doc/smartbots-ai-roles-bS3sa6OhiZ)
- [SmartBots AI Tokens](https://www.mysmartbots.com/docs/s/main/doc/smartbots-ai-tokens-prhH4KjWTR)