Context

Operations for asynchronously setting context for active NLX conversations.

Set conversation context

post

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.

channelKeystringRequired

The unique key identifying the specific channel. Must include the language code suffix (e.g., -en-US).

Example: xxxxxxxxxx-en-US
Body
conversationIdstringRequired

The conversation ID for this session.

Responses
200

Context successfully received and processed.

application/json
Responseobject
post
/c/{deploymentKey}/{channelKey}/context
POST /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