Maya Docs
  • Introducing Maya
  • Product
    • Command Bar
    • Workspaces
      • Importing JSON Workflows
    • Modules
      • Config Profiles
    • Node Library
      • Common
        • Inject
        • Debug
        • Complete
        • Catch
        • Status
      • Functions
        • Function
        • Change
        • Switch
        • Template
        • Range
        • Delay
        • Trigger
        • Filter
        • Exec
      • Storage
        • Read File
        • Modify File
        • Watch Files
      • Parser
        • CSV
        • HTML
        • JSON
        • XML
        • YAML
      • Sequence
        • Split Into Array
        • Join Array
        • Sort Array
        • Batch Messages
      • Dashboard
        • Button
        • Chart
        • Slider
        • Gauge
        • Switch
        • Dropdown
        • Numeric Input
        • Text Input
        • Template
        • Date Picker
        • Colour Picker
        • Form
        • Display Text
        • Audio Out
      • Network
        • Websockets
          • Websocket Out
          • Websocket In
        • HTTP
          • HTTP In
          • HTTP Response
          • HTTP Request
      • Command Bar
        • Bot Scheduler
        • Bot Command In
        • Bot Command Out
          • Bot Response
          • Bot Web Card
          • Bot Dash Card
        • Custom Search In
        • Custom Search Out
        • Bot Info
      • Spotify
        • Get Playback State
        • Control Playback
        • Play
        • Library
        • Playlist
        • Search
    • Web Extension
      • Selecting Elements
      • Making a web automation skill in 5 minutes
    • Troubleshooting
    • Changelog
  • Tutorials
    • Install skills/modules from store
    • Building fundamentals
    • Connect different services
      • Spotify + Figma
      • Zoom + Google Calendar
    • Browser Automation
      • Control YouTube - Easy
      • Scrape Twitter - Moderate
      • Manage Gmail Inbox - Hard
Powered by GitBook
On this page
  • Inputs
  • Outputs
  • Details
  • Custom variable
  • String variable
  • Number variable
  • E-mail variable
  • Phone variable
  • Time variable
  • Time range variable

Was this helpful?

  1. Product
  2. Node Library
  3. Command Bar

Bot Command In

Allows you to collect multiple inputs from the user by creating a new Maya skill command.

PreviousBot SchedulerNextBot Command Out

Last updated 3 years ago

Was this helpful?

Inputs

No inputs because this is a trigger node.

Outputs

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 :

{
    "event":{"value":"hello"},
    "time":{"value":"13 October 1700hrs","meta":{"hour":17,"minute":0,"meridiem":1,"day":13,"month":10,"year":2021,"second":0,"millisecond":0}},
    "email":{"value":"sibesh96@gmail.com","meta":"sibesh96@gmail.com"}
}
  • 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.

Details

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 :

Custom variable

String variable

Search through and select auto-suggest string options fetched from Google

Number variable

Enforce entry of a number everytime

E-mail variable

Allow user to search through their contacts and select an email address

Phone variable

Allow user to search through contacts and select a phone number

Time variable

Allow user to specify an exact time in natural language "Oct 12th 5pm" which gets converted to computable time metadata.

Time range variable

Allow user to specify a time range in natural language "5pm to 7pm" which gets converted to computable time metadata.

Customize the command bar to search through any list or array using the Custom Search nodes - and .

Always end a flow beginning with a bot-command node with a , , or 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.

Custom Search In
Custom Search Out
bot-response
bot-web-card
bot-dash-card