Pick one sentence out of a rich Text KB
# 🤝help
d
Hi, I want to make a language pratice chatbot. In the richt text I'm going to set a couple of sentences with grammar errors. Now I want the chatbot to pick a next sentence out of the of the KB in each new run. Does anybody know how I can make this work? Thank you!
b
Hello 🤓 , I recommend using tables for this. Place your sentences in the table, activate queries in each iteration to search for a sentences. You have more control using tables. Let me see if I can make you an example.
@dazzling-salesclerk-18012 I made a practical example with a little more control that I think will work for you. First create a table to store my sentences
this is the execute card in the second node 👆🏻
I'm going to show you working on the emulator. The third node only has a continue button to go back to the node and get another statement without repeating it.
Note that each response is a statement saved in my table and that each iteration with the node contains a function that outputs a statement without repeating it.
Of course, this is an example that I think you can start with, depending on the number of sentences you handle, we can do another way, however the use of a table is indicated for you, since you can not only save the sentences but also relevant information about each one, such as its level of difficulty, size, etc. So you can filter your statements more interestingly (as I did in the first node, but it is without filters in the example)
I hope I have helped you, if you have any questions let me know we are here to help you
d
Thank you so much! I will try it.
16 Views