LogoLogo
  • GETTING STARTED
    • Welcome to the NLX platform
    • How NLX works
    • Guides
      • Analytics dashboard
      • Chat
      • Generative Journey (Slots)
      • Model Context Protocol
      • Voice
      • Voice+ script
      • Touchpoint components
        • Carousel modality
        • Video modality
    • Terms & concepts
    • Generative AI
    • Developer
  • Build
    • Workspace setup
    • Flows
      • Intro to flows & variables
      • The Canvas
      • Flow settings
      • Nodes
      • Flow appearance
    • Resources
      • Actions
        • Implementation
        • Request model
      • Analytics tags
      • Context variables
      • Data requests
        • Implementation
        • Response model
        • Request model
      • Knowledge bases
        • Ingest content
        • Add metadata (beta)
        • Apply KB
      • Lifecycle hooks
        • Implementation
      • Modalities
      • Secrets
      • Slots (custom)
        • Adding values
        • Translating slots
      • Voice+ scripts
        • Add + download script
        • Deploy script + install SDK
        • Create Voice+ flow
    • Integrations
      • Channels
        • Alexa
        • Amazon Chime SDK
        • Amazon Connect
        • AWS End User Messaging SMS
        • AWS End User Messaging Social
        • Bandwidth
        • Genesys
        • Twilio
        • Zendesk Sunshine
      • LLM services
        • Amazon Bedrock
        • Anthropic
        • Azure OpenAI
        • Cerebras
        • Cohere
        • Google Vertex AI
        • Groq
        • NVIDIA
        • OpenAI
        • xAI
      • NLP
        • Amazon Lex
        • Google Dialogflow
        • Google Dialogflow CX
        • Custom NLP
    • Translations
  • Deploy & test
    • Applications
      • Attach flows
      • Assign default behavior
      • Add channels
        • API
          • REST API
        • Alexa
        • Amazon Chime SDK
        • Amazon Connect
        • AWS End User Messaging SMS
        • AWS End User Messaging Social
        • Genesys
        • Genesys SMS
        • Messenger
        • Microsoft Teams
        • Slack
        • SMS via Bandwidth
        • Twilio SMS
        • Twilio Voice
        • WhatsApp via Twilio
        • Zendesk Sunshine
      • Deploy
      • Optional: Set lifecycle
      • Optional: Set languages
    • Test
      • Test a conversation
      • Automated tests
      • Test an external integration
  • Analyze
    • Conversations
    • Analytics
      • Creating dashboards
      • Formulas & multi-metrics
      • Canvas analytics
    • Training
  • Workspace Settings
    • Escalation channels
    • Resource tags
    • Audit
  • Admin
    • Access control
      • Roles & permissions
    • Notifications
    • FAQ
    • Contact support
Powered by GitBook
On this page
  • What are Modalities?
  • Add a modality
  • Use a modality
  • WhatsApp modalities
  1. Build
  2. Resources

Modalities

Manage and set up advanced payloads with Modalities in NLX

Last updated 18 days ago

What are Modalities?

Modalities allow for information to be transmitted to a user that goes beyond a standard conversational AI message. Images, audio, structured text, haptic signals, videos, and more can be modalities you may want to provide users during conversation with your application.

Unlike the standard , 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)

To access, click Resources in your workspace menu and choose Modalities:


Add a modality

Begin by selecting New modality from the Modalities resource:

  • Enter a name

  • On the Schema tab, manually input schema or choose <>Auto-generate schema to easily generate a data structure based on sample JSON

  • Click Save

Optional property settings (expand each property to view):

  • Sensitive setting: Enable to redact this data field's value from conversation logs for personally identifiable information (PII)

Need to edit or delete a modality? After creating your modality, you may go to the modality's Settings tab and choose Delete modality at any time.


Use a modality

Once a modality has been created, you may enable its use easily in any flow:

  • 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 modalities

WhatsApp requires businesses to use templates for outbound messaging. NLX 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)"

{
  "caption": "",
  "link": ""
}

Select a > Choose or place a node on the Canvas

When done, on node(s) in your flow(s).

flow
enable your WhatsApp modality
node payload