Hello, i am using this version of rasa :
Rasa Version : 2.6.0
Minimum Compatible Version: 2.6.0
Rasa SDK Version : 2.6.0
Rasa X Version : 0.39.3
Python Version : 3.7.0
and i want to do the following with the helpdesk assistant bot :
After answering users query i want to display “Do you want me to create ticket for you ?”
If user says “Yes” then i want to call intent for ticket creration or activate the ticket creation’s form.And if users says “no” then i want to end the conversation.
Is it possible? Could you please provide me with an example?
You will store the answer to “Do you want me to create ticket for you?” as a boolean slot. Then, write stories where if the slot is true, then activate the ticket creation form using a rule.
User : Hi
Bot : hello how can I help you
User : I want to reset my password
Bot : <give some tips about reseting password and if it didn’t work ask if he create a ticket
User : yes
Then the Bot activate the form for ticket creation
ask for a more specific problem description etc
As @nik202 mentioned, you want to store that information in a slot. You can build the pattern whereby:
User: I need help with <topic>
Bot: <topic response from db or from story>
Bot: Did that help? Yes/No
User: No
Bot: Would you like to create a ticket? Yes (/create_ticket) / No (/deny)
User: Yes (/create_ticket)
Here I’d recommend creating a rule for the form and adding some stories for the negative case (the user doesn’t want to create a ticket). I wouldn’t resort to using a slot for this unless you’d prefer to do so, but you’re welcome to create the branching logic in that way as well. You can make any button payload the trigger for the form itself.
The rule would look something like (this is just to give you an idea):
- rule: Create a ticket
steps:
- intent: create_ticket
- action: create_ticket_form # this is a form you'd define in your domain
- active_loop: create_ticket_form
The scenario i want is like @nik202 said .
I have a form, a story, a rule and a action for everything related to the intent ticket creation.
I have also the same for the intent reseting password (for example).
So after the user ask for reseting password, the bot respond with some tips and ask something like " Did that help you or should I create the query ticket for you?" if the user say no its okay, else if he say yes we trigger the fform for ticket creation .