Request model
Quickly set up the payload fields of your action in your NLX workspace
Last updated
Quickly set up the payload fields of your action in your NLX workspace
Last updated
This feature is currently available to enterprise tiers only.
An Action's Request model tab allows you to specify and shape the payload data to be sent with your API call.
When building your conversations, you can also populate these fields dynamically to achieve some custom behavior. For instance, if you collected a name during a conversation, you can transmit this name to your webhook, so it can be included inside a welcome email.
Need more context? See the side panel setup of an
String: A simple text value, such as a customer's name
Number: An integer, such as a customer's age
Boolean: A value consisting of true or false
List: A list of values that can have other response types nested within
The simplest method for inputting your request schema is to use the model generation tool:
Select <> Create from example JSON
Enter/paste sample JSON request
Click Set request schema
Click Save
When selecting Object or List request schemas, a sub-items section will display to specify the multiple values:
Expand Items/Properties section > Click +Add property
Expand new property section > Enter Field name
Choose the specific value's schema type using the dropdown
Repeat steps to add properties, as needed
Click Save
Optional settings
Sensitive: Enable if you would like the values to be scrubbed from any resulting conversation logs
Description: Provide a statement describing the request model or intended function of the setup
Object: A well-defined structure of multiple values, such as name, age, occupation. Use if wanting to reference the values in the payload of the