I’m trying to do something like the faq pattern from the docs, but inserting forms between the initial retrieval intent and its response. Something like this:
- rule: form faq start steps: - intent: form_faq - action: my_form - active_loop: my_form - rule: resume after form condition: - active_loop: my_form steps: - action: my_form - active_loop: null # eventualy we could call custom actions here - action: utter_form_faq
The idea is that this pattern would allow me to handle a broad range of questions that require similar information without having to declare essentially the same rule or story over and over.
The example above reaches the final utter_form_faq action, but fails to match the response with the intent that was presented initially.
The pattern described in the docs puts the response inmediately after the intent. How does this work? How does the response selector selects the response when utter_form_faq is called? I thought it sorta saved the last intent on every separate retrieval intent space, and just used that to map an appropiate response.
Is what I want to do currently possible? It’d be so cool if I could, I can even call the simpler retrieval intent rule pattern inside the above pattern, allowing simple context switching when answering the form, without having to write separate rules for every context switch. This would be easier to scale.