Context
Operations for asynchronously setting context for active NLX conversations.
Send contextual information for active conversations, especially Voice+. Provides structured context about web page elements, form fields, and available actions to the active voice session.
Authorizations
nlx-api-keystringRequired
Standard authentication for Conversation endpoints.
Path parameters
deploymentKeystringRequired
The unique key identifying the NLX app deployment.
channelKeystringRequiredExample:
The unique key identifying the specific channel. Must include the language code suffix (e.g., -en-US).
xxxxxxxxxx-en-USBody
conversationIdstringRequired
The conversation ID for this session.
Responses
200
Context successfully received and processed.
application/json
Responseobject
400
Bad Request - Invalid context format.
403
Forbidden - Invalid API key or unauthorized context submission.
post
/c/{deploymentKey}/{channelKey}/contextPOST /c/{deploymentKey}/{channelKey}/context HTTP/1.1
Host: apps.nlx.ai
nlx-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 391
{
"conversationId": "text",
"context": {
"nlx:vpContext": {
"uri": "text",
"actions": [
{
"action": "text",
"description": "text",
"schema": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"fields": [
{
"id": "text",
"name": "text",
"type": "text",
"description": "text",
"placeholder": "text",
"value": null,
"options": [
{
"value": null,
"text": null,
"selected": true
}
]
}
],
"destinations": [
"text"
]
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{}Last updated

