Virtual Agent API features available in Store release 3.0.x
-
- UpdatedAug 3, 2023
- 6 minutes to read
- Vancouver
- Virtual Agent
Virtual Agent API version 3.0.x provides access to more of the same features that are available in Virtual Agent and Agent Chat, including the ability to upload files from a private URL and synchronous handshake enhancements.
Ending abandoned Virtual Agent conversations
If a conversation is incomplete due to an error, Virtual Agent can ask the
primary bot to take control. If the takeControl flag is
true, Virtual Agent (as the secondary bot) will close
the conversation automatically. If the primary bot wants to start a conversation, it can
send the following action message: "hi"/START_CONVERSATION
.
- Idle time out: Interaction State is Closed Abandoned. State Reason is No Activity.
- Technical issues: Interaction State is Closed Abandoned. State Reason is Bot issues.
- Invalid user input: Interaction State is Closed Abandoned. State Reason is Invalid user input.
To request that the primary bot take control, send the takeControl flag in the body of the payload to the primary bot with a value of true.
Improved Virtual Agent API response time
Virtual Agent API responses include parameters like Take Control and NLU Score. These parameters are processed while preparing the response.
Starting with version 3.9.0, you can exclude the Take Control and/or NLU Score parameters from the Virtual Agent API response to improve the response time.
- Navigate to .
- Search for enable_take_control and send_nlu_score properties.
- Set the value of enable_take_control property to false to exclude Take Control setting and send_nlu_score property to false to exclude NLU Score calculation while processing the response. These properties are set to true by default.
Improved topic switching errors and troubleshooting
- The request includes both the topic name and topic ID (keyword topic discovery) or the topic intent name and topic intent ID (NLU topic discovery). Specify one or the other.
- The request includes an invalid topic or intent name or ID.
- The topic/intent name or ID is valid, but Virtual Agent can't run it because it's inactive or not a topic. For example, if the name or ID refer to a topic block or custom control object.
- The requested topic is already running.
- The requested topic is valid, but a security condition is preventing access. For example, the topic may not be permitted to run in the channel or some other access-control condition may apply.
- If topic switching fails, the conversation is closed with a message stating that the conversation cannot continue. The conversation will no longer remain in an open state.
- The previous request is marked as processed so that a new request can be made without waiting for a timeout.
- The reason for the failure is logged in the system log table ( ).
Synchronous handshake enhancements
Starting with version 3.0.x, Virtual Agent API can transfer to a live agent synchronously. When a user or agent finishes a conversation, the transfer back to Virtual Agent is done synchronously as well. Some system messages and wait time messages are also sent synchronously.
- Configure the Virtual Agent response endpoint. Agent Chat messages will be delivered to the endpoint you specify.
- You must manually turn off Notifications for the instance.
- If you are using synchronous transfer to a live agent, Virtual Agent API sends the typing indicator if it is enabled:
- Topics that use the following features are not supported in synchronous mode: file upload, the Action utility, and the Pause topic block.
- Navigate to .
- Select the Bot to Bot record.
- Clear the Enable Notifications check box to disable it.
- If you will not be transferring to a live agent in synchronous mode, clear the Support typing indicator check box to disable it.
- Select the Synchronous check box.
Figure 1. Bot to Bot channel with synchronous support enabled - Click Update.
Support for action messages
In addition to passing messages to a ServiceNow® Virtual Agent secondary bot, the primary bot or chat client can pass messages to an agent through Agent Chat. Use the action parameter passed in the request body to specify how the content should be handled.
Support for silentMessage flag
A silent message is a message that does not require a response. If Virtual Agent receives a request with silentMessage=true, all subsequent bot messages are suppressed until Virtual Agent receives a request to turn off silent mode (silentMessage=false).
Secure file uploads from a private URL
- Provider application ID is optional.
- The user ID and provider application ID should be sent before the file name in the payload.
- The end user must have a role specified in the glide.attachment.role property. For more information, see Require a role to attach files.
- Basic or OAuth authentication is supported, but Message Authentication is not.
Support for transformation of Virtual Agent API request and response
Virtual Agent API supports transformation of request and response payloads to and fro Virtual Agent API. This is helpful in cases where the primary bot has a common response template across all secondary bots. See Transform Virtual Agent API request and response for more information.
Support for configuring multiple provider applications
Virtual Agent API enables configuration of multiple provider applications to support use cases where there are multiple primary bots using Virtual Agent API and you need to distinguish between them. See Configure multiple provider applications for more information.
Support for Now Assist experience
Now Assist experience in Virtual Agent API offers generative AI skills across multiple provider channels. See Enable Now Assist experience in Virtual Agent API for more information.
On this page
- Ending abandoned Virtual Agent conversations
- Improved Virtual Agent API response time
- Improved topic switching errors and troubleshooting
- Synchronous handshake enhancements
- Support for action messages
- Support for silentMessage flag
- Secure file uploads from a private URL
- Support for transformation of Virtual Agent API request and response
- Support for configuring multiple provider applications
- Support for Now Assist experience