diff --git a/config.yml b/config.yml index c85dc4a..eb59d90 100644 --- a/config.yml +++ b/config.yml @@ -11,8 +11,9 @@ pipeline: top_p: 0.0 policies: -- name: rasa.core.policies.flow_policy.FlowPolicy -- name: rasa_plus.ml.EnterpriseSearchPolicy -- name: rasa_plus.ml.IntentlessPolicy +- name: FlowPolicy +#- name: EnterpriseSearchPolicy +#- name: IntentlessPolicy # - name: RulePolicy +assistant_id: 20240328-104951-patient-taco diff --git a/data/flows/request_statement.yml b/data/flows/request_statement.yml new file mode 100644 index 0000000..531f9e7 --- /dev/null +++ b/data/flows/request_statement.yml @@ -0,0 +1,11 @@ +flows: + request_statement: + description: The user needs to request a statement for a bank account. + name: request_statement + steps: + - collect: requested_account + - call: update_account_email_address + - collect: statement_date + ask_before_filling: true + - action: utter_statement_requested + next: END \ No newline at end of file diff --git a/data/flows/update_account_email_address.yml b/data/flows/update_account_email_address.yml new file mode 100644 index 0000000..7fd9e00 --- /dev/null +++ b/data/flows/update_account_email_address.yml @@ -0,0 +1,9 @@ +flows: + update_account_email_address: + description: The user needs to update their email address for thier account. + name: update account email address + if: False + steps: + - collect: account_email_address + - action: utter_email_address_updated + next: END \ No newline at end of file diff --git a/domain/request_statement.yml b/domain/request_statement.yml new file mode 100644 index 0000000..55a62d5 --- /dev/null +++ b/domain/request_statement.yml @@ -0,0 +1,19 @@ +version: "3.1" + +slots: + requested_account: + type: text + mappings: + - type: custom + statement_date: + type: text + mappings: + - type: custom + +responses: + utter_ask_requested_account: + - text: "For which account would you like to request a statement?" + utter_ask_statement_date: + - text: "For which date would you like to request the statement?" + utter_statement_requested: + - text: "I have requested the statement for account {requested_account} for the date {statement_date}." diff --git a/domain/update_account_email_address.yml b/domain/update_account_email_address.yml new file mode 100644 index 0000000..b06427f --- /dev/null +++ b/domain/update_account_email_address.yml @@ -0,0 +1,14 @@ +version: "3.1" + +slots: + account_email_address: + type: text + + mappings: + - type: custom + +responses: + utter_ask_account_email_address: + - text: "What is your new email address?" + utter_email_address_updated: + - text: "Your email address has been updated." \ No newline at end of file diff --git a/endpoints.yml b/endpoints.yml index 4a6cf98..7731886 100644 --- a/endpoints.yml +++ b/endpoints.yml @@ -55,5 +55,5 @@ action_endpoint: # password: password # queue: queue # -nlg: - type: rasa_plus.ml.ContextualResponseRephraser +#nlg: +# type: rephrase