Need help with Conditional Intent

Hi

Need help with conditional Intent

Looking for a way to write story or action , to handle usecase where User Intent is dependent on previous actions result

Suppose, user checks for food, and bot finds wheather as sunny and bot ask if user wants drinks . And if bot finds wheather as cold and bot ask if user wants soup.

If such case, how to write a story , where user intent is to affirm to one of the conditional response from bot.

Store this information in slots, and write stories based on that. You can check in a custom action whether the weather is cold, and then the bot should recommend soup

Use slot as categorical type. Check http://rasa.com/docs/core/slots/#slots-set-by-actions. Where you can replace premium as let’s sunny weather and basic as cold weather.

In custom action you can check current weather using let’s say weather API and respond accordingly.

@akelad…we can do a custom action if the weather is cold or hot to do another action based on the slot value…but what if I want to do a formaction based on slot value…if I put as action what about the active loop ??..can anyone help here