Modalities
Manage and set up advanced payloads with Modalities in NLX
Last updated
Manage and set up advanced payloads with Modalities in NLX
Last updated
Modalities allow for information to be transmitted to a user that goes beyond a standard bot message. Images, audio, structured text, haptic signals, videos, and more can be modalities you may want to provide users during conversation with your AI assistant.
Unlike the standard node payload, the payload of a Modality may consist of multiple nested data types and are defined globally in the workspace, making them reusable across flows and nodes (e.g., a carousel modality used for selecting a resort in one intent flow may be re-used for selecting a room type in another).
Common modality uses:
Defined for communication channels with a visual interface (e.g., TV) where displaying richer UI components with a message is needed (e.g. cards, video player)
Communicates metadata to a channel for proper rendering (e.g., an API channel interprets what information to display in a carousel from the payload schema of a carousel modality)
Modalities in your workspace Settings is where you'll define a modality and its payload structure for use in the workspace.
Begin by selecting + Add modality from the Modalities tab:
Enter a name
Expand Schema section and input Schema type or choose <>Auto-generate schema
Click Create modality button
Optional
<> Auto-generate schema: Easily generate your data structure based on sample json
Sensitive setting: Enable to redact modalities activity from conversation logs
Description: Add an optional summary or description of the modalities purpose
Need to edit or delete a modality?
After creating your modality, you may expand its details and select Edit or Delete modality at any time.
Once a modality has been created, you may enable its use easily in any intent flow:
Select an intent flow > Choose or place a node on the Canvas
Choose Modalities from the Add functionality menu of the node's side panel
Ensure the correct modality's tab (if more than one appears) is selected
Toggle on Enable
Enter payload details or assign dynamic sources into applicable fields > Click Save
WhatsApp requires businesses to use templates for outbound messaging. Dialog Studio can send a template message to initiate a conversation with an end user via a modality:
Create a modality named WhatsAppTemplate
The schema should be an object
with a single string
property name
(e.g., paste
{ "name": "" }
using the <> Auto-generate schema option)
You may also send images that are cloud hosted:
Create a modality named WhatsAppImage
The schema should be an object
with the following schema (the caption is the "alt text", the link is the web-accessible link to the image)"
When done, enable your WhatsApp modality on node(s) in your flow(s).