Skip to content

Commit 10c3eba

Browse files
porti20ancalita
andauthored
doc: Clarify prioritisation of used slot asking option in forms (#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 <27920906+ancalita@users.noreply.github.com> * fix button example highlight line in docs/docs/testing-your-assistant.mdx Co-authored-by: Anca Lita <27920906+ancalita@users.noreply.github.com> * Update forms.mdx Clarify prioritisation of used slot asking option in forms. * Create 11801.doc.md Co-authored-by: Anca Lita <27920906+ancalita@users.noreply.github.com>
1 parent 0138b8d commit 10c3eba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

changelog/11801.doc.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify prioritisation of used slot asking option in forms in documentation.

docs/docs/forms.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,11 @@ class AskForSlotAction(Action):
491491
dispatcher.utter_message(text="What cuisine?")
492492
return []
493493
```
494+
495+
If there is more than one asking option for the slot, Rasa prioritizes in the following order:
496+
497+
1. `action_ask_<form_name>_<slot_name>`
498+
2. `utter_ask_<form_name>_<slot_name>`
499+
3. `action_ask_<slot_name>`
500+
4. `utter_ask_<slot_name>`
501+

0 commit comments

Comments
 (0)