Bot Command In
Allows you to collect multiple inputs from the user by creating a new Maya skill command.
Last updated
Allows you to collect multiple inputs from the user by creating a new Maya skill command.
Last updated
No inputs because this is a trigger node.
For the skill command shown in the GIF below, when inputs variables are event
, time
, and email
, a sample output msg.payload
on submitting the command would look like this :
value
(string) : This is a string value which represents what the user has typed, or option name of what is visible to the user.
meta
(object) : This the hidden metadata that contains additional information about the option selected.
The Bot Command node interfaces with the Maya command bar, exposing an endpoint to interact with it and send custom inputs easily. The types of variables you can use are listed below :
Customize the command bar to search through any list or array using the Custom Search nodes - Custom Search In and Custom Search Out.
Search through and select auto-suggest string options fetched from Google
Enforce entry of a number everytime
Allow user to search through their contacts and select an email address
Allow user to search through contacts and select a phone number
Allow user to specify an exact time in natural language "Oct 12th 5pm" which gets converted to computable time metadata.
Allow user to specify a time range in natural language "5pm to 7pm" which gets converted to computable time metadata.
Always end a flow beginning with a bot-command
node with a bot-response
, bot-web-card, or bot-dash-card node in order to indicate to the user that a task has been completed/submitted. Failing to do so will mean the Command Bar gets stuck at loading state for 30 seconds.