Difference between revisions of "Bot Playground/AI/Conversation.chat"
From SmartBots Developers Docs
								 (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}}  <onlyinclude>'''Sends a chat message request to bot AI within a conversation with a specific resident.'''</onlyinclude> <syntaxhighlight lang...")  | 
				|||
| Line 25: | Line 25: | ||
{{API Variable|same value as Bot.AI.chat(...)}} This command returns the same value as Bot.AI.chat(...)  | {{API Variable|same value as Bot.AI.chat(...)}} This command returns the same value as Bot.AI.chat(...)  | ||
{{API Variables Table End}}  | {{API Variables Table End}}  | ||
| + | |||
| + | {{NavMenu}}  | ||
Revision as of 16:10, 10 October 2023
Sends a chat message request to bot AI within a conversation with a specific resident.
Conversation.chat(message[, options])
Reference
This command accepts the following parameters:
| Variable | Required |  Description
 
  | |
|---|---|---|---|
| Input: | |||
| message | yes | chat message to the bot | |
| options | optional |  configuration directives for the AI engine. Example:
{
     // Main configuration instructions for the AI: role, behavior, response rules etc.
     instructions?: string;
     
     // Maximum number of tokens to generate in response
     maxResponseTokens?: number;
}
 | |
| Output: | |||
| same value as Bot.AI.chat(...) | This command returns the same value as Bot.AI.chat(...) | ||