- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 02:58 PM
Hello Everyone,
When using the Record Producer Flow Action in Virtual Agent, how do you structure the text in "Catalog Item Inputs (string)" field?
I've tried expressing the data via JSON format, both typed and using the script option, but have not been successful in creating a record with data passed from VA.
Solved! Go to Solution.
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 03:02 PM
We adjusted our workflow a little bit to accomplish our goal.
Our intended design was to create an Incident when someone reports a broken printer through our virtual agent. Instead of using the record producer action, we used the create record action instead:
Fields (template_value) requires a string formatted as an encoded query string. Here is the script to generate the string to pass the variables to the action:
(function execute() {
var incTemplate = '';
incTemplate += 'caller_id=';
incTemplate += vaInputs.user.getValue();
incTemplate += '^u_primary_contact=';
incTemplate += vaInputs.contact_info;
incTemplate += '^contact_type=virtual_agent';
incTemplate += '^category=hardware';
incTemplate += '^u_affected_location=';
incTemplate += vaInputs.specific_location;
incTemplate += '^short_description=';
incTemplate += vaVars.short_desc;
incTemplate += '^description=';
incTemplate += vaVars.full_desc;
incTemplate += '^EQ';
return incTemplate;
})()
(Note for anyone not familiar with scripting in VA: vaInputs object includes any input values from the user in the conversation, and vaVars object contain script variables).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2022 01:18 AM
Hi, I'm having the same issue - did you manage to find an answer on how to format the inputs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2022 07:38 AM
No, still not sure what format is needed, and hoping for an answer. We ended up creating the record directly using the Record Action utility as a work around.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2022 11:45 AM
Did you try using the Request Catalog Item Topic Block instead of the Action component and Core spoke?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2022 09:22 AM
Yes. However, VA will display the description of the form, ask to proceed, but regardless of the answer, the conversation ends.
I looked within the Request Catalog Item Topic Block, and all I can tell is that the JSON is failing to get any variables from the catalog item. The conversation output from testing is:
[PREVIEW ONLY] The topic return values are: {"record_id":"-1","record_table":"","variables":"{}"}
This was a dead-end for us, which is why we were exploring alternatives. However, happy to try any troubleshooting to make this block work.