Core components
Meya comes with a set of built-in components. These components are meant to provide you with the essential functionality that are most common for your bots. If there is a component missing, let us know (via the typical support or GitHub channels).
Default return action
All core components will return an action of
next
unless otherwise specified.next
is a reserved action that will automatically move the flow forward one step.
We will be adding more components to the core library over time. Follow our announcements for updates.
Component | Type | Description |
---|---|---|
meya.text | text | Outputs text to chat. link |
meya.random_text | text | Outputs a random choice of pre-defined text to chat. link |
meya.image | card | Outputs an image url that gets rendered as an image on all your integrations. link |
meya.text_suggestions | card | Outputs the text specified as well as suggested responses. Gets rendered differently depending on the integration. link |
meya.text_buttons | card | Outputs the text specified as well as buttons. Gets rendered differently depending on the integration. link |
meya.image_suggestions | card | Outputs the image url specified as well as suggested responses. Gets rendered differently depending on the integration. link |
meya.image_buttons | card | Outputs the image url specified as well as buttons. Gets rendered differently depending on the integration. link |
meya.card | card | A comprehensive card that allows you to specify: title, text, image url and suggestions. Gets rendered differently depending on the integration. link |
meya.cards | card | A mutli-bubble card that outputs as many cards in a single message. Only supported by Messenger and Meya live chat. link |
meya.receipt | card | A receipt card that outputs receipt information for multiple items. Only supported by Messenger and Meya live chat. link |
meya.input_string | input | Reads any text from the user. link |
meya.input_pattern | input | Reads in text that matches a regex pattern. link |
meya.input_integer | input | Reads in an integer from the user. link |
meya.input_datetime | input | Reads in human-readable dates from user. link |
meya.input_location | input | Interprets user location information by text or location pin 📍. Saves location information to user datastore. link |
meya.input_image | input | Gets an image url of an image uploaded by the user. link |
meya.wit | nlp | Matches user intent and parses entity information from text using a wit.ai NLP model. link |
meya.luis | nlp | Matches user intent and parses entity information from text using a luis.ai NLP model. link |
meya.nlp_yes_no | nlp | A pre-trained nlp model that categorizes yes or no intents. link |
meya.conditional_exists | conditional | Routes flow conditionally based on whether or not a data value is set in the datastore. link |
meya.conditional_equal | conditional | Routes flow conditionally based on whether or not a value is equal to another value. link |
meya.conditional_nlp_intent | conditional | Routes flow conditionally on the value of an NLP classifier's intent. (wit, luis, other) link |
meya.conditional_random | conditional | Routes randomly to another state. The magic 8 ball of conditionals. link |
meya.pass | utility | A simple pass through component. Does nothing. link |
meya.set | utility | Set data in the specified datastore scope. link |
meya.schedule | schedule | This is a flow. Trigger a periodic flow based on a defined schedule. link |
meya.delay | schedule | Delay a state transition based on a defined schedule. |
meya.schedule_stop | schedule | Stop an already running schedule. Used to stop meya.schedule . link |
meya.start_flow | schedule | Asynchronously start a flow and continue to the next state. link |
meya.pause | Pause the bot for a particular user. Should be used in Salesforce Live Agent callback event handlers only. Using meya.pause outside of a Live Agent callback flow will result in the bot being permanently paused for that user, until you explicitly make an API call to un-pause it for that user. |
Updated over 5 years ago