How To Set Prompt value To A Catalog Item's Variable Value in Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
I want That Keyword "I need Monitor " to be populated before we submit it, If Anyone in the Community Understand it Kindly help me doing that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago - last edited 7 hours ago
hi @balochfarha,
Navigate to the Virtual Agent Designer and create or edit a topic that corresponds to the catalog item you want to trigger....Within the topic, define the conversation flow that collects the necessary information from the user. This can include asking questions or setting predefined responses....Use the (Set Variable) action within the conversation flow to assign values to the catalog item variables. For instance, if you have a variable named short_description, you can set its value to "I need Monitor" as follows:
var userResponse = "I need Monitor";
current.variables.short_description = userResponse;
Ensure that the variable name (short_description in this case) matches the actual variable name in your catalog item....After setting the necessary variables, use the "Request Catalog Item" action to submit the catalog item request with the pre populated values.
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/