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.

ComponentTypeDescription
meya.texttextOutputs text to chat. link
meya.random_texttextOutputs a random choice of pre-defined text to chat. link
meya.imagecardOutputs an image url that gets rendered as an image on all your integrations. link
meya.text_suggestionscardOutputs the text specified as well as suggested responses. Gets rendered differently depending on the integration. link
meya.text_buttonscardOutputs the text specified as well as buttons. Gets rendered differently depending on the integration. link
meya.image_suggestionscardOutputs the image url specified as well as suggested responses. Gets rendered differently depending on the integration. link
meya.image_buttonscardOutputs the image url specified as well as buttons. Gets rendered differently depending on the integration. link
meya.cardcardA comprehensive card that allows you to specify: title, text, image url and suggestions. Gets rendered differently depending on the integration. link
meya.cardscardA mutli-bubble card that outputs as many cards in a single message. Only supported by Messenger and Meya live chat. link
meya.receiptcardA receipt card that outputs receipt information for multiple items. Only supported by Messenger and Meya live chat. link
meya.input_stringinputReads any text from the user. link
meya.input_patterninputReads in text that matches a regex pattern. link
meya.input_integerinputReads in an integer from the user. link
meya.input_datetimeinputReads in human-readable dates from user. link
meya.input_locationinputInterprets user location information by text or location pin 📍. Saves location information to user datastore. link
meya.input_imageinputGets an image url of an image uploaded by the user. link
meya.witnlpMatches user intent and parses entity information from text using a wit.ai NLP model. link
meya.luisnlpMatches user intent and parses entity information from text using a luis.ai NLP model. link
meya.nlp_yes_nonlpA pre-trained nlp model that categorizes yes or no intents. link
meya.conditional_existsconditionalRoutes flow conditionally based on whether or not a data value is set in the datastore. link
meya.conditional_equalconditionalRoutes flow conditionally based on whether or not a value is equal to another value. link
meya.conditional_nlp_intentconditionalRoutes flow conditionally on the value of an NLP classifier's intent. (wit, luis, other) link
meya.conditional_randomconditionalRoutes randomly to another state. The magic 8 ball of conditionals. link
meya.passutilityA simple pass through component. Does nothing. link
meya.setutilitySet data in the specified datastore scope. link
meya.schedulescheduleThis is a flow. Trigger a periodic flow based on a defined schedule. link
meya.delayscheduleDelay a state transition based on a defined schedule.
meya.schedule_stopscheduleStop an already running schedule. Used to stop meya.schedule. link
meya.start_flowscheduleAsynchronously start a flow and continue to the next state. link
meya.pausePause 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.