Virtual agent API output parameters

Soumya Thareja
Tera Contributor

Hi Experts,

Is there a possibility to send out the Interaction sys_ids to the 3rd party chatbot via outbound response from VA API?
The 3rd party chatbot requires to hit the attachment API in servicenow (in case of an attachment transfer), for which it needs a table sys_id. 

1 ACCEPTED SOLUTION

By default the cross scope is restricted, you can create a cross scope and try, it works. I can read informations

find_real_file.png

View solution in original post

6 REPLIES 6

Muralidharan BS
Mega Sage
Mega Sage

Just a thought, before sending an attachment, 

you can query the interaction table and get the sysid of the conversation. In a given time, a user cannot have more than one - sys_cs_conversation active. so I believe you can easily narrowed down. 

That's right, I am using that logic,but in my case I need to send them this sys_id as an outbound response from servicenow. But when I modify the VABotToBotUtils script include, it breaks. 

Hi, I tried doing a query from flow designer action, I get an error : Flow Designer: Scope does not have read access to table interaction: no thrown error.

When I create a read acl to in VA API Application, the filter condition builder is greyed out. I guess the Interaction table is inaccessible by default from the Virtual agent api scope. 

By default the cross scope is restricted, you can create a cross scope and try, it works. I can read informations

find_real_file.png