Difference between revisions of "Bot Playground/AI/Bot.AI.getConversationByName"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>'''Get/create conversation with a specific resident. If conversation doesn't exist yet, creates it.'''</onlyinclude> <syntaxhigh...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
| − | <onlyinclude> | + | <onlyinclude>Get/create conversation with a specific resident. If conversation doesn't exist yet, creates it.</onlyinclude> |
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Bot.AI.getConversationByName(residentName) | Bot.AI.getConversationByName(residentName) | ||
| Line 15: | Line 15: | ||
{{API Variable|result}} A conversation object. | {{API Variable|result}} A conversation object. | ||
{{API Variables Table End}} | {{API Variables Table End}} | ||
| + | |||
| + | {{NavMenu}} | ||
Latest revision as of 16:21, 10 October 2023
Get/create conversation with a specific resident. If conversation doesn't exist yet, creates it.
Bot.AI.getConversationByName(residentName)
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| Input: | |||
| residentName | yes | Resident SL name | |
| Output: | |||
| result | A conversation object. | ||