API

Learn to set up an API communication channel for your application in your NLX workspace

Access API channel

  • Navigate to Channels tab of your application

  • Expand API option

  • Select Edit channel or + Create channel for older, existing applications

Optional:

  • API key: Matched against the HTTP headers from the conversational AI application

  • Whitelisted domains: Domains authorized to make CORS calls to the API channel. Supports both exact string matches and regex patterns:

    • Exact: https://example.com

    • Regex: ^https:\\/\\/[a-z0-9\\-_]+\\.herokuapp\\.com\\/?$

      • Regex patterns must start with ^ and end with $

  • MCP interface: Exposes a Model Context Protocol (MCP) interface for your API channel for all flows attached to the application that also have MCP enabled

    • Once turned on, provide an AI description in the application's settings tab for the MCP Client to reference. Check out our complete MCP guide for more information

  • Voice: ON by default for new application. Enables users to interact with your application using voice over your web-based channel. See Developer docs for supporting with NLX Touchpoint. See list of languages supported

    • Voice selection: When Voice is enabled, choose from a selection of voice personas for your AI application

    • Interruptible: If enabled, permits the AI application to be interrupted by users when speaking


Touchpoint SDK configurator

We recommend using our official Touchpoint SDK to set up communication with API channels from within a web frontend. This contains:

  • A vanilla JavaScript function for connecting to your application, maintaining a conversation, and subscribing to new messages

  • Our React hook to operate inside a React app without providing styling

  • A fully-styled, chat widget that is customizable to fit your style guide

To access the configurator:

  • Select the Details link next to the build's Deployed status

  • Expand the API section of the modal

  • Click Open Touchpoint configurator

Last updated