Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flows and domain for testing call step. #16

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions data/flows/request_statement.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions data/flows/update_account_email_address.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions domain/request_statement.yml
Original file line number Diff line number Diff line change
@@ -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}."
14 changes: 14 additions & 0 deletions domain/update_account_email_address.yml
Original file line number Diff line number Diff line change
@@ -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."
4 changes: 2 additions & 2 deletions endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ action_endpoint:
# password: password
# queue: queue
#
nlg:
type: rasa_plus.ml.ContextualResponseRephraser
#nlg:
# type: rephrase
Loading