https://discord.gg/botpress logo
Knowledge Agent take in variables
# 🤝help
b
Hey, I would like to know if my knowledge agent can take in variables? I want it to know which variables the user might have picked up so that when the user asks for location (for instance) my bot answers the location of the right place. Is this possible? And if so how do you do it? Do you structure your data in a sort of way?
You can also capture the users location by creating your own variables for example capture card -> store in user.location
and then {{ turn.KnowledgeAgent.answer }} ({{ user.location }})
2 Views