Request Catalog Item not working in Virtual Agent

sriram7
Tera Contributor

Hi Team,

 

Currently I am working on Virtual agent. when I am searching in Virtual Agent (Request Catalog Item) it is not working.

It is displaying below way 

sriram7_0-1674043342941.png

 

This is OOTB one only, I have not made any changes, Still it is not working.

@Mark Roethof @Pranesh072 

6 REPLIES 6

Hi Gaurav,

 

Your reply would help me alot.

I have a similar issue, I am trying to use 'Search catalog Item' and 'Request catalog Item' OOB topic blocks in my custom flow. But search catalog item block is not at all giving the ouput, it is always throwing null value, can you please let me know if I have to setup anything before using those OOB topic blocks.

 

My flow is Fetching input from user as a text(name of catalog item)--> passing this to search catalog item -->Passing the output of this topic block --> Request catalog item topic block as an inital setup. But I am failing at the 1st step itself, search is not giving any output always it is throwing null.

 

Thanks in advance!

I'm similarly working on deploying Virtual Agent in my instance, and ran into somewhat similar issues so hopefully my experience helps. If you're seeing "Selected x", this is generated from the Request a Catalog Item topic block, so it's getting to that point. 

  • Test Logs -To start, I'd recommend you open the Test window for the topic, run a test, then view the Variables tab to see if they populate as expected and identify where the process is breaking down, then check the Logs section for more details. 
  • User Input - Do you have a Text Input added before running the Search? You'll need a node before search that asks the user to input their search query. Based on Sriram's screenshot, I don't see it prompting the user first to ask for the desired search term. I've tied mine to an NLU entity for catalog item to improve that search, TBD on if that's an effective approach.
  • Check Variables - Check the variables handling output from Search Catalog Item and Request Catalog Item. The output of search should be something like "catalog_item_id", which can be dropped into the input mapping of the Request Catalog Item topic block. 
  • Duplicate the OOB topic blocks - We got different results when first Duplicating an OOB topic block like Search Cat Item and Request Cat Item, and using the new copy of the topic block in the topic instead. If you haven't tried making your own custom copy (without modifying it) to use in the topic, give that a try.
  • Check JSON of duplicates - We ran into a specific issue where duplicating the Request Cat Item topic block didn't exactly copy it, causing issues with the node "Change Response" - we resolved that by duplicating the topic again, this time copying the Graph field of the sys_cb_topic (which should be a JSON) into the new topic to make sure they exactly match. Seems buggy, we're planning to report this issue to SN. It's worth checking to make sure your Graph field (JSON) of the copied topic block matches the original. 

 

Let me know if that helps - if not, please add more details about your custom topic and what you found in the test window results. I may be newer to VA development, but we might be able to solve some of these problems together!