How To populate the Catalogs in virtual agent servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 04:32 AM
Hai All,
I have a requirement on the virtual agent,
When some XXX person open the virtual agent chat he should only visible the Catalogs which was regularly created catalogs, I have created the some flow " frequently used catalogs" When they clock on that they should visble the catalog items of "top 5".
Please help on this.
Thank You.
Seklhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 07:53 AM
Create a variable to store the user's name or any other identifier that can be used to identify the XXX person.
Create a catalog item called "Frequently Used Catalogs" and add it to the service catalog.
Create a flow for the "Frequently Used Catalogs" item that checks the user's name or identifier stored in the variable and retrieves the top 5 catalogs for that user.
Display the top 5 catalogs as options for the user to choose from.
Once the user selects a catalog, display the catalog items associated with that catalog.
To implement this in ServiceNow, you can use Flow Designer and Service Catalog. Here are the detailed steps:
Create a variable in Flow Designer that will store the user's name or identifier. You can use the "User Input" or "Variable" action for this.
Create a new catalog item in the Service Catalog and name it "Frequently Used Catalogs".
In Flow Designer, create a new flow for the "Frequently Used Catalogs" item.
In the flow, add a "Check Condition" action that checks if the user's name or identifier matches the XXX person.
If the condition is true, add a "Query Records" action to retrieve the top 5 catalogs for that user. You can use the "Catalog - Category" table for this query.
Use a "For Each" loop to iterate through the top 5 catalogs and add them as options for the user to choose from. You can use the "User Input" action with the "Choice" type for this.
Once the user selects a catalog, use another "Query Records" action to retrieve the catalog items associated with that catalog. You can use the "Catalog - Item" table for this query.
Use a "For Each" loop to iterate through the catalog items and display them as options for the user to choose from. You can use the "User Input" action with the "Choice" type for this.
Finally, use the "End" action to terminate the flow.
Once you have created the flow, you can add it to the "Frequently Used Catalogs" item in the Service Catalog. When the XXX person opens the virtual agent and selects the "Frequently Used Catalogs" item, they will see the top 5 catalogs associated with their name or identifier. When they select a catalog, they will see the catalog items associated with that catalog.
Please mark my reply as Helpful and/or Accept Solution, if applicable. Thanks!