Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Debug Virtual Agent Bot Interconnect with a ServiceNow Virtual Agent secondary bot

Debug Workflow Studio executions of your Virtual Agent Bot Interconnect and Virtual Agent secondary bot integration.

Before you begin

Enable the following system properties:

  • sn_va_bot_ic.bot_interconnect.enable.logging = true
  • glide.outbound_http_log.override = true
  • glide.outbound_http_log.override.level = all

For more information, see Add a system property.

Role required: admin

Procedure

  1. In the Bot Interconnect instance, modify the shell topic you created in Virtual Agent:

    1. Navigate to All > Conversational Interfaces > Virtual Agent > Designer.

    2. Open the shell topic you created in a previous step.

    3. On the Flow tab, select the Bot Interconnect Topic Block.

    4. In the Additional Params (String) field, select the Script icon

Image omitted: icon-script.png
Script icon., and then add the following code:
    ```
    (function execute() {
      return JSON.stringify({quick: false}); 
    })()

    ```

5.  Select Save.

6.  Save the topic.
  1. Enable execution context debugging in Workflow Studio.

    1. Navigate to All > Process Automation > Process Automation Designer > Flow Administration > Settings.

    2. On the Settings page, select New.

    3. In the Flow/Subflow/Action field, select the Search icon

Image omitted: icon-search.png
Search icon..
4.  On the Select the document form, fill in the fields.

    Add the following Flow Designer document settings if your secondary bot is in synchronous mode.
Image omitted: debug-sn-sn-select-document-primary.png
Document setting for the primary bot in Workflow Studio if secondary bot is synchronous. Table name is Flow, and Document is VA API Bot Interconnect Integration Handler. \[Omitted image "debug-sn-sn-select-document-secondary.png"\] Alt text: Document setting for the primary bot in Workflow Studio if secondary bot is synchronous. Table name is Action Type, and Document is Bot Interconnect Sync Integration Handler.
    Add the following Flow Designer document settings if your secondary bot is in asynchronous mode.
Image omitted: Document-setting-secondary-bot-async1.png
Document setting for the primary bot in Workflow Studio if secondary bot is synchronous. Table name is Flow, and Document is VA API Bot Interconnect Integration Handler. \[Omitted image "Document-setting-secondary-bot-async2.png"\] Alt text: Document setting for the primary bot in Workflow Studio if secondary bot is asynchronous. \[Omitted image "Document-setting-secondary-bot-async3.png"\] Alt text: Document setting for the primary bot in Workflow Studio if secondary bot is synchronous. Table name is Action Type, and Document is Bot Interconnect Sync Integration Handler.
5.  Select **Ok**.

6.  In the **Reporting** field, select **Developer Trace**.

7.  Select **Submit**.

Result

You can view additional logs and Workflow Studio executions for debugging purposes.

Parent Topic:Using ServiceNow Virtual Agent as a secondary bot with Virtual Agent Bot Interconnect

Previous topic:Enable live agent connection on the primary instance

Next topic:Localization options for Virtual Agent