Help with Virtual agent

Virendra Dwived
Tera Expert

Hi Everyone,

 

I am working on Virtual Agent. My requirement: I have to Glide Record through custom table and return all the records which match the query condition.

Query Condition: 'Name', 'CONATINS', vaInputs.user_entered_text.

 

To Achieve this, I am using Script Action Utility and Card Bot Response (card type = small image with text). In script Action Utility I am doing GlideRecordSecure on custom table and getting sys_id of all the records and store in an array.

Then in card bot response, I take sys_id from above script action and do GlideRecord on custom table and return fields like Name and URL (URL of image).

There is only one problem which I am facing. That is, if I am getting three sys_id from script action but, I am getting card bot response for only one sys_id. I want to get card bot response for all the sys_id. If 5 sys_id then 5 card bot response and if 10 sys_id then 10 card bot response. Please help.

 

I have attached screenshots of my scripts in below post.

 

cc: @Ankur Bawiskar @Pavankumar_1 @kamlesh kjmar 

 

Thanks, in advance.

1 REPLY 1

Virendra Dwived
Tera Expert

Hi Everyone, 

 

Please go through my scripting.

 

1. Script Action

script action.PNG

 

2. Card Bot Response.

Card type: Small image with text.

a. Title 

title.PNG

b. Image URL link

image url.PNG

Thanks, in advance.