lmb
(Leena Bora)
February 27, 2021, 11:41am
1
Hi,
I have few intents.
But what I want is, at the start of conversation not matter what is being asked I want to always give welcome message.
I tried few things to achieve this but didn’t work.
rule: rule-3
conversation_start: true
steps:
intent: product_price
action: utter_greet
For example in my story if at any other places for same intent I want different action. But then it says contradicting rule and story.
Please note - user can start conversation literally by anything and I always want to greet with welcome message.
How do I do this?
1 Like
snek
(Shorouq)
March 1, 2021, 9:59am
2
Have you considered greeting the user before they even start talking to the bot?
lmb
(Leena Bora)
March 1, 2021, 10:46am
3
I have resolved this using slots.
For every intent I have these story:
story: -story-1
steps:
slot_was_set:
intent: greet
action: action_greet
story: -story-2
steps:
slot_was_set:
intent: goodbye
action: action_greet
story: -story-3
steps:
slot_was_set:
intent: product_price
action: action_greet
Now every real story always starts with this:
snek
(Shorouq)
March 1, 2021, 10:49am
4
Cool, I think that’s a good way to do it when you have a small number of intents. I think rasa has something similar in rules… for rules that only apply at the beginning of conversations, you can use conversation_start: true