Yes - no entity

Agnieszka Dudziak
Agnieszka Dudziak
3 min read
updated: Jan 10, 2024

Automatically collect and save yes and no responses.

The system Yes - No entity can help your chatbot confirm the user replies, approve purchases, etc. You can then save the user query as an attribute and reuse it later in a chatbot. 

Entity name

Description

Query

Returned data

Yes - No

Matches yes and no synonyms

yes, fine, sure, good, true, right, certainly, no, no way, never, none

yes, no

System entities are supported only in English. If you need to use other languages, create custom entities.
System entities are supported only in English. If you need to use other languages, create custom entities.

How to use the Yes - No entityLink icon

Let’s say you want to ask the user whether they want to continue a conversation with your bot. The system Yes - No entity can help you collect the user’s answer.

  1. Open the chatbot you want to use to connect with users.

  2. Add a Bot response in the place where you want to ask the user whether they need more help.Yes - No entity chatbot

  3. Once you add your question, you can collect the user’s answer. To do so, add the User input block after the Bot response. Let’s name it Answer. chatbot Yes - No entity

  4. Open the User input you added. Select the Keywords section in the User input block and type double curly brackets {{ or click on the curly brackets symbol. Then, click on Save to attribute in the window that appears. chatbot Yes - No entity

  5. Next, select Add custom attribute and set the attribute’s name to user_answer. To save it, click on Add attributechatbot Yes - No entity

  6. Click on the user_answer attribute and select Yes - No from the Parameter validation list. Then, click Done.chatbot Yes - No entity

  7. Add a new Bot response after the User input. Select Quick replies to create different reactions for yes and no answers. 

  8. First, let’s add a response for the yes answer and connect the Close chat button with the corresponding action in the chatbot.chatbot Yes - No entity

  9. To display a message only to the users who provide the yes answer, select Add filter. In the window that appears, select the user_answer attribute. Then, set up the Condition as =equals and Value to yes. This way, your chatbot will show this message only if the user types or selects yes.chatbot Yes - No entity

  10. Apply the filter and save your changes. chatbot Yes - No entity

  11. Next, add a response for a no answer and connect the Close chat and Leave message buttons with the corresponding actions in the chatbot. chatbot Yes - No entity

  12. To display a message only to the users who answered no, select Add filter. 

  13. In the window that appears, select the user_answer attribute. Then, set up the condition as  =equals and the Value to no. This way, your chatbot will show this message only if the user types or selects no.chatbot Yes - No entitychatbot Yes - No entity

  14. Save all of your work. Now, test the chatbot using our Testing tool First, test the yes flow and use different synonyms.chatbot Yes - No entitychatbot Yes - No entity

  15. Finally, you can test the instance where the user types no or its synonyms. chatbot Yes - No entitychatbot Yes - No entity

Read more:

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products