From 4ecfbcd7e37cb24ccd15a1f4b93d7a9925af7757 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 16 Sep 2024 16:18:12 +0100 Subject: [PATCH] ENG-1293: properly add `pattern_human_handoff` to default `pattern_clarification` --- data/flows/patterns.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/data/flows/patterns.yml b/data/flows/patterns.yml index 7b7ec5c..4ed6009 100644 --- a/data/flows/patterns.yml +++ b/data/flows/patterns.yml @@ -62,20 +62,12 @@ flows: - if: context.names contains "add a contact" then: - link: add_contact - - else: clarify_options - - id: clarify_options - action: utter_clarification_options_rasa - - pattern_clarification_with_human_handoff: - description: Conversation repair flow for handling ambiguous requests that could match multiple flows, with handoff to human assistant - name: pattern clarification with human handoff - steps: - - action: action_clarify_flows - - action: action_increase_clarification_count - next: - - if: slots.clarification_count > 2 - then: - - link: pattern_human_handoff - - else: clarify_options + - else: + - action: action_increase_clarification_count + next: + - if: slots.clarification_count > 2 + then: + - link: pattern_human_handoff + - else: clarify_options - id: clarify_options action: utter_clarification_options_rasa