<h2>Using Virtual Agent API</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Using Virtual Agent API" /><meta name="abstract" content="Use the ServiceNow Virtual Agent API app to integrate any chat interface or a bot with ServiceNow Virtual Agent or Agent Chat. The app is available from the ServiceNow Store." /><meta name="description" content="Use the ServiceNow Virtual Agent API app to integrate any chat interface or a bot with ServiceNow Virtual Agent or Agent Chat. The app is available from the ServiceNow Store." /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/using-virtual-agent.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/capabilities-bundle-landingpage.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/conversational-interfaces/concept/ci-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/virtual-agent-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/va-api-features.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/va-api-features-v2.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/va-api-features-v3.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/install-virtual-agent-api.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/configure-send-request.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/set-up-message-auth-va-api.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/task/configure-response-endpoint-va-api.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/bot2bot.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/va-b2b-open-conversation.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/configure-multiple-provider-applications.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/transform-virtual-agent-api-request-and-response.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/virtual-agent/concept/enable-now-assist-experience-in-virtual-agent-api.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="virtual-agent-api" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Using Virtual Agent API</title></head><body id="virtual-agent-api"> <div class="breadcrumb"><a class="link" href="../../../administer/general/concept/capabilities-bundle-landingpage.html" title="Extend the ServiceNow AI Platform with additional applications and features.">Extend ServiceNow AI Platform capabilities</a> > <a class="link" href="../../../administer/conversational-interfaces/concept/ci-landing-page.html" title="Enable users to engage with live agents, virtual agents, or both using ServiceNow Conversational Interfaces. These interfaces provide tools for creating and managing optimal conversational experiences for users in the chat channels that they prefer.">Conversational Interfaces</a> > <a class="link" href="../../../administer/virtual-agent/concept/virtual-agent-landing-page.html" title="Unlock your enterprise productivity with ServiceNow Virtual Agent. Provide your employees and customers with a friendly messaging interface, featuring pre-built conversations powered by artificial intelligence.">Virtual Agent</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Using <span class="ph">Virtual Agent API</span></h1> <div class="body conbody"><p class="shortdesc">Use the <span class="ph">ServiceNow®</span> <span class="ph">Virtual Agent</span> API app to integrate any chat interface or a bot with <span class="ph">ServiceNow®</span> <span class="ph">Virtual Agent</span> or <span class="ph">Agent Chat</span>. The app is available from the <span class="ph">ServiceNow® Store</span>.</p> <div class="section" id="virtual-agent-api__section_cxx_ldc_qmb"><h2 class="title sectiontitle">Overview</h2> <p class="p">The <span class="ph">Virtual Agent</span> API is a REST API. This API is built on the conversational custom chat integration framework that is provided with <span class="ph">Virtual Agent</span> starting in the <span class="ph">Paris</span> release. The API enables <span class="ph">ServiceNow</span> developers, advanced users, and admins to use <span class="ph">Virtual Agent</span> in either of the following ways:</p> <div class="p"><dl class="dl"> <dt class="dt dlterm">Standalone bot</dt> <dd class="dd">Use <span class="ph">Virtual Agent</span> as a standalone bot that you integrate with enterprise or with any other third-party chat interface that supports conversational interfaces.<p class="p">Your end users can interact with the <span class="ph">Virtual Agent</span> and <span class="ph">Agent Chat</span> through multiple channels by using this integration.</p> </dd> <dt class="dt dlterm">Secondary bot</dt> <dd class="dd">Use <span class="ph">Virtual Agent</span> as a secondary bot in an environment that has multiple, specialized bots managed by a primary bot.<p class="p">In this scenario, a primary bot manages communication with secondary bots on behalf of the end user. A primary bot could be <span class="ph">IBM Watson Assistant</span>, <span class="ph">Microsoft LUIS</span>, or a homegrown primary bot.</p> <p class="p">Your secondary bots, such as the <span class="ph">ServiceNow</span> bot, might handle specific types of end-user requests, such as service tickets or reservations.</p> </dd> <dt class="dt dlterm"><span class="ph">Bot Interconnect</span></dt> <dd class="dd">Use <span class="ph">Virtual Agent</span> <span class="ph">Bot Interconnect</span> as the primary bot in a diverse chat environment. <span class="ph">Bot Interconnect</span> creates a unified chat experience and gives your end users access to multiple channels and a wide variety of enterprise tasks that are available from <span class="ph">ServiceNow</span>.</dd> </dl> </div> <p class="p">The <span class="ph">Virtual Agent</span> API is useful for creating server-to-server integrations. However, for integrations that require the transformation of unsupported controls that must be rendered in your existing chat interface, consider using the <a class="xref" href="va-custom-adapter-framework.html" title="Conversational custom chat integration framework is a powerful framework consisting of scriptable APIs and configurations to bring the ServiceNow Virtual Agent to any conversational interface.">Custom Chat Integration Framework</a>.</p> <p class="p">For information about features such as the URL format and the supported request and response parameters in the <span class="ph">Virtual Agent</span> API, see <a class="xref" href="https://docs.servicenow.com/csh?topicname=bot-api&version=washingtondc&pubname=washingtondc-api-reference" target="_blank" rel="noopener noreferrer">Virtual Agent Bot Integration API</a>.</p> <p class="p"><img class="image" id="virtual-agent-api__image_cwg_1bz_rvb" src="../../conversational-interfaces/image/icon-video-link.png" alt="Video link to Virtual Agent Academy." /> <a class="xref" href="https://www.youtube.com/watch?v=cyhmMyG4jKk" target="_blank" rel="noopener noreferrer">Augment your experiences with the Virtual Agent API</a> (Virtual Agent Academy video)</p> </div> <div class="section" id="virtual-agent-api__section_ivs_d2r_fnb"><h2 class="title sectiontitle">How the <span class="ph">Virtual Agent</span> API works</h2> <div class="p">The following diagram shows how the REST API processes user input from a third-party chat interface or a primary bot, and then generates a bot response.<ol class="ol" id="virtual-agent-api__ol_pwf_jqc_kyb"><li class="li">The user provides input to a primary bot or third-party chat interface.</li><li class="li">The bot sends a POST request JSON to the inbound REST endpoint (via scripted REST API).</li><li class="li">The <span class="ph">ServiceNow AI Platform</span> authenticates and processes the request, which is sent to <span class="ph">Virtual Agent</span> or a live agent.</li><li class="li">The <span class="ph">ServiceNow AI Platform</span> sends a POST response JSON from the outbound REST endpoint (via REST API) back to the bot.</li><li class="li">The primary bot or third-party chat interfaces displays the response to the user.</li></ol> </div> <div class="p"><div class="fig fignone" id="virtual-agent-api__fig_vsd_44r_fnb"><span class="figcap"><span class="fig--title-label">Figure 1. </span>Inbound and outbound REST endpoints in the <span class="ph">Virtual Agent</span> API</span> <img class="image" id="virtual-agent-api__image_wsd_44r_fnb" src="../images/va-api-steps.png" alt="Diagram that shows how the REST endpoints in the Virtual Agent API handle user input and authentication and bot response and authentication." /> </div> </div> <p class="p">To see a demonstration of the <span class="ph">Virtual Agent</span> API and an FAQ, see <a class="xref" href="https://community.servicenow.com/community?id=community_article&sys_id=080e3903dbc4e4107d3e02d5ca96198c" target="_blank" rel="noopener noreferrer">Getting Started with Virtual Agent APIs</a> on the Community site.</p> </div> <div class="section" id="virtual-agent-api__section_xqy_r1l_2qb"><h2 class="title sectiontitle">Limitations</h2> <div class="p">The <span class="ph">Virtual Agent</span> API does not support the following features:<ul class="ul" id="virtual-agent-api__ul_yqy_r1l_2qb"><li class="li">Chat branding through this <span class="ph">Virtual Agent</span> API integration</li></ul> </div> </div> <div class="section" id="virtual-agent-api__section_t11_5zb_dqb"><h2 class="title sectiontitle">Version and release compatibility</h2> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="virtual-agent-api__table_syv_gzb_dqb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span><span class="ph">Virtual Agent</span> API version and release compatibility</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d1122922e311">Version</th><th class="entry cellrowborder" style="vertical-align:top;" id="d1122922e314">Compatible Releases</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.10.0</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Washington DC</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.9.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Vancouver</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.8.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Vancouver</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.7.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Utah</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.5.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Tokyo</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">3.0.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">San Diego</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">2.0.x</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Rome</span> <p class="p">A subset of features is compatible with <span class="ph">Quebec</span>.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">1.3.0</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Quebec</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">1.0.12</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Quebec</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e311 ">1.0.9</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d1122922e314 "><span class="ph">Paris</span></td></tr></tbody></table> </div> </div> <div class="note"><span class="notetitle">Note:</span> The <span class="ph">Virtual Agent</span> API requires a Pro license similar to that of <span class="ph">Virtual Agent</span>.</div> </div> </div> <div class="related-links"> <ul class="ullinks"><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/va-api-features.html">Virtual Agent API features</a></strong><br /> You can use the <span class="ph">Virtual Agent</span> API to integrate many of the same features that are available in <span class="ph">Virtual Agent</span> and <span class="ph">Agent Chat</span> into your chat environment. Feature support varies depending on your <span class="ph">ServiceNow</span> release and the Store app version number of the API.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/va-api-features-v2.html">Virtual Agent API features available in Store release 2.0.x</a></strong><br /> <span class="ph">Virtual Agent</span> API version 2.0.x provides access to more of the same features that are available in <span class="ph">Virtual Agent</span> and <span class="ph">Agent Chat</span>, including rich control support and notifications.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/va-api-features-v3.html">Virtual Agent API features available in Store release 3.0.x</a></strong><br /> <span class="ph">Virtual Agent API</span> version 3.0.x provides access to more of the same features that are available in <span class="ph">Virtual Agent</span> and <span class="ph">Agent Chat</span>, including the ability to upload files from a private URL and synchronous handshake enhancements.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/install-virtual-agent-api.html">Install the Virtual Agent API</a></strong><br /> Install the <span class="ph">Virtual Agent</span> API app to integrate any chat interface or a bot with <span class="ph">ServiceNow®</span> <span class="ph">Virtual Agent</span> or <span class="ph">Agent Chat</span>.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/configure-send-request.html">Review the inbound REST endpoint and configure inbound authentication</a></strong><br /> After you install the <span class="ph">Virtual Agent</span> API, navigate to the Scripted REST API resource to review the endpoint and set up authentication.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/set-up-message-auth-va-api.html">Configure Message Authentication for inbound communication</a></strong><br /> You can configure Message Authentication for the <span class="ph">Virtual Agent</span> API instead of Basic or OAuth. Message Authentication involves configuring either Static or Hash tokens, setting up Provider Authentication, and setting the channel identity.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/task/configure-response-endpoint-va-api.html">Configure the output response REST endpoint and outbound authentication for the Virtual Agent API</a></strong><br /> Specify the outbound endpoint URL to which the <span class="ph">Virtual Agent</span> responses are posted. Configure outbound authentication.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/bot2bot.html">Virtual Agent bot-to-bot integration</a></strong><br /> The <span class="ph">Virtual Agent</span> API supports environments that use multiple bots. In this situation, a primary bot communicates with third-party secondary bots, such as a <span class="ph">ServiceNow</span> bot.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/va-b2b-open-conversation.html">Closing idle bot-to-bot conversations</a></strong><br /> In bot-to-bot integrations (Virtual Agent API), abandoned conversations that are "idle" for more than an hour are automatically closed by the scheduled job, <span class="keyword parmname">Time Out Abandoned B2B Conversations</span>. This job runs hourly each day.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/configure-multiple-provider-applications.html">Configure multiple provider applications</a></strong><br /> You can configure multiple provider applications to support use cases where there are multiple primary bots using <span class="ph">Virtual Agent API</span> and you need to distinguish between them.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/transform-virtual-agent-api-request-and-response.html">Transform Virtual Agent API request and response</a></strong><br /> You can transform Virtual Agent API request and response into supported formats through the scripted extension points provided in Virtual Agent API.</li><li class="link ulchildlink"><strong><a href="../../../administer/virtual-agent/concept/enable-now-assist-experience-in-virtual-agent-api.html">Enable Now Assist experience in Virtual Agent API</a></strong><br /> Enable <span class="ph">Now Assist</span> experience in <span class="ph">Virtual Agent API</span> to support generative AI skills across multiple provider channels.</li></ul> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/virtual-agent/concept/using-virtual-agent.html" title="Convert the time your agents and technicians spend handling low-impact user requests into an intelligently managed interaction. Enable Virtual Agent with NLU to understand the intent of what people are looking for and provide them with more relevant answers.">Building and deploying Virtual Agent</a></div> </div> </div></body></html></div>