Help with rasa context - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Help with rasa context

post by lupasten on Aug 26, 2020

Hi everyone, i have a problem, i want to construct a bot with context, but i don’t find any idea or tutorial to do that on rasa, the thing i want to do somthing like this.

Bot: hi.

Person: hello, How many Vacation days do i have?

Bot: You have 2 days of vacations aviables

Person: and how can i request them? // person don’t mention the vacation days

Bot: You must write an email to “xxxxxxxxxxxxxxx” and manage them through the HR portal

if i only use simple bot, if the person says: “and how can i request them?” The bot will find the intent of that question, but doesn’t understand that the context of that questión is “vacation days” and the answer of the bot should be “fallback”.

I hope you could help me.

Greetings

post by niveK on Aug 26, 2020

I’d recommend using slots. You can train the bot to find entities like “Vacation days”, but since the entities won’t really influence dialogue flow unless it’s featurized for the bot to learn. I’d recommend seeing these stories from the docs where slots are used so you have an idea of the sorts of things you can do with slots.

post by lupasten on Sep 7, 2020

Hey, i got a question, for this funcionality i need to use Momoization Pipeline? Or only using slots i can do what i want?

post by niveK on Sep 7, 2020

The memoization policy would definitely help, but I don’t think it’s strictly necessary. All the memoization policy does it memorize your stories so it can predict intended behavior from stories much more clearly.

Related topics

Topic Replies Views Activity
Is it possible to get an answer based on implicit context? 4 408 Sep 2020
Contextual Chatbot 3 203 Apr 2024
Contextual intent 3 599 Mar 2020
Answers based on the context (through slots and forms) 6 540 Sep 2020
Bot forgetting Context 1 239 Apr 2021