Using Datastore in Botsify
Datastore are stored values that help the user in storing values instead of manually entering every time!
For the sake of this important lesson, we are considering the use case of ordering furniture for our home. Let me start from the very basics. Datastore are nouns, in the user query.
👉Go to chatbot AI from left toolbar and click on "Datastore"
Now click on the center button which says “ Create a datastore”
We will create a query like: "I want 2 beds for my room".
In this phrase, "2" is a datastore that represents the number, and "beds" is another datastore that gives us information about a type of furniture.
Much other application considers it as an intent, although we have merged it with datastore for simplicity.
So let's see how can you use datastore in Botsify. I will create a datastore for furniture, and add some values. Like the bed, desk, stool.
Now I will create a story and use this datastore in my user's query.
Now see the magic. If my user asks: “I need 2 beds,” my chatbot understands that I am talking about beds.
If my user talks about desk my bot knows that too.
With just one simple story, and one datastore we have created an intelligent enough chatbot for our furniture shop.
We know about our customer's intention that somehow he needs beds.
But we still don't know the number. Let's add one more predefined datastore which is already build-up, to our story, such as the number, and see the magic.
This datastore is picked up intelligently from the user's query.
Now if my user says: “I want 2 beds for my room,” my chatbot understands.
Even if someone says: “I want two beds”. My chatbot understands it just perfectly.
This way datastore can solve a lot of your problems related to cases where you are asking people about their inputs or anything, or collecting some data about their order.
Such as this furniture shop.