How I use different forms ?
How I can Jump over to another form while being in first form ?
example:
User :I want to buy a ticket
Bot: May I know the data ?
User: I have changed my mind. I want to order a pizza.
Both: My I know the address.
I cannot do this. I facing these error.
Circuit breaker tripped. Stopped predicting more actions for sender 'Visitor-40c869ed-9f09-4db0-970f-fe7a4ac3c851'
My story:
## story 1
* ticket
- ticket_form
- form{"name": "ticket_form"}
- form{"name": null}
## story 2
* Order
- order_form
- form{"name": "order_form"}
- form{"name": null}
class Order(Action):
@staticmethod
def required_slots(tracker):
return ['name', 'item', ...]
class BookTciket(Action):
@staticmethod
def required_slots(tracker):
return ['name', 'time', ...]
And How can I share a slot between the forms.
@juste @akelad @EPedrotti @MetcalfeTom
akelad
(Akela Drissner)
March 3, 2019, 2:59pm
2
You would have to write a story to handle this, it would look something like this:
* ticket
- ticket_form
- form{"name": "ticket_form"}
* Order
- order_form
- form{"name": "order_form"}
- form{"name": null}
- form{"name": null}
Alternatively, you could have the form deactivate itself if it recognises a certain intent. Please take a look at our docs on forms: Slot Filling
it does not work, I tried. it can only proceed to the second form only. and forget the first form flow.
I can jump from ticket form to order form, it must continue to the firs form when the second form is completed.
like.
ticket
order
ticket
* ticket
- ticket_form
- form{"name": "ticket_form"}
* Order
- order_form
- form{"name": "order_form"}
- ticket_form
- form{"name": "ticket_form"}
- form{"name": null}
- form{"name": null}
- form{"name": null}
Problem solved
* ticket
- ticket_form
- form{"name": "ticket_form"}
* Order
- utter_Before
- order_form
- form{"name":"order_form"}
- utter_After
- ticket_form
- form{"name": "ticket_form"}
- form{"name": null}
- form{"name": null}
- form{"name": null}
1 Like
hossa95
(Hossa95)
April 8, 2019, 3:05pm
5
Hi aziz … can you help me with my problem here Switch between two intents with two forms without losing entities , it’s quite the same
Derguene
(Derguene Mbaye)
August 11, 2020, 11:29am
6
Hi @azizullah2017 ! Did you also have to make modifications in the actions file in your forms? I also have the same problem and tried your solutions with that of @hossa95 (Hi Hossa) but it still persists. Thank you in advance for your help !