Skip to content

Commit

Permalink
doc: Clarify prioritisation of used slot asking option in forms (Rasa…
Browse files Browse the repository at this point in the history
…HQ#11801)

* add testing story example for button with payload

* Create 11766.doc.md

* Fix spelling in changelog/11766.doc.md

Co-authored-by: Anca Lita <[email protected]>

* fix button example highlight line in docs/docs/testing-your-assistant.mdx

Co-authored-by: Anca Lita <[email protected]>

* Update forms.mdx

Clarify prioritisation of used slot asking option in forms.

* Create 11801.doc.md

Co-authored-by: Anca Lita <[email protected]>
  • Loading branch information
porti20 and ancalita authored Dec 7, 2022
1 parent 0138b8d commit 10c3eba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/11801.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify prioritisation of used slot asking option in forms in documentation.
8 changes: 8 additions & 0 deletions docs/docs/forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,11 @@ class AskForSlotAction(Action):
dispatcher.utter_message(text="What cuisine?")
return []
```

If there is more than one asking option for the slot, Rasa prioritizes in the following order:

1. `action_ask_<form_name>_<slot_name>`
2. `utter_ask_<form_name>_<slot_name>`
3. `action_ask_<slot_name>`
4. `utter_ask_<slot_name>`

0 comments on commit 10c3eba

Please sign in to comment.