Difference between revisions of "Bot Playground/AI"
From SmartBots Developers Docs
Line 1: | Line 1: | ||
− | + | [https://www.mysmartbots.com/docs/SmartBots_AI SmartBots AI] is a conversation-based AI which can be used with Playground scripts in order to create AI conversations. | |
== Conversations == | == Conversations == | ||
− | *Conversations are the convenient way to manage | + | * Conversations are the convenient way to manage dialogs of the bot with different residents. Bot AI keeps track |
of a context within a conversation. | of a context within a conversation. | ||
− | *Conversation options can be adjusted separately for each conversation. | + | * Conversation options can be adjusted separately for each conversation. |
− | *Conversation is being created by calling '''Bot.AI.getConversationByName(residentName)'''. The resulting object may be | + | * Conversation is being created by calling '''Bot.AI.getConversationByName(residentName)'''. The resulting object may be |
reused for further communications with AI. | reused for further communications with AI. | ||
− | *Conversations are system-wide, tied to bot + specific resident. This means that if you do not set different options | + | * Conversations are system-wide, tied to bot + specific resident. This means that if you do not set different options |
− | (like instructions) for the same bot in different scripts. This will lead AI to lose conversation context | + | (like instructions) for the same bot in different scripts. This will lead AI to lose conversation context. |
== Commands reference == | == Commands reference == |
Revision as of 15:28, 16 October 2023
SmartBots AI is a conversation-based AI which can be used with Playground scripts in order to create AI conversations.
Conversations
- Conversations are the convenient way to manage dialogs of the bot with different residents. Bot AI keeps track
of a context within a conversation.
- Conversation options can be adjusted separately for each conversation.
- Conversation is being created by calling Bot.AI.getConversationByName(residentName). The resulting object may be
reused for further communications with AI.
- Conversations are system-wide, tied to bot + specific resident. This means that if you do not set different options
(like instructions) for the same bot in different scripts. This will lead AI to lose conversation context.
Commands reference
Command | Description | |
---|---|---|
Commands | ||
Bot.AI.chat | Sends a chat message request to bot AI. | |
Bot.AI.configure | Configures AI options to be used in all further communications within the current script. | |
Bot.AI.getConversationByName | Get/create conversation with a specific resident. If conversation doesn't exist yet, creates it. | |
Bot.AI.forgetConversation | Forget (cancel) conversation of a bot with a specific resident. | |
Conversation.chat | Sends a chat message request to bot AI within a conversation with a specific resident. | |
Conversation.configure | Sets some configuration values for the future usage
|