Actions
Empower conversations with Actions—send content or perform tasks
This feature is currently available to enterprise tiers only.
What's an Action?
Actions are the one-way cousins of Data requests. While Data requests can retrieve and send content from an external source and must have a defined response body, Actions only send content. They perform external tasks and merely inform NLX on whether or not the call was successful. Actions are useful for specific external tasks:
Sending an email or SMS
Triggering Robotic Process Automation
To access, click Resources in your workspace menu and choose Actions:
Requirements
Implementation
The Implementation tab defines how your Action behaves when triggered in a flow. When a conversation reaches an Action node, NLX sends a POST request to the specified URL or returns a static response, executing the required process.
Static mode
Choose to define a fixed JSON response. Ideal for prototypes or quick testing. Simply enter the response and click Save
External mode
Choose to integrate with an endpoint. Enter URL + optional custom headers. Use the CloudFormation template in the Instructions section and click Save
Request model
The Request model defines the payload structure your Action sends when making an API call. Each field represents data that can be sent to your endpoint and can be populated dynamically during a conversation. For example, if a user provides their name, you can include it in the request body to personalize a welcome email or other message.
Auto-generate schema
Quickly define your request schema by selecting Auto-generate, pasting a sample JSON payload, and clicking Save. NLX automatically builds the schema based on your provided structure
Manual schema
Choose to define your request schema field by field. Use + Add field to create new properties and select their data types. Enter names, repeat as needed, and click Save
Action settings
Send context: Provides the context set to the conversation at the time the webhook is called
Enable advanced data model: This is on by default as it allows the use of the schema auto-generation features and additional data structure improvements
Last updated

