Unexpected Text Appears in the Virtual Agent

Soki Ando
Tera Contributor

In the virtual agent's chat flow, text that I haven't configured appears. Do you know how to exclude this?
It’s the text in the attached image: "We have selectedDateTime as ______, is this correct?"

 

SokiAndo_0-1727240171032.png

 

1 ACCEPTED SOLUTION

Ravi Gaurav
Giga Sage
Giga Sage

Hi @Soki Ando 

The issue you're encountering seems related to an improperly configured variable in the Virtual Agent conversation. The placeholder text "selectedDateTime" in the message might indicate that the variable selectedDateTime hasn't been properly populated or formatted in the script for the chat flow.

Steps to resolve the issue:

  1. Check the Virtual Agent Topic: Look for the node or step where the confirmation message is generated.

    • Ensure that the variable selectedDateTime is being set correctly in the conversation logic.
  2. Fix the Text Display:

    • Make sure the variable is correctly referenced in the message.
    • Example: Instead of We have selectedDateTime as ______, it should be something like We have selected ${selectedDateTime} as ______, is this correct?
  3. Debug the Variable:

    • Add a debugging step to verify that the selectedDateTime variable is being set at the right point in the conversation.

If you share more details about how this variable is configured, I can help pinpoint the issue more effectively!

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

2 REPLIES 2

Ravi Gaurav
Giga Sage
Giga Sage

Hi @Soki Ando 

The issue you're encountering seems related to an improperly configured variable in the Virtual Agent conversation. The placeholder text "selectedDateTime" in the message might indicate that the variable selectedDateTime hasn't been properly populated or formatted in the script for the chat flow.

Steps to resolve the issue:

  1. Check the Virtual Agent Topic: Look for the node or step where the confirmation message is generated.

    • Ensure that the variable selectedDateTime is being set correctly in the conversation logic.
  2. Fix the Text Display:

    • Make sure the variable is correctly referenced in the message.
    • Example: Instead of We have selectedDateTime as ______, it should be something like We have selected ${selectedDateTime} as ______, is this correct?
  3. Debug the Variable:

    • Add a debugging step to verify that the selectedDateTime variable is being set at the right point in the conversation.

If you share more details about how this variable is configured, I can help pinpoint the issue more effectively!

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Thank you for your reply.
The configuration is as shown in the attachment.
The previously mentioned message appears just before the section outlined in red.
Is there anything wrong with the settings?
I haven't configured anything beyond the "Advanced" section.

 

SokiAndo_0-1727243282201.png