how to restrict user to Input in VA chatbot

anusha reddy v1
Tera Contributor

hi Team,

current Functionality:
When user opens chatbot, it will connect to Virtual agent and shows greeting messages.
We have created a promoted topic "chat With Us" when user clicks on Chat with us it will connect to Live agent.
But issue is even though Chat with us button showing to user, End users are giving input in type message.

Would like to restrict user to giving input until it's connect to live agent. Could you please help me on this.

anushareddyv1_0-1743505250570.png

 

4 REPLIES 4

Medi C
Giga Sage
Giga Sage

Hello @anusha reddy v1,

 

Please try below steps to achieve your requirement:

 

Go to your Greetings topic and duplicate it. 

MediC_0-1743506210611.png

Adjust the duplicated topic as follow and publish it:

MediC_7-1743507369195.png

 

 

In the Topics node, you can specify the topics you want to be listed with your greetings.

MediC_9-1743507718779.png

 

In each of your decision tree, Adjust the condition as per the user selection:

Example:

MediC_8-1743507472087.png

On each script node of the topics, provide the following script: (Topic SysIds can be taken from sys_cs_topic)

(function execute() {
vaSystem.switchTopicById("676733dc93210250b2349bac24891869"); //Adjust the sys id for each topic selection
})()

 

Navigate to Conversational Interfaces > Settings

MediC_2-1743506436575.png

 

Click on Virtual Agent and View All as highlighted below

MediC_3-1743506499849.png

 

Click on your Greeting topic

MediC_4-1743506552549.png

 

Select the newly created topic

MediC_5-1743506909883.png

 

Results:

MediC_6-1743507270832.png

 

I hope this help!

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

hi, 

Thank you for the reply. But i don't have choices, i only have one option "chat with us". 
Is there any other alternative please?


Ankur Bawiskar
Tera Patron
Tera Patron

@anusha reddy v1 

You can use the approach shared by @Medi C 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Medi C
Giga Sage
Giga Sage

Hi @anusha reddy v1, you can use that as one only choice.
Or if you want the topic to start immediately  you can adjust the topic "chat with us" to include Greeting messages at the beginning and set up that topic in the Greeting topic.


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.