Virtual agent interactions

Community Alums
Not applicable

Hi all,

 

Does anyone know how virtual agents interaction records get created after a conversation?

and if so, how to populate other fields of the interaction record depending on the conversation? 

Thanks

1 ACCEPTED SOLUTION

Chris D
Kilo Sage
Kilo Sage

I'm not sure if we have access to how Interactions are created by VA conversations, but it's irrelevant to the second question...

You can update the interaction record via a normal GlideRecord query by getting vaVars._interaction_record_sysid in a script, such as this:

var interaction = new GlideRecord('interaction');
interaction.get(vaVars._interaction_record_sysid);
interaction.short_description = vaInputs.short_description;
interaction.any_other_field = any_other_value;
interaction.update();

 I have this in a topic block myself and would recommend you consider that design as well for reusability.

View solution in original post

5 REPLIES 5

The answer depends on the requirement. If you want these fields with data on every single chat, I would take what Chris suggested and work with that. It looks like a lot of custom fields in your interaction. We use Opened for field to know who the user is. We keep things out of the box as much as possible so we are not negatively impacted by ServiceNow changes.