How To Respond To Entities - Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 04:35 AM - edited 09-21-2023 04:37 AM
Hi Community I am practicing NLU with ServiceNow virtual agent precisely Named Entity Recognition for the first time. I am created a Topic that tells the users "How are you feeling?" (text input) and I have created the intents (#Mood) and entity (@happy and @unhappy). I do not know how to make bot respond to the entities value. What I mean by say if they say "I am sad today" I want the VA to say something "I am sorry to hear..." and if they say "I am happy" then bot should respond by saying "That is great to hear...". The NLU/NER model picks up correctly works and pick its accurately but I do know how to respond back when the input is text only as apposed to static options. I would appreciate anyone for any information they give me.
Thanks,
Murad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 10:53 PM
Dear MuradServiceNow,
@MuradServiceNow , hope you're doing great!
To make the bot respond to the entities value, you can use the following steps:
- In the Topic, add a Response for each entity value.
- In the Response, use the {{entity_name}} variable to reference the entity value.
EXAMPLE:
Let's make the bot respond to the @happy entity value, you would add the following Response to the Topic:
Response:
Text: I am happy to hear that you are feeling {{@happy}} today!
To make the bot respond to the @unhappy entity value, you would add the following Response to the Topic:
Response:
Text: I am sorry to hear that you are feeling {{@unhappy}} today. Is there anything I can do to help?
When the user inputs text into the Topic, the Virtual Agent will use the NLU/NER model to extract the entity values. The Virtual Agent will then respond to the user using the Response that is associated with the extracted entity value.
EXAMPLE:
Virtual Agent would respond to the user input "I am sad today":
User: I am sad today.
Virtual Agent: I am sorry to hear that you are feeling sad today. Is there anything I can do to help?
EXAMPLE:
Virtual Agent would respond to the user input "I am happy":
User: I am happy.
Virtual Agent: I am happy to hear that you are feeling happy today!
Kindly, please mark my solution as Helpful/Correct, if applicable. If I could help you with your Query then, please hit the Thumb Icon and mark as Correct!!
Thanks & Regards,
Revanth. K
Product Test Automation Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 10:57 AM
@Revanth Karra It did not work my although my entity is name as "@Happy" and "@Unhappy" and made the changes from yours it shoots out the text message as shown.
Also, since mood can be positive or negative how would one configure in the topic don't we need use decision and condition mood = {{@Happy}} for Happy and then bot Text response as above and similar for when Mood== {{@Unhappy}}.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 03:04 AM
Did you ever get this to work? How do we get the value from @Happy