Trigger form with intent following an action

Hi. This is basically what I want to do.

Path1

  • Bot: Hi, would you like to fill out this form?
  • User: Yes
  • Bot: Thanks. Do you use X? form action triggered

Path2

  • Bot: Hi, would you like to fill out this form?
  • User: no
  • Bot: Sure, thanks. form action not triggered
  • User: Yes
  • Bot: Okay. Bye form not action triggered despite affirmation yes

From the docs, I understand that form action can be triggered base on intent. It wouldn’t work if I trigger the form_action on just on an affirmation- because after form action is complete I wouldn’t want an affirmation to trigger a form action. Ideally, I’d want to trigger the form action if an affirmative intent is got after an action ("Hi, would you like to fill out this form? ").

Any suggestions on how this can be done?

[Edited: Corrected the conversation to match my case]

You can write both paths in your stories and use the memoization policy.

1 Like