Go back to [[Main Chatbot Page]], the [[Main AI Page]], or the [[Master of Philosophy - Main Page]]
Also see the [[Feminist Chatbot Main Page]] or the [[The Golem Project Overview]]
^^ Problem: A human would have known the user was referring to the Toronto store, not generically to all stores.
$context_variables store values about the user interaction and stay available throughtout the entire conversation, so we can refer to them at any time.
If an entity pops up in the user input voluntarily, we can save that entiry into a context variable for later use. This is optional.
We can make the slot required by adding a question to the slot and changing the slot type from ‘optional’ to ‘required’
This ensures that if an entitiy is required for the bot’s functionality to progress, it is available.
Using multiple slots per entity/intent is great for collecting user information. Take, for example, the back-end/front-end situation for a restaurant booking below.
These values can then be stored through the use of a back-end API and piped into a database or JSON file etc.
Rendering context...