--- title: Virtual Agent Bot Integration API description: The Virtual Agent Bot Integration API provides endpoints that allow users to integrate any chat interface or a bot ecosystem with the ServiceNow Virtual Agent and/or Live Agent.Sends a specified message, attachment, or URL to a specified secondary ServiceNow Virtual Agent \(VA\) bot. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/bot-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 35 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Virtual Agent Bot Integration API The Virtual Agent Bot Integration API provides endpoints that allow users to integrate any chat interface or a bot ecosystem with the ServiceNow Virtual Agent and/or Live Agent. This API is built on the conversational custom chat integration framework provided with Virtual Agent and operates in the `sn_va_as_service` namespace. For additional information on installing and configuring the Virtual Agent Bot Integration API, see [Using Virtual Agent with a live agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/using-va-agent-chat.md). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## VA Bot Integration - POST /sn\_va\_as\_service/bot/integration Sends a specified message, attachment, or URL to a specified secondary ServiceNow Virtual Agent \(VA\) bot. A customer's site can have one or more secondary ServiceNow bots. In addition to passing messages to a ServiceNow VA secondary bot, the primary bot or chat client can use this endpoint to pass messages to an agent through Live Agent chat. Use the **action** parameter passed in the request body to specify how the specified content should be handled. **Note:** This endpoint can be either synchronous or asynchronous depending on how it's configured. If asynchronous, when the request is received by the endpoint, it validates the request and responds with a call status of success or failure and the appropriate HTTP status code. The VA then processes the request and sends a second response to the configured response endpoint. For example, for a bot-to-bot integration, the second response would be to the URL of your primary bot. Both of these responses are defined below. For additional information on this configured response endpoint, see Configure the output response REST endpoint and outbound authentication for the Virtual Agent API. **Note:** The responses in the code examples for this endpoint show what is sent from the VA to the configured response endpoint. They don't show the actual response to this endpoint which is a simple success or failure response. ### URL format Default URL: `/api/sn_va_as_service/bot/integration` ### Supported request parameters |Name|Description| |----|-----------| |None| | |Name|Description| |----|-----------| |None| |
| Name | Description |
|---|---|
| action | Action that the VA should take.Valid values: - [AGENT](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Switches the conversation from VA to Live Agent. - [CREATE\_CONVERSATION](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Creates a chat interaction. Set **syncResponse** to `true` to return the conversation and interaction details back in the response. - [END\_CONVERSATION](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Ends the chat conversation. The **message.text** parameter should be empty when using this action. - [FAULT\_CONVERSATION](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Faults a conversation. When setting a FAULT\_CONVERSATION action, provide a description for the **cause** parameter. - [SEND\_HISTORY](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Updates only the chat history. The chat history can also be sent using standard message processing with the **history** parameter. - SET\_USER\_TIMEZONE: Sets the user’s time zone to the time zone specified in the **timezone** parameter. This time zone remains in effect until you reset it using this same parameter. - [START\_CONVERSATION](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Starts a chat conversation. - [START\_CREATED\_CONVERSATION](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Starts a chat conversation initiated using `CREATE_CONVERSATION`. Set **syncResponse** to `true` to process the request synchronously and avoid race conditions that cause timing issues. - [SWITCH](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): Switch the conversation to a topic that matches what is specified in the **intent.id** or **topic.name** parameters. **Note:** Only use the `SWITCH` action for topic switching when the intent discovery happens in the primary bot. If the intent discovery happens in the ServiceNow® VA, use the **message.text** parameter. - TYPING/VIEWING: Displays the typing indicator in Live Agent. First send `TYPING` and then after the user finishes typing, send `VIEWING`. - [UPDATE\_MESSAGES](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/bot-api.md): This action is used during live agent conversations and provides two message update functions for third-party chat integrations for the messages received from the live agent that are reflected on the agent chat panel: - The latest message delivery status after sending a message from third-party. - Updated text on the agent chat panel. The third-party chat integration can update the text portion of the message before sending it to the end user. This action can be called to update the text on the agent chat panel so that the agent can see the updated text with an "Updated" tag. This action is used with the **message.status** and **message.id** parameters. This option is only valid if custom adapter property with name third\_party\_chat tied to provider application is set to `true`. This is a synchronous action irrespective of synchronous/asynchronous nature of the channel. - Null or parameter not passed: Sends the message to the ServiceNow VA. The third-party chat integration can update the text message triggered from the live agent before sending it to the end user. This action can be called to update the text on the agent chat panel so that the agent can see the updated text with an "Updated" tag. Data type: String Default: Null |
| botToBot | Flag that indicates whether the conversation is between bots, such as between a primary bot and secondary bot.Possible values: - true: Bot-to-bot conversation. - false: Standalone ServiceNow bot conversation. Data type: Boolean Default: true |
| cause | Cause of a chat conversation fault, for example, `EXTERNAL_FAILURE`. This property is only used when the **action** property is set to **FAULT\_CONVERSATION**.Data type: String |
| clientSessionId | Unique client session identifier of the application/service that the end user is using to communicate with the ServiceNow botor the supported third-party chat applications.- This ID helps identify the set of request/responses for a specific user conversation. - The format of this parameter is determined by the implementer. - This value is only updated if the value of the **third\_party\_chat** field is `true` in the **Custom Adapter Property** form. Table: Interaction \[interaction\] Data type: String Default: Null |
| clientVariables | Pass-through JSON-formatted name-value pairs that are sent back in the response. These values aren't processed by the endpoint, but can be used to keep specific customer information attached to the conversation.Data type: Object Default: Null |
| contextVariables | JSON-formatted name-value pairs that provide addition information about the user. Provide this information to customize the conversation experience. For additional information on context variables, see [Define and publish chat context variables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/ac-configure-context-variables.md).For example: ``` "contextVariables": { "requester_session_language": "es", "deviceTimeZone": "America/Los_Angeles" "live_agent_only": "true", "liveagent_deviceType": "test_device_type" "topic": "7c3c819073a3101066c7e9344ef6a7e4" } ``` Data type: Object Default: Null |
| emailId | Required when enabling account linking, otherwise all users are considered guest users. Email address of the chat client end user, the person the bot is interacting with. For additional information on account linking, see [Link your ServiceNow user account to a messaging application for Virtual Agent conversations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/link-accounts-with-virtual-agent.md).Data type: String |
| history | History of the primary bot’s conversation with the user, starting with the initial request by the user.Data type: Object ``` "history": { "displayName": "String", "isBotMessage": Boolean, "timestamp": "String", "type": "String", "value": "String" } ``` |
| history.displayName | Name of the user to whom the message was sent. If the primary bot, pass `Bot`.Data type: String |
| history.isBotMessage | Flag that indicates whether the message was sent by the primary bot.Valid values: - true: Message was sent by the primary bot. - false: Message was sent by the user. Data type: Boolean |
| history.timestamp | Timestamp indicating the time at which the message was sent in milliseconds.Valid values: 13-digit Unix timestamp Data type: String |
| history.type | Type of message sent.Valid values: text Data type: String |
| history.value | Content of the information. For example, the message text.Data type: String |
| intent | Describes the intent of the conversation. Provide this information when the **action** parameter is set to `SWITCH`.Data type: Object ``` "intent": { "id": "String" } ``` |
| intent.id | NLU Intent ID of the system topic to switch the conversation to. The **intent.id** is resolved based on the language passed in the chat session. If no language is passed when starting a conversation, it obtains the language from the user's session/profile.Data type: String Table: CS Topic Language \[sys\_cs\_topic\_language\] |
| message | Required. Details of the message to send to the ServiceNow bot.Data type: Object ``` "message": { "attachment": [Array of Objects], "clientMessageId": "String", "status": "String", "text": "String", "typed": Boolean } ``` |
| message.attachment | Required if sending attachments. Details of each attachment to send.You can only pass attachments as a URL. A virus scan is triggered on all attachments. There is no restriction on the size of an attachment, however, large files can take significant time to transfer. Data type: Array of Objects ``` "attachment": [ { "clientAttachmentId": "String", "contentType": "String", "fileName": "String", "headers":{Object}, "id": "String", "url": "String" } ] ``` |
| message.attachment.clientAttachmentId | Unique identifier of the attachment to send to the ServiceNow bot. The format of this identifier is determined by the implementer.Data type: String Default: Null |
| message.attachment.contentType | Required if attachment specified. Standard mime type of the attachment.Valid values \(not case-sensitive\): - application/pdf - application/msword - image/png - image/jpeg - text/plain - video/mpeg Data type: String |
| message.attachment.fileName | Required if attachment specified. File name of the attachment.Data type: String |
| message.attachment.headers | Additional information needed if the attachment file is private and protected.Data type: Object ``` "headers":{ "Authorization":"String" } ``` |
| message.attachment.headers.Authorization | Information needed to obtain authorization to access the attachment, such as a user name and password.Data type: String |
| message.attachment.url | Required if attachment specified. URL where the attachment is located. The VA obtains the attachment from this URL, runs a virus scan, and then processes the file. If the attachment isn't a public file, you must pass an **message.attachment.header** object that contains the authorization information so that the attachment can be accessed. You must also ensure that URL domain is present in the trusted domains filed in **sys\_cs\_provider**.Data type: String |
| message.clientMessageId | Unique alphanumeric identifier for the message. The format of this identifier is determined by the implementer.Data type: String Default: Null |
| message.id | Only used with the **UPDATE\_MESSAGES** action. Unique ID of the chat message to be updated.Data type: String |
| message.status | Message status.Valid values \(not case-sensitive\): - external\_error - Used when message delivery is failed from third-party chat integration to end user. The agent chat panel will be reflected as a "Failed" tag. - sent\_to\_user - Initially a single tick mark displays for messages delivered from live agent to third- party chat integration. This status must be used when the message is successfully delivered from third-party chat integration to the end user. Upon success, the double tick mark displays on the agent chat panel. Data type: String |
| message.text | Required if **attachment** parameter isn't specified. Message text. - The language of the message should be passed in the **contextVariables** parameter. - Must be empty if the value of the action property is `END_CONVERSATION`. - Must be the updated text to be reflected on agent chat panel if the value of the action property is `UPDATE_MESSAGES`. Data type: String Maximum length: Unlimited |
| message.typed | Required. Flag that indicates whether the message was typed in or was an option selection \(selected\).Valid values: - true: Message was typed in by the user. - false: Message was an option selection. Data type: Boolean |
| requestId | Required. Unique alphanumeric identifier for this request. The format of this identifier is determined by the implementer.Data type: String |
| silentMessage | Flag that indicates whether this is a silent message. A silent message is a message that doesn’t require a response.Valid values: - true: Silent message, no response message expected. - false: Regular message, response message expected. **Note:** If a request with `silentMessage = true` is sent, all subsequent bot messages remain suppressed until a request to turn off silent mode is sent by passing `silentMessage = false`. Data type: Boolean Default: false |
| syncResponse | Applicable for CREATE\_CONVERSATION and START\_CREATED\_CONVERSATION actions. Flag that indicates whether to wait before returning a synchronous response from the API. **Note:** This parameter prevents a potential race condition where the `Work Offer` API could be triggered before the `CREATE_CONVERSATION` and `START_CREATED_CONVERSATION` request finished processing. Making the response synchronous eliminates this timing issue. Valid values: - true: Returns a synchronous response. - false: Returns a response without waiting. Default: false |
| timestamp | Unix epoch time when the message was sent from the end user of the chat client.Data type: Number Unit: Milliseconds Default: Current time |
| timezone | GMT time zone of the end user of the chat client.For example: ``` "timezone":"Asia/Kolkata" ``` For a list of the available time zone values, see [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Data type: String Default: GMT time zone of the ServiceNow instance. |
| topic | Required if the user wants to switch to a particular topic by specifying a topic name. Name-value pair of the topic to switch to. You can either specify the topic name or the topic sys\_id.**Note:** You can only specify a single topic name or ID in the object. Data type: Object ``` "topic": { "name": "String", "id": "String" } ``` For example: ``` { "requestId": "xxxx-xxxx-xxxx-xxxx", "clientSessionId": "xxx-xxx-xxx-xxx", "action":"SWITCH", "topic":{ "name": "Topic Name" }, "userId": "beth" } ``` |
| topic.name | Name of the topic to switch to.Data type: String Table: In the name field of the Virtual Agent topics \[sys\_cs\_topic\] table. |
| topic.id | Sys\_id of the topic to switch to.Data type: String Table: Virtual Agent topics \[sys\_cs\_topic\] |
| userId | Required. Unique user identifier. This is the identifier of the end user who is interacting with the bot.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Only supports **application/json**. |
| Content-Type | Data format of the request body. Only supports **application/json**. |
| token | Required if using token-based authentication; optional for Basic or OAuth authentication. Authentication token to use if token authentication has been set up for this endpoint.Data type: String |
| Status code | Description |
|---|---|
| 200 | Successful. The request was successfully processed.If you receive a 200 status code, but don’t receive a response back, check the following things: - Whether the request is failing in Static, JWT, or Hash Based Token validation, which generally happens in the worker thread of Virtual Agent. - Whether the request body format is correct. If incorrect, the conversion doesn’t happen correctly. - Whether the request body is missing some required parameters. You can trace exceptions and errors in the System Logs on the ServiceNow instance. - Whether the site defined in the REST Message to receive the response is operational; able to detect in logs. - Ensure the REST Message that defines where to post the response is set correctly. |
| 400 | Bad Request. A bad request type or malformed request was detected. |
| 401 | Unauthorized. The user credentials are incorrect or have not been passed. |
| 405 | Invalid method. The functionality is disabled. |
| 500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
| Name | Description |
|---|---|
| error | Description of the detected error. Only returned if an error occurs.Data type: Object ``` "error": { "detail": "String", "message": "String" } ``` |
| error.detail | Details about the encountered error.Data type: String |
| error.message | Error message thrown.Data type: String |
| status | Status of the endpoint call.Valid values: - failure - success Data type: String |
| Name | Description |
|---|---|
| agentChat | Flag that indicates whether the conversation is connected to the ServiceNow Live Agent.Possible values: - true: Chat messages are coming from a live agent. - false: Chat messages are coming from a bot and this parameter isn’t returned in the response. Data type: Boolean |
| body | List of objects that describe the elements of the response message body.Data type: Array of Objects ``` "body": [ { "actionType": "String", "agentInfo": {Object}, "data": "String", "group": "String", "header": "String", "height": Number, "itemType": "String", "label": "String", "maskType": "String", "maxCount": Number, "maxSize": Number, "message": "String", "messageId": "String", "multiSelect": Boolean, "nluTextEnabled": Boolean, "options": {Object}, "promptMsg": "String", "required": Boolean, "style": "String", "templateName": "String", "type": "String", "uiType": "String", "value": "String/{Object}", "width": Number } ] ``` |
| body.actionType | Type of action message dispatched by the secondary bot to the primary bot. For example, typing indicator or agent wait time.Possible values: - EndTypingIndicator - StartSpinner - StartTypingIndicator For example: Sending `StartTypeIndicator` to the primary bot when the typing indicator is enabled. ``` "body": { "uiType":"ActionMsg", "actionType":"StartTypingIndicator" } ``` Sending `StartSpinner` when transferring to Live Agent to display the wait time to the end user. ``` "body": { "uiType":"ActionMsg", "actionType":"StartSpinner", "spinnerType":"wait_time", "message":"Routing you to a live agent...", "waitTime":"8 Seconds" } ``` Data type: String |
| body.agentInfo | If enabled in the agent chat setup, the name and avatar of the associated agent. Data type: Object ``` "agentInfo":{ "agentAvatar":"String", "agentId":"String", "agentName": "String", "sentFromAgent": Boolean } ``` For example: ``` "agentInfo":{ "sentFromAgent": true, "agentName":"Beth Anglin", "agentAvatar":"https://instance.servicenow.com/ee4eebf30a0004d963b5c5ac0d734dc4.iix?t=small" } ``` |
| body.agentInfo.agentAvatar | URL of the agent's associated avatar file.For example: "https://instance.servicenow.com/ee4eebf30a0004d963b5c5ac0d734dc4.iix?t=small" Data type: String |
| body.agentInfo.agentId | The sys\_id of the live agent.Table: Live Profile \[live\_profile\] Data type: String |
| body.agentInfo.agentName | Display name of the agent.Data type: String |
| body.agentInfo.sentFromAgent | Flag that indicates whether the message was sent by a live agent.Possible values: - true: Sent by a live agent. - false: Sent by a virtual agent. Data type: Boolean |
| body.data | JSON string that defines the data within the card.Data type: String |
| body.group | Rich control group to which the body element belongs. You can further transform these default controls by writing outbound transformation scripts. For additional information on these scripts, see [Virtual Agent action scripts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/va-action-scripts.md).Possible values: - DefaultOutputCard - DefaultDate - DefaultGroupedPartsOutputControl - DefaultHtml - DefaultOutputImage - DefaultOutputLink - DefaultText - DefaultPicker Data type: String |
| body.header | Link header.Data type: String |
| body.height | Height of the HTML element.Data type: Number Unit: Pixels |
| body.itemType | Type of body element.Possible values: \(case-sensitive\) - DefaultText - File - Image - Inputtext - outputtext - DefaultPicker - Picture: Items appear in a carousel. - List: Items appear in a dropdown-style list. Data type: String |
| body.label | Label to display for the associated element.Data type: String |
| body.maskType | Sensitivity of the associated data.Possible values: - NONE: Associated data is of a general nature and doesn’t need to be secured. - SECURE: Associated data is of a sensitive nature and should be handled securely. Data type: String |
| body.maxCount | Only returned when **uiType** is `FileUpload`. Maximum number of attachments that can be uploaded at one time.Data type: Number \(Integer\) |
| body.maxSize | Only returned when **uiType** is `FileUpload`. Maximum size of the attachment that can be uploaded.Data type: Number \(Integer\) Unit: Megabytes |
| body.message | Only returned when **actionType** is `StartSpinner`. Message to display to user.Data type: String |
| body.messageId | Unique identifier for the message sent to the supported third-party chat applications from the ServiceNow Virtual Agent.Table: Conversation Message \[sys\_cs\_message\] Data type: String |
| body.multiSelect | Flag that indicates whether the user can select multiple options.Possible values: - true: Multiple selections. - false: Single selection. Data type: Boolean |
| body.nluTextEnabled | Flag that indicates whether the user chat client can receive Natural Language Understanding \(NLU\) text messages.Possible values: - true: Can receive NLU messages. - false: Can’t receive NLU messages. Data type: Boolean |
| body.options | List that describes the options available for a picker control.Data type: Array of Objects ``` "options": [ { "attachment": "String", "description": "String", "enabled": Boolean, "label": "String", "renderStyle": "String", "value": "String" } ] ``` |
| body.options.attachment | URL of the image in the carousel to retrieve.Data type: String |
| body.options.description | Description of the carousel item.Data type: String |
| body.options.enabled | Flag that indicates whether the picker control is enabled on the end user's chat client. In bot-to-bot implementations, the primary bot is responsible for ensuring the picker control is disabled.Possible values: - true: Enabled - false: Disabled Data type: Boolean |
| body.options.label | Label to display for the associated **body.options.value** parameter.Data type: String |
| body.options.renderStyle | Style to use when rendering the associated element.Possible value: data Data type: String |
| body.options.value | Value to display for the associated **body.options.label** parameter.Data type: String |
| body.promptMsg | Prompt message to display with the picker control.Data type: String |
| body.required | Flag that indicates whether the end user must respond to the query in the body element.Possible values: - true: Required - false: Optional Data type: Boolean |
| body.spinnerType | Only returned when **actionType** is `StartSpinner`. Type of spinner shown to chat user.Possible values: `wait_time:` Message indicating the amount of delay before being transferred to a live agent. Data type: String |
| body.style | Style of body element.Possible values: - button - carousel - list - null Data type: String |
| body.templateName | Name of the template to use to display the associated card.Data type: String |
| body.type | Only returned for DefaultOutputLink. Type of return data.Possible values: link Data type: String |
| body.uiType | Type of body element. The possible values depend on the value in the **body.group** parameter. These values map back to the controls defined in the Virtual Agent Designer. For more information, see [Getting started with Virtual Agent Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/conversation-designer-virtual-agent.md).Possible values: - ActionMsg - DefaultOutputCard OutputCard - DefaultDate - Date - DateTime - Time - DefaultGroupedPartsOutputControl GroupedPartsOutputControl - DefaultHtml OutputHtml - DefaultOutputImage OutputImage - DefaultOutputLink OutputLink - DefaultText - InputText - OutputText - FileUpload - DefaultPicker - Picker - TopicPickerControl - Boolean Data type: String |
| body.value | Data to use to process the body element. The type of information that is passed back depends on the type of body element.OutputLink: Object. ``` "value": { "action": "String" } ``` OutputImage: String. Image URL. OutputHtml: String. HTML that the client needs to render. Data type: String or Object |
| body.value.action | Only returned for DefaultOutputLink. URL of returned link.Data type: String |
| body.waitTime | Amount of time that the user has to wait before being connected to a live agent.Data type: String |
| body.width | Width of the associated HTML element.Data type: Number Unit: Pixels |
| clientSessionId | Unique client session identifier of the chat application/service that the end user is using to communicate with the ServiceNow bot.Data type: String |
| clientVariables | JSON-formatted name-value pairs that are copied from what is passed in the **clientVariables** parameter in the request body. These values aren’t processed by the endpoint, but can be used to keep specific customer information attached to the conversation.Data type: Object |
| completed | Flag that indicates whether the ServiceNow Virtual Agent has successfully completed the conversation.Possible values: - true: Conversation has been successfully completed. - false: Conversation isn’t complete and this parameter isn’t returned in the response. Data type: Boolean |
| enterpriseId | Currently unused. |
| interactionId | Unique identifier for each conversation between the ServiceNow Virtual Agent and the supported third-party chat applications.Data type: String |
| message | Details of the message sent to the ServiceNow VA. This is the same as the passed in message object.Data type: Object ``` "message": { "attachment": {Object}, "clientMessageId": "String", "text": "String", "typed": Boolean } ``` |
| message.attachment | Details of the attachment. Attachments can be either a file or a URL.Data type: Object ``` "attachment": { "clientAttachmentId": "String", "contentType": "String", "fileName": "String", "url": "String" ``` |
| message.attachment.clientAttachmentId | Unique identifier of the attachment sent to the ServiceNow VA. The format of this identifier is determined by the implementer.Data type: String |
| message.attachment.contentType | Standard mime type of the attachment.Possible values \(not case-sensitive\): - application/msword - application/pdf - image/jpeg - image/png - text/plain - video/mpeg Data type: String |
| message.attachment.fileName | File name of the attachment.Data type: String |
| message.attachment.url | URL where the attachment is located.Data type: String |
| message.clientMessageId | Unique alphanumeric identifier for the message.Data type: String |
| message.text | Message text.Data type: String Maximum length: Unlimited |
| message.typed | Flag that indicates whether the message was typed in or was an option selection \(selected\).Possible values: - true: Message was typed in by the user. - false: Message was an option selection. Data type: Boolean |
| nowBotId | Currently unused. |
| nowSessionId | Currently unused. |
| requestId | Unique identifier for this request.Data type: String |
| score | Intent confidence score from the ServiceNow NLU model, specified as a percent, such as 87.3%. This score enables the primary bot to make the decision whether to surface the associated intent based on the primary bot’s NLU model’s confidence threshold. The ServiceNow NLU model’s confidence threshold is ignored on the ServiceNow instance so that the primary bot’s NLU model’s confidence threshold can be consistently applied across all secondary bots.Data type: Number |
| takeControl | Flag that indicates that the ServiceNow Virtual Agent wants to hand control back over to the primary bot.Possible values: - true: Return control to the primary bot. - false: Keep control. Data type: Boolean Default: false |
| userId | Identifier of the end user who is interacting with the bot.Data type: String |