{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4930,"path":"conversational-interfaces/virtual-agent/debug-bot-sn-sn-configuration.md","title":"Debug Virtual Agent Bot Interconnect with a ServiceNow Virtual Agent secondary bot","bundle":null,"doc_type":null,"release":"australia","body":"\n# Debug Virtual Agent Bot Interconnect with a ServiceNow Virtual Agent secondary bot\n\nDebug Workflow Studio executions of your Virtual Agent Bot Interconnect and Virtual Agent secondary bot integration.\n\n## Before you begin\n\nEnable the following system properties:\n\n-   **sn\\_va\\_bot\\_ic.bot\\_interconnect.enable.logging** = true\n-   **glide.outbound\\_http\\_log.override** = true\n-   **glide.outbound\\_http\\_log.override.level** = all\n\nFor more information, see [Add a system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_AddAPropertyUsingSysPropsList.md).\n\nRole required: admin\n\n## Procedure\n\n1.  In the Bot Interconnect instance, modify the shell topic you created in Virtual Agent:\n\n    1.  Navigate to **All** &gt; **Conversational Interfaces** &gt; **Assisant Designer**.\n\n    2.  Select the **Asset library** tab.\n\n    3.  Open the shell topic you created in a previous step.\n\n    4.  On the **Flow** tab, select the Bot Interconnect Topic Block.\n\n    5.  In the **Additional Params \\(String\\)** field, select the Script icon \\[Omitted image \"icon-script.png\"\\] Alt text: Script icon., and then add the following code:\n\n        ```\n        (function execute() {\n          return JSON.stringify({quick: false}); \n        })()\n        ```\n\n    6.  Select Save.\n\n    7.  Save the topic.\n\n2.  Enable execution context debugging in Workflow Studio.\n\n    1.  Navigate to **All** &gt; **Process Automation** &gt; **Process Automation Designer** &gt; **Flow Administration** &gt; **Settings**.\n\n    2.  On the Settings page, select **New**.\n\n    3.  In the **Flow/Subflow/Action** field, select the Search icon \\[Omitted image \"icon-search.png\"\\] Alt text: Search icon..\n\n    4.  On the Select the document form, fill in the fields.\n\n        Add the following Flow Designer document settings if your secondary bot is in synchronous mode.\n\n        \\[Omitted image \"debug-sn-sn-select-document-primary.png\"\\] Alt text: 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.\n\n        Add the following Flow Designer document settings if your secondary bot is in asynchronous mode.\n\n        \\[Omitted image \"Document-setting-secondary-bot-async1.png\"\\] Alt text: 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.\n\n    5.  Select **Ok**.\n\n    6.  In the **Reporting** field, select **Developer Trace**.\n\n    7.  Select **Submit**.\n\n\n## Result\n\nYou can view additional logs and Workflow Studio executions for debugging purposes.\n\n**Parent Topic:**[Using ServiceNow Virtual Agent as a secondary bot with Virtual Agent Bot Interconnect](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/using-sn-secondary-bot-with-sn-primary.md)\n\n**Previous topic:**[Enable live agent connection on the primary instance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/enable-live-agent-connection-on-the-secondary-instance.md)\n\n**Next topic:**[Localization options for Virtual Agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/multi-language-options-va.md)\n\n"}}