rasa-pro 3.13.1a5__py3-none-any.whl → 3.13.1a7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rasa-pro might be problematic. Click here for more details.

Files changed (204) hide show
  1. rasa/cli/project_templates/finance/actions/action_add_payee.py +47 -0
  2. rasa/cli/project_templates/finance/actions/action_ask_account.py +50 -0
  3. rasa/cli/project_templates/finance/actions/action_ask_account_from.py +50 -0
  4. rasa/cli/project_templates/finance/actions/action_ask_card.py +47 -0
  5. rasa/cli/project_templates/finance/actions/action_check_balance.py +40 -0
  6. rasa/cli/project_templates/finance/actions/action_check_card_existence.py +35 -0
  7. rasa/cli/project_templates/finance/actions/action_check_payee_existence.py +40 -0
  8. rasa/cli/project_templates/finance/actions/action_check_sufficient_funds.py +41 -0
  9. rasa/cli/project_templates/finance/actions/action_list_payees.py +45 -0
  10. rasa/cli/project_templates/finance/actions/action_process_immediate_payment.py +18 -0
  11. rasa/cli/project_templates/finance/actions/action_remove_payee.py +49 -0
  12. rasa/cli/project_templates/finance/actions/action_schedule_payment.py +19 -0
  13. rasa/cli/project_templates/finance/actions/action_session_start.py +69 -0
  14. rasa/cli/project_templates/finance/actions/action_update_card_status.py +45 -0
  15. rasa/cli/project_templates/finance/actions/action_validate_payment_date.py +36 -0
  16. rasa/cli/project_templates/finance/actions/database.py +276 -0
  17. rasa/cli/project_templates/finance/config.yml +16 -1
  18. rasa/cli/project_templates/finance/csvs/accounts.csv +8 -0
  19. rasa/cli/project_templates/finance/csvs/advisors.csv +7 -0
  20. rasa/cli/project_templates/finance/csvs/appointments.csv +211 -0
  21. rasa/cli/project_templates/finance/csvs/branches.csv +10 -0
  22. rasa/cli/project_templates/finance/csvs/cards.csv +11 -0
  23. rasa/cli/project_templates/finance/csvs/payees.csv +10 -0
  24. rasa/cli/project_templates/finance/csvs/transactions.csv +71 -0
  25. rasa/cli/project_templates/finance/csvs/users.csv +4 -0
  26. rasa/cli/project_templates/finance/data/flows/add_payee.yml +29 -0
  27. rasa/cli/project_templates/finance/data/flows/block_card.yml +66 -0
  28. rasa/cli/project_templates/finance/data/flows/check_balance.yml +9 -0
  29. rasa/cli/project_templates/finance/data/flows/list_payees.yml +5 -0
  30. rasa/cli/project_templates/finance/data/flows/remove_payee.yml +21 -0
  31. rasa/cli/project_templates/finance/data/flows/select_card.yml +12 -0
  32. rasa/cli/project_templates/finance/data/flows/transfer_money.yml +64 -2
  33. rasa/cli/project_templates/finance/data/flows/welcome.yml +14 -0
  34. rasa/cli/project_templates/finance/data/nlu.yml +29 -0
  35. rasa/cli/project_templates/finance/data/patterns/pattern_chitchat.yml +7 -0
  36. rasa/cli/project_templates/finance/data/patterns/pattern_completed.yml +6 -0
  37. rasa/cli/project_templates/finance/data/patterns/pattern_search.yml +5 -0
  38. rasa/cli/project_templates/finance/data/patterns/pattern_session_start.yml +5 -3
  39. rasa/cli/project_templates/finance/data/source/accounts.json +51 -0
  40. rasa/cli/project_templates/finance/data/source/advisors.json +44 -0
  41. rasa/cli/project_templates/finance/data/source/appointments.json +1474 -0
  42. rasa/cli/project_templates/finance/data/source/branches.json +47 -0
  43. rasa/cli/project_templates/finance/data/source/cards.json +72 -0
  44. rasa/cli/project_templates/finance/data/source/payees.json +74 -0
  45. rasa/cli/project_templates/finance/data/source/transactions.json +492 -0
  46. rasa/cli/project_templates/finance/data/source/users.json +29 -0
  47. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/consequences_of_blocking_card.txt +8 -0
  48. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/reasons_to_block_card.txt +8 -0
  49. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/recovering_from_card_fraud.txt +8 -0
  50. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/tips_for_card_security.txt +8 -0
  51. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/what_to_do_if_card_is_lost.txt +8 -0
  52. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/account_balance_security.txt +7 -0
  53. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/common_balance_inquiries.txt +8 -0
  54. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/methods_to_check_balance.txt +8 -0
  55. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/understanding_balance_updates.txt +8 -0
  56. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/what_to_do_if_balance_is_incorrect.txt +8 -0
  57. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/benefits_of_authorised_payees.txt +8 -0
  58. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/common_issues_with_payees.txt +8 -0
  59. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/general_payee_information.txt +8 -0
  60. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/payee_management_tips.txt +8 -0
  61. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/understanding_payee_types.txt +8 -0
  62. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/common_transfer_errors.txt +8 -0
  63. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/fees_for_transfers.txt +8 -0
  64. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/general_transfer_information.txt +8 -0
  65. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/security_tips_for_transfers.txt +8 -0
  66. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/transfer_processing_times.txt +8 -0
  67. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part1.txt +50 -0
  68. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part10.txt +50 -0
  69. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part11.txt +48 -0
  70. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part12.txt +50 -0
  71. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part13.txt +50 -0
  72. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part14.txt +47 -0
  73. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part15.txt +50 -0
  74. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part16.txt +50 -0
  75. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part17.txt +47 -0
  76. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part18.txt +50 -0
  77. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part19.txt +50 -0
  78. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part2.txt +50 -0
  79. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part20.txt +47 -0
  80. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part21.txt +50 -0
  81. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part22.txt +50 -0
  82. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part23.txt +47 -0
  83. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part24.txt +50 -0
  84. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part25.txt +50 -0
  85. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part26.txt +47 -0
  86. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part27.txt +50 -0
  87. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part28.txt +50 -0
  88. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part29.txt +47 -0
  89. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part3.txt +47 -0
  90. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part30.txt +50 -0
  91. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part31.txt +50 -0
  92. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part32.txt +47 -0
  93. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part33.txt +50 -0
  94. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part34.txt +50 -0
  95. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part35.txt +47 -0
  96. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part36.txt +50 -0
  97. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part37.txt +50 -0
  98. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part38.txt +47 -0
  99. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part39.txt +50 -0
  100. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part4.txt +50 -0
  101. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part40.txt +50 -0
  102. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part41.txt +47 -0
  103. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part42.txt +50 -0
  104. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part43.txt +50 -0
  105. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part44.txt +47 -0
  106. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part45.txt +50 -0
  107. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part46.txt +50 -0
  108. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part47.txt +47 -0
  109. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part48.txt +50 -0
  110. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part49.txt +50 -0
  111. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part5.txt +50 -0
  112. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part50.txt +47 -0
  113. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part51.txt +50 -0
  114. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part52.txt +50 -0
  115. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part53.txt +47 -0
  116. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part54.txt +50 -0
  117. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part55.txt +50 -0
  118. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part56.txt +47 -0
  119. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part57.txt +50 -0
  120. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part58.txt +50 -0
  121. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part59.txt +47 -0
  122. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part6.txt +47 -0
  123. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part60.txt +50 -0
  124. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part61.txt +50 -0
  125. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part7.txt +50 -0
  126. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part8.txt +50 -0
  127. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part9.txt +47 -0
  128. rasa/cli/project_templates/finance/domain/add_payee.yml +47 -0
  129. rasa/cli/project_templates/finance/domain/block_card.yml +101 -0
  130. rasa/cli/project_templates/finance/domain/check_balance.yml +9 -0
  131. rasa/cli/project_templates/finance/domain/default_actions.yml +16 -0
  132. rasa/cli/project_templates/finance/domain/default_flows.yml +33 -0
  133. rasa/cli/project_templates/finance/domain/list_payees.yml +4 -0
  134. rasa/cli/project_templates/finance/domain/remove_payee.yml +16 -0
  135. rasa/cli/project_templates/finance/domain/select_card.yml +12 -0
  136. rasa/cli/project_templates/finance/domain/transfer_money.yml +79 -0
  137. rasa/cli/project_templates/finance/endpoints.yml +6 -2
  138. rasa/cli/project_templates/finance/prompts/rephraser_demo_personality_prompt.jinja2 +19 -0
  139. rasa/cli/project_templates/finance/tests/conversation_repair/cancellations.yml +12 -0
  140. rasa/cli/project_templates/finance/tests/conversation_repair/cannot_handle.yml +7 -0
  141. rasa/cli/project_templates/finance/tests/conversation_repair/chitchat.yml +7 -0
  142. rasa/cli/project_templates/finance/tests/conversation_repair/clarification.yml +9 -0
  143. rasa/cli/project_templates/finance/tests/conversation_repair/completion.yml +18 -0
  144. rasa/cli/project_templates/finance/tests/conversation_repair/corrections.yml +17 -0
  145. rasa/cli/project_templates/finance/tests/conversation_repair/digressions.yml +32 -0
  146. rasa/cli/project_templates/finance/tests/conversation_repair/human_handoff.yml +21 -0
  147. rasa/cli/project_templates/finance/tests/conversation_repair/skipping_collect_steps.yml +16 -0
  148. rasa/cli/project_templates/finance/tests/demo_scripts/main.yml +16 -0
  149. rasa/cli/project_templates/finance/tests/happy_paths/balance_verification.yml +15 -0
  150. rasa/cli/project_templates/finance/tests/happy_paths/banking_questions.yml +12 -0
  151. rasa/cli/project_templates/finance/tests/happy_paths/card_blocking.yml +52 -0
  152. rasa/cli/project_templates/finance/tests/happy_paths/money_transfer.yml +136 -0
  153. rasa/cli/project_templates/finance/tests/happy_paths/payee_management.yml +27 -0
  154. rasa/cli/project_templates/finance/tests/happy_paths/user_greeted.yml +5 -0
  155. rasa/cli/project_templates/plain/domain.yml +1 -1
  156. rasa/cli/project_templates/telco/actions/actions_billing.py +196 -0
  157. rasa/cli/project_templates/telco/actions/actions_get_data_from_db.py +42 -0
  158. rasa/cli/project_templates/telco/prompts/command-generator.jinja2 +57 -0
  159. rasa/cli/scaffold.py +1 -1
  160. rasa/core/policies/enterprise_search_policy.py +1 -1
  161. rasa/dialogue_understanding/generator/flow_retrieval.py +10 -9
  162. rasa/version.py +1 -1
  163. {rasa_pro-3.13.1a5.dist-info → rasa_pro-3.13.1a7.dist-info}/METADATA +1 -1
  164. {rasa_pro-3.13.1a5.dist-info → rasa_pro-3.13.1a7.dist-info}/RECORD +201 -51
  165. rasa/cli/project_templates/finance/domain.yml +0 -7
  166. rasa/cli/project_templates/teleco/actions/actions_billing.py +0 -151
  167. rasa/cli/project_templates/teleco/actions/actions_get_data_from_db.py +0 -27
  168. /rasa/cli/project_templates/{teleco → finance}/prompts/command-generator.jinja2 +0 -0
  169. /rasa/cli/project_templates/{teleco → telco}/actions/actions_run_diagnostics.py +0 -0
  170. /rasa/cli/project_templates/{teleco → telco}/actions/actions_session_start.py +0 -0
  171. /rasa/cli/project_templates/{teleco → telco}/config.yml +0 -0
  172. /rasa/cli/project_templates/{teleco → telco}/credentials.yml +0 -0
  173. /rasa/cli/project_templates/{teleco → telco}/csvs/billing.csv +0 -0
  174. /rasa/cli/project_templates/{teleco → telco}/csvs/customers.csv +0 -0
  175. /rasa/cli/project_templates/{teleco → telco}/data/flows/flow_global.yml +0 -0
  176. /rasa/cli/project_templates/{teleco → telco}/data/flows/flow_reboot_router.yml +0 -0
  177. /rasa/cli/project_templates/{teleco → telco}/data/flows/flow_reset_router.yml +0 -0
  178. /rasa/cli/project_templates/{teleco → telco}/data/flows/flow_solve_internet_issue.yml +0 -0
  179. /rasa/cli/project_templates/{teleco → telco}/data/flows/flow_undertand_bill.yml +0 -0
  180. /rasa/cli/project_templates/{teleco → telco}/data/patterns/pattern_completed.yml +0 -0
  181. /rasa/cli/project_templates/{teleco → telco}/data/patterns/pattern_human_handoff.yml +0 -0
  182. /rasa/cli/project_templates/{teleco → telco}/data/patterns/pattern_search.yml +0 -0
  183. /rasa/cli/project_templates/{teleco → telco}/data/patterns/pattern_session_start.yml +0 -0
  184. /rasa/cli/project_templates/{teleco → telco}/docs/reset_vs_rboot_router.txt +0 -0
  185. /rasa/cli/project_templates/{teleco → telco}/docs/restart_router.txt +0 -0
  186. /rasa/cli/project_templates/{teleco → telco}/docs/run_speed_test.txt +0 -0
  187. /rasa/cli/project_templates/{teleco → telco}/domain/domain_global.yml +0 -0
  188. /rasa/cli/project_templates/{teleco → telco}/domain/domain_patterns.yml +0 -0
  189. /rasa/cli/project_templates/{teleco → telco}/domain/domain_reboot_router.yml +0 -0
  190. /rasa/cli/project_templates/{teleco → telco}/domain/domain_reset_router.yml +0 -0
  191. /rasa/cli/project_templates/{teleco → telco}/domain/domain_run_speed_test.yml +0 -0
  192. /rasa/cli/project_templates/{teleco → telco}/domain/domain_solve_internet_issue.yml +0 -0
  193. /rasa/cli/project_templates/{teleco → telco}/domain/domain_undertand_bill.yml +0 -0
  194. /rasa/cli/project_templates/{teleco → telco}/endpoints.yml +0 -0
  195. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_results_failed.yml +0 -0
  196. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_results_passed.yml +0 -0
  197. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_test_cases/billing_test_cases.yml +0 -0
  198. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_test_cases/global_test_cases.yml +0 -0
  199. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_test_cases/internet_slow_test_case.yml +0 -0
  200. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_test_cases/out_of_scope_test_case.yml +0 -0
  201. /rasa/cli/project_templates/{teleco → telco}/tests/e2e_test_cases/patterns_test_cases.yml +0 -0
  202. {rasa_pro-3.13.1a5.dist-info → rasa_pro-3.13.1a7.dist-info}/NOTICE +0 -0
  203. {rasa_pro-3.13.1a5.dist-info → rasa_pro-3.13.1a7.dist-info}/WHEEL +0 -0
  204. {rasa_pro-3.13.1a5.dist-info → rasa_pro-3.13.1a7.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,29 @@
1
+ flows:
2
+ add_payee:
3
+ description: "Add a new payee to the user’s account by collecting and confirming details such as payee name, account number, payee type (person or business), and a reference note"
4
+ steps:
5
+ - collect: payee_name
6
+ description: "name of the payee"
7
+ - collect: account_number
8
+ description: "banking account number"
9
+ - collect: payee_type
10
+ description: "type of the payee that can be either person or business"
11
+ - collect: reference
12
+ description: "a short note to identify the payee or purpose"
13
+ - collect: confirm_payee_details
14
+ description: "confirmation from the user that all payee details are correct before proceeding"
15
+ ask_before_filling: true
16
+ next:
17
+ - if: slots.confirm_payee_details
18
+ then: action_add_payee_step
19
+ - else: END
20
+ - id: action_add_payee_step
21
+ action: action_add_payee
22
+ next:
23
+ - if: slots.payee_added
24
+ then:
25
+ - action: utter_payee_added_success
26
+ next: END
27
+ - else:
28
+ - action: utter_payee_added_failure
29
+ next: END
@@ -0,0 +1,66 @@
1
+ flows:
2
+ block_card:
3
+ description: "Block or freeze a user's debit or credit card to prevent unauthorized use, stop transactions, or report it lost, stolen, damaged, or misplaced for added security"
4
+ name: block a card
5
+ steps:
6
+ - action: utter_block_card_understand
7
+ - call: select_card
8
+ - collect: reason_for_blocking
9
+ description: |
10
+ The reason for freezing or blocking the card, described as lost, damaged, stolen, suspected of fraud,
11
+ malfunctioning, or expired. The user may say they are traveling or moving, or they may say they want to
12
+ temporarily freeze their card. For all other responses, set reason_for_blocking slot to 'unknown'.
13
+ next:
14
+ - if: "slots.reason_for_blocking == 'damaged' or slots.reason_for_blocking == 'expired'"
15
+ then: "acknowledge_reason_damaged_expired"
16
+ - if: "slots.reason_for_blocking == 'fraud' or slots.reason_for_blocking == 'stolen' or slots.reason_for_blocking == 'lost'"
17
+ then:
18
+ - set_slots:
19
+ - fraud_reported: true
20
+ next: "acknowledge_reason_fraud_stolen_lost"
21
+ - if: "slots.reason_for_blocking == 'traveling' or slots.reason_for_blocking == 'moving'"
22
+ then:
23
+ - set_slots:
24
+ - temp_block_card: true
25
+ next: "acknowledge_reason_travelling_moving"
26
+ - else: "contact_support"
27
+ - id: acknowledge_reason_damaged_expired
28
+ action: utter_acknowledge_reason_damaged_expired
29
+ next: "confirm_issue_new_card"
30
+ - id: acknowledge_reason_fraud_stolen_lost
31
+ action: utter_acknowledge_reason_fraud_stolen_lost
32
+ next: "card_blocked"
33
+ - id: acknowledge_reason_travelling_moving
34
+ action: utter_acknowledge_reason_travelling_moving
35
+ next: "card_blocked"
36
+ - id: "card_blocked"
37
+ action: "utter_card_blocked"
38
+ next: "confirm_issue_new_card"
39
+ - id: "confirm_issue_new_card"
40
+ collect: confirm_issue_new_card
41
+ description: |
42
+ Confirm if the user wants to be issued a new card. The answer should be an affirmative statement,
43
+ such as "yes" or "correct," or a declined statement, such as "no" or "I don't want to"
44
+ ask_before_filling: true
45
+ next:
46
+ - if: "slots.confirm_issue_new_card"
47
+ then: "retrieve_user_address"
48
+ - else: "update_card_status"
49
+ - id: "retrieve_user_address"
50
+ collect: address_confirmed
51
+ description: |
52
+ Confirm if the given address is correct. The answer should be an affirmative statement, such as "yes" or
53
+ "correct," or a declined statement, such as "no" or "that's not right."
54
+ next:
55
+ - if: "slots.address_confirmed"
56
+ then: "card_sent"
57
+ - else: "contact_support"
58
+ - id: "card_sent"
59
+ action: utter_confirm_physical_address
60
+ next: update_card_status
61
+ - id: "contact_support"
62
+ action: utter_contact_support
63
+ next: update_card_status
64
+ - id: "update_card_status"
65
+ action: action_update_card_status
66
+ next: END
@@ -0,0 +1,9 @@
1
+ flows:
2
+ check_balance:
3
+ description: |
4
+ Guides the user through retrieving their account balance by requesting an
5
+ account number and returning the balance on account
6
+ name: check an account balance
7
+ steps:
8
+ - collect: account
9
+ - action: action_check_balance
@@ -0,0 +1,5 @@
1
+ flows:
2
+ list_payees:
3
+ description: "Retrieve and display the user’s list of authorized payees, allowing them to view all accounts available for transactions."
4
+ steps:
5
+ - action: action_list_payees
@@ -0,0 +1,21 @@
1
+ flows:
2
+ remove_payee:
3
+ if: False
4
+ description: |
5
+ Facilitates the process of removing an existing payee from a user's
6
+ account, ensuring the user is authenticated before proceeding. This flow
7
+ guides the user through specifying the payee to be removed, attempts the
8
+ removal action, and provides appropriate feedback on the success or
9
+ failure of the operation
10
+ name: delete an existing authorised payee
11
+ steps:
12
+ - collect: payee_name
13
+ - action: action_remove_payee
14
+ next:
15
+ - if: slots.payee_removed
16
+ then:
17
+ - action: utter_payee_removed_success
18
+ next: END
19
+ - else:
20
+ - action: utter_payee_removed_failure
21
+ next: END
@@ -0,0 +1,12 @@
1
+ flows:
2
+ select_card:
3
+ if: False
4
+ description: Guides the user through selecting a card
5
+ name: select a card number
6
+ steps:
7
+ - collect: card
8
+ description: "card number of the user"
9
+ ask_before_filling: true
10
+ rejections:
11
+ - if: not (slots.card matches "^[0-9]+$")
12
+ utter: utter_invalid_card_number
@@ -1,5 +1,67 @@
1
1
  flows:
2
2
  transfer_money:
3
- description: Transfer money between accounts.
3
+ description: Guides the user through the process of initiating a bank transfer.
4
4
  steps:
5
- - action: utter_transfer_money
5
+ - action: utter_transfer_money_understand
6
+ - collect: account_from
7
+ - collect: payee_name
8
+ - action: action_check_payee_existence
9
+ next:
10
+ - if: not slots.payee_exists
11
+ then:
12
+ - call: add_payee
13
+ next: "get_transfer_amount"
14
+ - else: "get_transfer_amount"
15
+ - id: "get_transfer_amount"
16
+ collect: amount
17
+ description: The amount of money to transfer
18
+ rejections:
19
+ - if: slots.amount <= 0
20
+ utter: utter_invalid_amount
21
+ - action: action_check_sufficient_funds
22
+ next:
23
+ - if: slots.sufficient_funds
24
+ then: "get_payment_timing"
25
+ - else:
26
+ - action: utter_insufficient_funds
27
+ next: END
28
+ - id: "get_payment_timing"
29
+ collect: timing
30
+ next:
31
+ - if: slots.timing == "now"
32
+ then: "confirm_immediate_transfer"
33
+ - else: "get_payment_date"
34
+ - id: "confirm_immediate_transfer"
35
+ collect: confirm_immediate_payment
36
+ ask_before_filling: true
37
+ next:
38
+ - if: slots.confirm_immediate_payment
39
+ then:
40
+ - action: action_process_immediate_payment
41
+ - action: utter_transfer_successful
42
+ next: END
43
+ - else: "transfer_cancelled"
44
+ - id: "get_payment_date"
45
+ collect: payment_date
46
+ description: the future payment date of the money transfer. Convert date to DD/MM/YYYY format
47
+ - action: action_validate_payment_date
48
+ next:
49
+ - if: slots.future_payment_date
50
+ then: "confirm_future_payment"
51
+ - else:
52
+ - action: utter_past_payment_date
53
+ - set_slots:
54
+ - payment_date: null
55
+ next: "get_payment_date"
56
+ - id: "confirm_future_payment"
57
+ collect: confirm_future_payment
58
+ ask_before_filling: true
59
+ next:
60
+ - if: slots.confirm_future_payment
61
+ then:
62
+ - action: action_schedule_payment
63
+ - action: utter_payment_scheduled
64
+ next: END
65
+ - else: "transfer_cancelled"
66
+ - id: "transfer_cancelled"
67
+ action: utter_cancel_transfer
@@ -0,0 +1,14 @@
1
+ flows:
2
+ help:
3
+ # nlu_trigger:
4
+ # - intent:
5
+ # name: help
6
+ # confidence_threshold: 0.9999
7
+ description: |
8
+ This flow addresses user inquiries about the assistant's capabilities.
9
+ It starts by acknowledging the user's request and providing a clear overview of
10
+ key skills and services. This helps users understand how the assistant can assist
11
+ them effectively.
12
+ name: help you
13
+ steps:
14
+ - action: utter_help
@@ -0,0 +1,29 @@
1
+ version: "3.1"
2
+
3
+ nlu:
4
+ - intent: greet
5
+ examples: |
6
+ - Hello!
7
+ - Hi there
8
+ - Good morning
9
+ - Good afternoon
10
+ - Good evening
11
+ - Hey!
12
+ - Hi
13
+ - Greetings
14
+ - How are you?
15
+ - What's up?
16
+
17
+ - intent: help
18
+ examples: |
19
+ - Who are you?
20
+ - What can you do?
21
+ - How can you assist me?
22
+ - Please list your skills.
23
+ - What services do you provide?
24
+ - Can you explain your capabilities?
25
+ - What do you specialise in?
26
+ - What kind of support can you offer?
27
+ - Can you tell me about your expertise?
28
+ - How do you help users?
29
+ - What tasks are you capable of doing?
@@ -0,0 +1,7 @@
1
+ flows:
2
+ pattern_chitchat:
3
+ description: Handle chitchat related questions
4
+ nlu_trigger:
5
+ - intent: greet
6
+ steps:
7
+ - action: utter_chitchat
@@ -0,0 +1,6 @@
1
+ flows:
2
+ pattern_completed:
3
+ description: A flow has been completed and there is nothing else to be done
4
+ steps:
5
+ - noop: true
6
+ next: END
@@ -0,0 +1,5 @@
1
+ flows:
2
+ pattern_search:
3
+ description: Handle knowledge-based requests using enterprise search
4
+ steps:
5
+ - action: action_trigger_search
@@ -1,7 +1,9 @@
1
1
  flows:
2
2
  pattern_session_start:
3
- description: Custom session start to greet the user.
3
+ description: Flow for starting the conversation
4
+ name: pattern session start
4
5
  nlu_trigger:
5
- - intent: session_start
6
+ - intent: session_start
6
7
  steps:
7
- - action: utter_greet
8
+ - action: utter_greeting
9
+ - action: utter_show_greeting_accordion
@@ -0,0 +1,51 @@
1
+ [
2
+ {
3
+ "user_id": 1,
4
+ "balance": 10123.45,
5
+ "type": "savings",
6
+ "number": "12345678",
7
+ "sort_code": "123456"
8
+ },
9
+ {
10
+ "user_id": 1,
11
+ "balance": 4923.67,
12
+ "type": "current",
13
+ "number": "23456789",
14
+ "sort_code": "123456"
15
+ },
16
+ {
17
+ "user_id": 2,
18
+ "balance": 14789.32,
19
+ "type": "current",
20
+ "number": "34567890",
21
+ "sort_code": "234567"
22
+ },
23
+ {
24
+ "user_id": 2,
25
+ "balance": 7134.56,
26
+ "type": "savings",
27
+ "number": "45678901",
28
+ "sort_code": "234567"
29
+ },
30
+ {
31
+ "user_id": 2,
32
+ "balance": 2987.23,
33
+ "type": "business",
34
+ "number": "56789012",
35
+ "sort_code": "234567"
36
+ },
37
+ {
38
+ "user_id": 3,
39
+ "balance": 20245.67,
40
+ "type": "savings",
41
+ "number": "67890123",
42
+ "sort_code": "345678"
43
+ },
44
+ {
45
+ "user_id": 3,
46
+ "balance": 8034.12,
47
+ "type": "current",
48
+ "number": "78901234",
49
+ "sort_code": "345678"
50
+ }
51
+ ]
@@ -0,0 +1,44 @@
1
+ [
2
+ {
3
+ "branch_id": 1,
4
+ "name": "Eto Demerzel",
5
+ "email": "eto.demerzel@trantorbranch.com",
6
+ "phone": "02079460001",
7
+ "position": "Business Loan Advisor"
8
+ },
9
+ {
10
+ "branch_id": 1,
11
+ "name": "Bayta Darell",
12
+ "email": "bayta.darell@trantorbranch.com",
13
+ "phone": "02079460003",
14
+ "position": "Wealth Management Advisor"
15
+ },
16
+ {
17
+ "branch_id": 2,
18
+ "name": "Daneel Olivaw",
19
+ "email": "daneel.olivaw@terminusbranch.com",
20
+ "phone": "02079460004",
21
+ "position": "Retirement Planning Advisor"
22
+ },
23
+ {
24
+ "branch_id": 3,
25
+ "name": "Hober Mallow",
26
+ "email": "hober.mallow@asimovbranch.com",
27
+ "phone": "02079460007",
28
+ "position": "Personal Finance Advisor"
29
+ },
30
+ {
31
+ "branch_id": 3,
32
+ "name": "Bel Riose",
33
+ "email": "bel.riose@asimovbranch.com",
34
+ "phone": "02079460008",
35
+ "position": "Investment Advisor"
36
+ },
37
+ {
38
+ "branch_id": 3,
39
+ "name": "Pritcher",
40
+ "email": "pritcher@asimovbranch.com",
41
+ "phone": "02079460009",
42
+ "position": "Investment Advisor"
43
+ }
44
+ ]