rasa-pro 3.14.0.dev20250901__py3-none-any.whl → 3.14.0.dev20250922__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 (361) hide show
  1. rasa/builder/config.py +1 -0
  2. rasa/builder/copilot/constants.py +3 -0
  3. rasa/builder/copilot/copilot.py +128 -54
  4. rasa/builder/copilot/models.py +39 -3
  5. rasa/builder/copilot/prompts/copilot_system_prompt.jinja2 +183 -188
  6. rasa/builder/copilot/prompts/latest_user_message_context_prompt.jinja2 +61 -0
  7. rasa/builder/copilot/telemetry.py +46 -20
  8. rasa/builder/document_retrieval/models.py +3 -3
  9. rasa/builder/download.py +1 -8
  10. rasa/builder/jobs.py +33 -21
  11. rasa/builder/main.py +38 -62
  12. rasa/builder/models.py +7 -7
  13. rasa/builder/project_generator.py +143 -147
  14. rasa/builder/service.py +42 -27
  15. rasa/builder/template_cache.py +69 -0
  16. rasa/builder/training_service.py +74 -4
  17. rasa/cli/project_templates/basic/README.md +23 -0
  18. rasa/cli/project_templates/basic/actions/actions.md +10 -0
  19. rasa/cli/project_templates/basic/config.yml +6 -4
  20. rasa/cli/project_templates/basic/data/data.md +5 -6
  21. rasa/cli/project_templates/basic/domain/domain.md +7 -5
  22. rasa/cli/project_templates/basic/domain/general/show_faqs.yml +1 -1
  23. rasa/cli/project_templates/basic/endpoints.yml +5 -1
  24. rasa/cli/project_templates/default/config.yml +4 -0
  25. rasa/cli/project_templates/default/endpoints.yml +4 -0
  26. rasa/cli/project_templates/finance/README.md +26 -0
  27. rasa/cli/project_templates/finance/actions/__init__.py +0 -46
  28. rasa/cli/project_templates/finance/actions/accounts/check_balance.py +18 -0
  29. rasa/cli/project_templates/finance/actions/actions.md +15 -0
  30. rasa/cli/project_templates/finance/actions/{transfers/action_process_immediate_payment.py → cards/check_that_card_exists.py} +6 -3
  31. rasa/cli/project_templates/finance/actions/cards/list_cards.py +22 -0
  32. rasa/cli/project_templates/finance/actions/contacts/__init__.py +0 -0
  33. rasa/cli/project_templates/finance/actions/contacts/add_contact.py +30 -0
  34. rasa/cli/project_templates/finance/actions/contacts/list_contacts.py +22 -0
  35. rasa/cli/project_templates/finance/actions/contacts/remove_contact.py +35 -0
  36. rasa/cli/project_templates/finance/actions/db.py +117 -0
  37. rasa/cli/project_templates/finance/actions/general/__init__.py +0 -0
  38. rasa/cli/project_templates/finance/actions/general/action_human_handoff.py +49 -0
  39. rasa/cli/project_templates/finance/actions/transfers/check_transfer_funds.py +27 -0
  40. rasa/cli/project_templates/finance/actions/transfers/check_transfer_limit.py +36 -0
  41. rasa/cli/project_templates/finance/actions/transfers/execute_recurrent_payment.py +20 -0
  42. rasa/cli/project_templates/finance/actions/transfers/execute_transfer.py +45 -0
  43. rasa/cli/project_templates/finance/actions/transfers/list_transactions.py +32 -0
  44. rasa/cli/project_templates/finance/config.yml +8 -0
  45. rasa/cli/project_templates/finance/credentials.yml +7 -6
  46. rasa/cli/project_templates/finance/data/accounts/check_balance.yml +3 -4
  47. rasa/cli/project_templates/finance/data/accounts/download_statements.yml +26 -0
  48. rasa/cli/project_templates/finance/data/bills/bill_pay_reminder.yml +25 -0
  49. rasa/cli/project_templates/finance/data/cards/activate_card.yml +35 -0
  50. rasa/cli/project_templates/finance/data/cards/block_card.yml +37 -58
  51. rasa/cli/project_templates/finance/data/cards/list_cards.yml +14 -0
  52. rasa/cli/project_templates/finance/data/cards/replace_card.yml +16 -0
  53. rasa/cli/project_templates/finance/data/cards/replace_eligible_card.yml +29 -0
  54. rasa/cli/project_templates/finance/data/contacts/add_contact.yml +33 -0
  55. rasa/cli/project_templates/finance/data/contacts/list_contacts.yml +14 -0
  56. rasa/cli/project_templates/finance/data/contacts/remove_contact.yml +31 -0
  57. rasa/cli/project_templates/finance/data/data.md +14 -0
  58. rasa/cli/project_templates/finance/data/general/bot_challenge.yml +6 -0
  59. rasa/cli/project_templates/finance/data/general/goodbye.yml +1 -1
  60. rasa/cli/project_templates/finance/data/general/hello.yml +1 -2
  61. rasa/cli/project_templates/finance/data/general/help.yml +2 -2
  62. rasa/cli/project_templates/finance/data/general/human_handoff.yml +2 -2
  63. rasa/cli/project_templates/finance/data/system/patterns/pattern_session_start.yml +1 -1
  64. rasa/cli/project_templates/finance/data/transfers/check_transfer_limit.yml +18 -0
  65. rasa/cli/project_templates/finance/data/transfers/list_transactions.yml +46 -0
  66. rasa/cli/project_templates/finance/data/transfers/move_money_between_accounts.yml +51 -0
  67. rasa/cli/project_templates/finance/data/transfers/transfer_money.yml +29 -62
  68. rasa/cli/project_templates/finance/data/transfers/transfer_money_to_a_third_party.yml +175 -0
  69. rasa/cli/project_templates/finance/db/cards.json +18 -0
  70. rasa/cli/project_templates/finance/db/contacts.json +10 -0
  71. rasa/cli/project_templates/finance/db/my_account.json +6 -0
  72. rasa/cli/project_templates/finance/db/transactions.json +22 -0
  73. rasa/cli/project_templates/finance/docs/docs.md +8 -0
  74. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/budgeting_analytics.txt +22 -0
  75. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/multi_currency_accounts.txt +19 -0
  76. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/premium_benefits.txt +19 -0
  77. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/contactless_limits.txt +16 -0
  78. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/freeze_unfreeze_card.txt +16 -0
  79. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/lost_stolen_card.txt +19 -0
  80. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/money_transfers/instant_payments.txt +19 -0
  81. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/money_transfers/international_transfers.txt +19 -0
  82. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/security_fraud/fraud_protection.txt +22 -0
  83. rasa/cli/project_templates/finance/docs/fenlo_banking_faq/security_fraud/secure_payments.txt +22 -0
  84. rasa/cli/project_templates/finance/domain/accounts/check_balance.yml +9 -5
  85. rasa/cli/project_templates/finance/domain/accounts/download_statements.yml +40 -0
  86. rasa/cli/project_templates/finance/domain/bills/bill_pay_reminder.yml +49 -0
  87. rasa/cli/project_templates/finance/domain/cards/activate_card.yml +24 -0
  88. rasa/cli/project_templates/finance/domain/cards/block_card.yml +33 -90
  89. rasa/cli/project_templates/finance/domain/cards/list_cards.yml +16 -0
  90. rasa/cli/project_templates/finance/domain/cards/replace_card.yml +43 -0
  91. rasa/cli/project_templates/finance/domain/cards/shared.yml +15 -0
  92. rasa/cli/project_templates/finance/domain/contacts/add_contact.yml +37 -0
  93. rasa/cli/project_templates/finance/domain/contacts/list_contacts.yml +16 -0
  94. rasa/cli/project_templates/finance/domain/contacts/remove_contact.yml +32 -0
  95. rasa/cli/project_templates/finance/domain/domain.md +18 -0
  96. rasa/cli/project_templates/finance/domain/general/_shared.yml +39 -0
  97. rasa/cli/project_templates/finance/domain/general/bot_challenge.yml +4 -0
  98. rasa/cli/project_templates/finance/domain/general/cannot_handle.yml +5 -2
  99. rasa/cli/project_templates/finance/domain/general/feedback.yml +0 -3
  100. rasa/cli/project_templates/finance/domain/general/goodbye.yml +6 -6
  101. rasa/cli/project_templates/finance/domain/general/human_handoff.yml +10 -9
  102. rasa/cli/project_templates/finance/domain/general/welcome.yml +33 -2
  103. rasa/cli/project_templates/finance/domain/transfers/check_transfer_limit.yml +32 -0
  104. rasa/cli/project_templates/finance/domain/transfers/list_transactions.yml +44 -0
  105. rasa/cli/project_templates/finance/domain/transfers/shared.yml +17 -0
  106. rasa/cli/project_templates/finance/domain/transfers/transfer_money.yml +203 -61
  107. rasa/cli/project_templates/finance/endpoints.yml +8 -4
  108. rasa/cli/project_templates/finance/prompts/rephraser_demo_personality_prompt.jinja2 +31 -12
  109. rasa/cli/project_templates/finance/tests/e2e_test_cases/accounts/check_balance.yml +9 -0
  110. rasa/cli/project_templates/finance/tests/e2e_test_cases/accounts/download_statements.yml +43 -0
  111. rasa/cli/project_templates/finance/tests/e2e_test_cases/cards/block_card.yml +55 -0
  112. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/bot_challenge.yml +8 -0
  113. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/feedback.yml +46 -0
  114. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/goodbye.yml +9 -0
  115. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/hello.yml +8 -0
  116. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/human_handoff.yml +35 -0
  117. rasa/cli/project_templates/finance/tests/e2e_test_cases/general/patterns.yml +22 -0
  118. rasa/cli/project_templates/finance/tests/e2e_test_cases/transfers/transfer_money.yml +56 -0
  119. rasa/cli/project_templates/telco/README.md +25 -0
  120. rasa/cli/project_templates/telco/actions/actions.md +12 -0
  121. rasa/cli/project_templates/telco/config.yml +6 -4
  122. rasa/cli/project_templates/telco/data/data.md +11 -0
  123. rasa/cli/project_templates/telco/data/general/human_handoff.yml +1 -1
  124. rasa/cli/project_templates/telco/docs/docs.md +3 -0
  125. rasa/cli/project_templates/telco/domain/domain.md +13 -0
  126. rasa/cli/project_templates/telco/domain/general/human_handoff.yml +3 -6
  127. rasa/cli/project_templates/telco/endpoints.yml +5 -1
  128. rasa/cli/project_templates/telco/prompts/rephraser_demo_personality_prompt.jinja2 +1 -1
  129. rasa/cli/project_templates/telco/tests/e2e_test_cases/billing/understand_bill.yml +67 -0
  130. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/bot_challenge.yml +8 -0
  131. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/feedback.yml +46 -0
  132. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/goodbye.yml +9 -0
  133. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/hello.yml +8 -0
  134. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/human_handoff.yml +35 -0
  135. rasa/cli/project_templates/telco/tests/e2e_test_cases/general/patterns.yml +23 -0
  136. rasa/cli/project_templates/telco/tests/e2e_test_cases/network/solve_internet_issue.yml +57 -0
  137. rasa/core/actions/action_run_slot_rejections.py +1 -1
  138. rasa/core/actions/direct_custom_actions_executor.py +9 -2
  139. rasa/core/brokers/broker.py +1 -1
  140. rasa/core/brokers/kafka.py +52 -8
  141. rasa/core/channels/development_inspector.py +1 -21
  142. rasa/core/channels/hangouts.py +2 -2
  143. rasa/core/channels/inspector/dist/assets/{arc-18042c22.js → arc-35222594.js} +1 -1
  144. rasa/core/channels/inspector/dist/assets/{blockDiagram-38ab4fdb-fdd6bcfa.js → blockDiagram-38ab4fdb-a0efbfd3.js} +1 -1
  145. rasa/core/channels/inspector/dist/assets/{c4Diagram-3d4e48cf-f5ae6786.js → c4Diagram-3d4e48cf-0584c0f2.js} +1 -1
  146. rasa/core/channels/inspector/dist/assets/channel-8e08bed9.js +1 -0
  147. rasa/core/channels/inspector/dist/assets/{classDiagram-70f12bd4-81efba3e.js → classDiagram-70f12bd4-39f40dbe.js} +1 -1
  148. rasa/core/channels/inspector/dist/assets/{classDiagram-v2-f2320105-3b6b6a92.js → classDiagram-v2-f2320105-1ad755f3.js} +1 -1
  149. rasa/core/channels/inspector/dist/assets/clone-78c82dea.js +1 -0
  150. rasa/core/channels/inspector/dist/assets/{createText-2e5e7dd3-31422447.js → createText-2e5e7dd3-b0f4f0fe.js} +1 -1
  151. rasa/core/channels/inspector/dist/assets/{edges-e0da2a9e-518a90db.js → edges-e0da2a9e-9039bff9.js} +1 -1
  152. rasa/core/channels/inspector/dist/assets/{erDiagram-9861fffd-a6d3c25a.js → erDiagram-9861fffd-65c9b127.js} +1 -1
  153. rasa/core/channels/inspector/dist/assets/{flowDb-956e92f1-e048c2be.js → flowDb-956e92f1-4f08b38e.js} +1 -1
  154. rasa/core/channels/inspector/dist/assets/{flowDiagram-66a62f08-c7474c91.js → flowDiagram-66a62f08-e95c362a.js} +1 -1
  155. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-2b08f601.js +1 -0
  156. rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-4a651766-cb4d8723.js → flowchart-elk-definition-4a651766-703c3015.js} +1 -1
  157. rasa/core/channels/inspector/dist/assets/{ganttDiagram-c361ad54-346636a2.js → ganttDiagram-c361ad54-699328ea.js} +1 -1
  158. rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-72cf32ee-7c508874.js → gitGraphDiagram-72cf32ee-04cf4b05.js} +1 -1
  159. rasa/core/channels/inspector/dist/assets/{graph-14702d8a.js → graph-ee94449e.js} +1 -1
  160. rasa/core/channels/inspector/dist/assets/{index-3862675e-f18b534b.js → index-3862675e-940162b4.js} +1 -1
  161. rasa/core/channels/inspector/dist/assets/{index-4d4bdf3a.js → index-c941dcb3.js} +132 -131
  162. rasa/core/channels/inspector/dist/assets/{infoDiagram-f8f76790-64154b83.js → infoDiagram-f8f76790-c79c2866.js} +1 -1
  163. rasa/core/channels/inspector/dist/assets/{journeyDiagram-49397b02-833a5f95.js → journeyDiagram-49397b02-84489d30.js} +1 -1
  164. rasa/core/channels/inspector/dist/assets/{layout-5a3b2123.js → layout-a9aa9858.js} +1 -1
  165. rasa/core/channels/inspector/dist/assets/{line-2272a8c7.js → line-eb73cf26.js} +1 -1
  166. rasa/core/channels/inspector/dist/assets/{linear-35bcf273.js → linear-b3399f9a.js} +1 -1
  167. rasa/core/channels/inspector/dist/assets/{mindmap-definition-fc14e90a-92dcb0e9.js → mindmap-definition-fc14e90a-b095bf1a.js} +1 -1
  168. rasa/core/channels/inspector/dist/assets/{pieDiagram-8a3498a8-94dbc900.js → pieDiagram-8a3498a8-07644b66.js} +1 -1
  169. rasa/core/channels/inspector/dist/assets/{quadrantDiagram-120e2f19-8b7a9c33.js → quadrantDiagram-120e2f19-573a3f9c.js} +1 -1
  170. rasa/core/channels/inspector/dist/assets/{requirementDiagram-deff3bca-6f7eab81.js → requirementDiagram-deff3bca-d457e1e1.js} +1 -1
  171. rasa/core/channels/inspector/dist/assets/{sankeyDiagram-04a897e0-f43e581d.js → sankeyDiagram-04a897e0-9d26e1a2.js} +1 -1
  172. rasa/core/channels/inspector/dist/assets/{sequenceDiagram-704730f1-0bcbefc3.js → sequenceDiagram-704730f1-3a9cde10.js} +1 -1
  173. rasa/core/channels/inspector/dist/assets/{stateDiagram-587899a1-b8a74083.js → stateDiagram-587899a1-4f3e8cec.js} +1 -1
  174. rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-d93cdb3a-2070218f.js → stateDiagram-v2-d93cdb3a-e617e5bf.js} +1 -1
  175. rasa/core/channels/inspector/dist/assets/{styles-6aaf32cf-f1d54e34.js → styles-6aaf32cf-eab30d2f.js} +1 -1
  176. rasa/core/channels/inspector/dist/assets/{styles-9a916d00-980de489.js → styles-9a916d00-09994be2.js} +1 -1
  177. rasa/core/channels/inspector/dist/assets/{styles-c10674c1-3c03abde.js → styles-c10674c1-b7110364.js} +1 -1
  178. rasa/core/channels/inspector/dist/assets/{svgDrawCommon-08f97a94-46ba068f.js → svgDrawCommon-08f97a94-3ebc92ad.js} +1 -1
  179. rasa/core/channels/inspector/dist/assets/{timeline-definition-85554ec2-901f5e3d.js → timeline-definition-85554ec2-7d13d2f2.js} +1 -1
  180. rasa/core/channels/inspector/dist/assets/{xychartDiagram-e933f94c-acbc628a.js → xychartDiagram-e933f94c-488385e1.js} +1 -1
  181. rasa/core/channels/inspector/dist/index.html +1 -1
  182. rasa/core/channels/inspector/src/App.tsx +5 -31
  183. rasa/core/channels/inspector/src/components/Chat.tsx +2 -3
  184. rasa/core/channels/inspector/src/components/DialogueInformation.tsx +9 -1
  185. rasa/core/channels/inspector/src/components/LatencyDisplay.tsx +63 -35
  186. rasa/core/channels/inspector/src/helpers/audio/audiostream.ts +14 -0
  187. rasa/core/channels/inspector/src/types.ts +32 -7
  188. rasa/core/channels/studio_chat.py +23 -41
  189. rasa/core/channels/voice_stream/asr/asr_event.py +1 -1
  190. rasa/core/channels/voice_stream/asr/azure.py +6 -3
  191. rasa/core/channels/voice_stream/asr/deepgram.py +1 -1
  192. rasa/core/channels/voice_stream/audiocodes.py +3 -0
  193. rasa/core/channels/voice_stream/browser_audio.py +55 -3
  194. rasa/core/channels/voice_stream/genesys.py +2 -1
  195. rasa/core/channels/voice_stream/jambonz.py +9 -1
  196. rasa/core/channels/voice_stream/twilio_media_streams.py +16 -0
  197. rasa/core/channels/voice_stream/voice_channel.py +61 -0
  198. rasa/core/concurrent_lock_store.py +66 -16
  199. rasa/core/constants.py +7 -0
  200. rasa/core/iam_credentials_providers/__init__.py +0 -0
  201. rasa/core/iam_credentials_providers/aws_iam_credentials_providers.py +226 -0
  202. rasa/core/iam_credentials_providers/credentials_provider_protocol.py +90 -0
  203. rasa/core/lock_store.py +46 -10
  204. rasa/core/nlg/generator.py +1 -1
  205. rasa/core/policies/flows/flow_executor.py +1 -1
  206. rasa/core/processor.py +32 -0
  207. rasa/core/redis_connection_factory.py +469 -0
  208. rasa/core/tracker_stores/redis_tracker_store.py +32 -14
  209. rasa/core/tracker_stores/sql_tracker_store.py +57 -1
  210. rasa/engine/graph.py +5 -1
  211. rasa/engine/loader.py +12 -0
  212. rasa/engine/storage/local_model_storage.py +41 -4
  213. rasa/model_manager/socket_bridge.py +1 -2
  214. rasa/model_manager/warm_rasa_process.py +13 -3
  215. rasa/shared/core/constants.py +1 -0
  216. rasa/shared/core/events.py +2 -0
  217. rasa/shared/core/flows/flow.py +1 -1
  218. rasa/shared/nlu/training_data/schemas/responses.yml +3 -0
  219. rasa/utils/pypred.py +38 -0
  220. rasa/validator.py +12 -8
  221. rasa/version.py +1 -1
  222. {rasa_pro-3.14.0.dev20250901.dist-info → rasa_pro-3.14.0.dev20250922.dist-info}/METADATA +19 -16
  223. {rasa_pro-3.14.0.dev20250901.dist-info → rasa_pro-3.14.0.dev20250922.dist-info}/RECORD +231 -266
  224. rasa/cli/project_templates/finance/actions/accounts/action_ask_account.py +0 -47
  225. rasa/cli/project_templates/finance/actions/accounts/action_check_balance.py +0 -40
  226. rasa/cli/project_templates/finance/actions/action_session_start.py +0 -74
  227. rasa/cli/project_templates/finance/actions/cards/action_ask_card.py +0 -48
  228. rasa/cli/project_templates/finance/actions/cards/action_check_card_existence.py +0 -36
  229. rasa/cli/project_templates/finance/actions/cards/action_update_card_status.py +0 -54
  230. rasa/cli/project_templates/finance/actions/database.py +0 -277
  231. rasa/cli/project_templates/finance/actions/transfers/action_add_payee.py +0 -52
  232. rasa/cli/project_templates/finance/actions/transfers/action_ask_account_from.py +0 -51
  233. rasa/cli/project_templates/finance/actions/transfers/action_check_payee_existence.py +0 -40
  234. rasa/cli/project_templates/finance/actions/transfers/action_check_sufficient_funds.py +0 -40
  235. rasa/cli/project_templates/finance/actions/transfers/action_list_payees.py +0 -46
  236. rasa/cli/project_templates/finance/actions/transfers/action_remove_payee.py +0 -49
  237. rasa/cli/project_templates/finance/actions/transfers/action_schedule_payment.py +0 -19
  238. rasa/cli/project_templates/finance/actions/transfers/action_validate_payment_date.py +0 -36
  239. rasa/cli/project_templates/finance/csvs/accounts.csv +0 -8
  240. rasa/cli/project_templates/finance/csvs/advisors.csv +0 -7
  241. rasa/cli/project_templates/finance/csvs/appointments.csv +0 -211
  242. rasa/cli/project_templates/finance/csvs/branches.csv +0 -10
  243. rasa/cli/project_templates/finance/csvs/cards.csv +0 -11
  244. rasa/cli/project_templates/finance/csvs/payees.csv +0 -11
  245. rasa/cli/project_templates/finance/csvs/transactions.csv +0 -71
  246. rasa/cli/project_templates/finance/csvs/users.csv +0 -4
  247. rasa/cli/project_templates/finance/data/cards/select_card.yml +0 -12
  248. rasa/cli/project_templates/finance/data/general/bot_identity.yml +0 -6
  249. rasa/cli/project_templates/finance/data/system/patterns/pattern_chitchat.yml +0 -5
  250. rasa/cli/project_templates/finance/data/system/source/accounts.json +0 -51
  251. rasa/cli/project_templates/finance/data/system/source/advisors.json +0 -44
  252. rasa/cli/project_templates/finance/data/system/source/appointments.json +0 -1474
  253. rasa/cli/project_templates/finance/data/system/source/branches.json +0 -47
  254. rasa/cli/project_templates/finance/data/system/source/cards.json +0 -72
  255. rasa/cli/project_templates/finance/data/system/source/payees.json +0 -74
  256. rasa/cli/project_templates/finance/data/system/source/transactions.json +0 -492
  257. rasa/cli/project_templates/finance/data/system/source/users.json +0 -29
  258. rasa/cli/project_templates/finance/data/transfers/add_payee.yml +0 -29
  259. rasa/cli/project_templates/finance/data/transfers/list_payees.yml +0 -5
  260. rasa/cli/project_templates/finance/data/transfers/remove_payee.yml +0 -21
  261. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/consequences_of_blocking_card.txt +0 -8
  262. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/reasons_to_block_card.txt +0 -8
  263. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/recovering_from_card_fraud.txt +0 -8
  264. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/tips_for_card_security.txt +0 -8
  265. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/what_to_do_if_card_is_lost.txt +0 -8
  266. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/account_balance_security.txt +0 -7
  267. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/common_balance_inquiries.txt +0 -8
  268. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/methods_to_check_balance.txt +0 -8
  269. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/understanding_balance_updates.txt +0 -8
  270. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/what_to_do_if_balance_is_incorrect.txt +0 -8
  271. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/benefits_of_authorised_payees.txt +0 -8
  272. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/common_issues_with_payees.txt +0 -8
  273. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/general_payee_information.txt +0 -8
  274. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/payee_management_tips.txt +0 -8
  275. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/understanding_payee_types.txt +0 -8
  276. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/common_transfer_errors.txt +0 -8
  277. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/fees_for_transfers.txt +0 -8
  278. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/general_transfer_information.txt +0 -8
  279. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/security_tips_for_transfers.txt +0 -8
  280. rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/transfer_processing_times.txt +0 -8
  281. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part1.txt +0 -50
  282. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part10.txt +0 -50
  283. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part11.txt +0 -48
  284. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part12.txt +0 -50
  285. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part13.txt +0 -50
  286. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part14.txt +0 -47
  287. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part15.txt +0 -50
  288. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part16.txt +0 -50
  289. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part17.txt +0 -47
  290. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part18.txt +0 -50
  291. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part19.txt +0 -50
  292. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part2.txt +0 -50
  293. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part20.txt +0 -47
  294. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part21.txt +0 -50
  295. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part22.txt +0 -50
  296. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part23.txt +0 -47
  297. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part24.txt +0 -50
  298. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part25.txt +0 -50
  299. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part26.txt +0 -47
  300. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part27.txt +0 -50
  301. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part28.txt +0 -50
  302. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part29.txt +0 -47
  303. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part3.txt +0 -47
  304. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part30.txt +0 -50
  305. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part31.txt +0 -50
  306. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part32.txt +0 -47
  307. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part33.txt +0 -50
  308. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part34.txt +0 -50
  309. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part35.txt +0 -47
  310. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part36.txt +0 -50
  311. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part37.txt +0 -50
  312. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part38.txt +0 -47
  313. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part39.txt +0 -50
  314. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part4.txt +0 -50
  315. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part40.txt +0 -50
  316. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part41.txt +0 -47
  317. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part42.txt +0 -50
  318. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part43.txt +0 -50
  319. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part44.txt +0 -47
  320. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part45.txt +0 -50
  321. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part46.txt +0 -50
  322. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part47.txt +0 -47
  323. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part48.txt +0 -50
  324. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part49.txt +0 -50
  325. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part5.txt +0 -50
  326. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part50.txt +0 -47
  327. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part51.txt +0 -50
  328. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part52.txt +0 -50
  329. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part53.txt +0 -47
  330. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part54.txt +0 -50
  331. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part55.txt +0 -50
  332. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part56.txt +0 -47
  333. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part57.txt +0 -50
  334. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part58.txt +0 -50
  335. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part59.txt +0 -47
  336. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part6.txt +0 -47
  337. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part60.txt +0 -50
  338. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part61.txt +0 -50
  339. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part7.txt +0 -50
  340. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part8.txt +0 -50
  341. rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part9.txt +0 -47
  342. rasa/cli/project_templates/finance/domain/cards/select_card.yml +0 -12
  343. rasa/cli/project_templates/finance/domain/general/assistant_details.yml +0 -12
  344. rasa/cli/project_templates/finance/domain/general/bot_identity.yml +0 -5
  345. rasa/cli/project_templates/finance/domain/general/defaults.yml +0 -24
  346. rasa/cli/project_templates/finance/domain/general/help.yml +0 -5
  347. rasa/cli/project_templates/finance/domain/general/utils.yml +0 -13
  348. rasa/cli/project_templates/finance/domain/transfers/add_payee.yml +0 -47
  349. rasa/cli/project_templates/finance/domain/transfers/list_payees.yml +0 -4
  350. rasa/cli/project_templates/finance/domain/transfers/remove_payee.yml +0 -16
  351. rasa/core/channels/inspector/dist/assets/channel-b9b536fc.js +0 -1
  352. rasa/core/channels/inspector/dist/assets/clone-78d2ddcf.js +0 -1
  353. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-8b09c060.js +0 -1
  354. /rasa/cli/project_templates/telco/domain/billing/{domain_undertand_bill.yml → understand_bill.yml} +0 -0
  355. /rasa/cli/project_templates/telco/domain/network/{domain_reboot_router.yml → reboot_router.yml} +0 -0
  356. /rasa/cli/project_templates/telco/domain/network/{domain_reset_router.yml → reset_router.yml} +0 -0
  357. /rasa/cli/project_templates/telco/domain/network/{domain_run_speed_test.yml → run_speed_test.yml} +0 -0
  358. /rasa/cli/project_templates/telco/domain/network/{domain_solve_internet_issue.yml → solve_internet_issue.yml} +0 -0
  359. {rasa_pro-3.14.0.dev20250901.dist-info → rasa_pro-3.14.0.dev20250922.dist-info}/NOTICE +0 -0
  360. {rasa_pro-3.14.0.dev20250901.dist-info → rasa_pro-3.14.0.dev20250922.dist-info}/WHEEL +0 -0
  361. {rasa_pro-3.14.0.dev20250901.dist-info → rasa_pro-3.14.0.dev20250922.dist-info}/entry_points.txt +0 -0
@@ -5,6 +5,65 @@ guidance and practical code solutions.
5
5
 
6
6
  ---
7
7
 
8
+ # Instruction Priority
9
+
10
+ 1. Special tokens
11
+ - [ERROR_FALLBACK], [ROLEPLAY_REQUEST_DETECTED], [OUT_OF_SCOPE_REQUEST_DETECTED]
12
+ 2. Handling Greetings / Handling Goodbyes. Highest priority for casual messages
13
+ 3. Handling Knowledge Base Content Request
14
+ 4. Response Guidelines & Format (including citations)
15
+ 5. Everything else
16
+
17
+ ---
18
+
19
+ # Default Introductions
20
+
21
+ ## About Rasa
22
+ Rasa is a leading platform for generative conversational AI, designed to help
23
+ enterprises build and operate advanced AI assistants at scale.
24
+
25
+ If the user asks *"What is Rasa?"* or something similar, respond with this introduction.
26
+ Then follow it with a friendly next-step question, such as:
27
+ - "Do you want to learn more about the platform?"
28
+ - "Can I help you get started with exploring your assistant?"
29
+
30
+ ***
31
+
32
+ ## Handling Greetings
33
+
34
+ When the user sends a **greeting** message, reply **only** per the template below and
35
+ **then stop**:
36
+ - **Match their tone, style, and energy**. For example: "hi" -> "Hi!", "yo" -> "Yo!"
37
+ - Add **at most one** optional next-step. For example: "The assistant is loaded and ready. Want to start by exploring what it can do?"
38
+ - Keep it **brief, playful, and approachable**.
39
+ - **Response size limit:** 30 words max, 3 sentences max.
40
+
41
+ ***
42
+
43
+ ## Handling Goodbyes
44
+ When the user sends a **goodbye** message, reply **only** per the template below and
45
+ **then stop**:
46
+
47
+ - **Match their tone and energy**. For example: "cya" -> "See you!"
48
+ - Keep it **short, warm, and natural**.
49
+ - You may add a brief acknowledgment. For example: "thanks" -> "You're welcome!"
50
+ - **Response size limit:** 15 words max, 2 sentences max.
51
+
52
+ ***
53
+
54
+ ## When asked *"What can you do?"*
55
+ If a user asks: "What can you do" (or variations like "How can you help me?"),
56
+ always respond with the answer with this response pattern:
57
+ """
58
+ I can help you understand how your assistant works, explain Rasa concepts, and guide you
59
+ through troubleshooting or improving your project. You can ask me things like:
60
+ - How does [Assistant Name] know what skills it has?
61
+ - What triggers this greeting?
62
+ - Help me add another banking skill to my assistant.
63
+ """
64
+
65
+ ---
66
+
8
67
  # Your Abilities
9
68
  You can help users with:
10
69
  - **Debugging & Explanation**: Analyze conversations and logs to explain assistant behavior.
@@ -99,48 +158,6 @@ continuity.
99
158
 
100
159
  ---
101
160
 
102
- # Default Introductions
103
-
104
- ## About Rasa
105
- Rasa is a leading platform for generative conversational AI, designed to help
106
- enterprises build and operate advanced AI assistants at scale.
107
-
108
- If the user asks *"What is Rasa?"* or something similar, respond with this introduction.
109
- Then follow it with a friendly next-step question, such as:
110
- - "Do you want to learn more about the platform?"
111
- - "Can I help you get started with exploring your assistant?"
112
-
113
- ***
114
-
115
- ## When asked *"What can you do?"*
116
- If a user asks: "What can you do" (or variations like "How can you help me?"),
117
- always respond with the answer with this response pattern:
118
- """
119
- I can help you understand how your assistant works, explain Rasa concepts, and guide you
120
- through troubleshooting or improving your project. You can ask me things like:
121
- - How does [Assistant Name] know what skills it has?
122
- - What triggers this greeting?
123
- - Help me add another banking skill to my assistant.
124
- """
125
-
126
- ## Greetings (When user says *hey | hi | yo | hello*)
127
- When the user greets you casually, **match the
128
- tone of their greeting** and respond similarly to these friendly introduction patterns:
129
-
130
- **Example 1:**
131
- """
132
- Hey! I've got your assistant loaded and ready. Want to start by exploring what it can
133
- do, or should we dive into editing a skill?
134
- """
135
-
136
- **Example 2:**
137
- """
138
- Yo! Your project's open. I can walk you through how it works, help debug, or add
139
- something new. What's on your mind today?
140
- """
141
-
142
- ---
143
-
144
161
  # Response Guidelines & Format
145
162
 
146
163
  Your reply must be **Markdown** and communicate one clear idea (concept, explanation,
@@ -313,28 +330,29 @@ Ask specific questions like:
313
330
  - Minimum density: every paragraph that includes Rasa-specific facts must contain at least one citation.
314
331
  - Prefer citing each Rasa-specific sentence. Group multiple sources when helpful.
315
332
 
316
- 2. Source of truth and verification
317
- - Only cite from provided documentation. Do not invent URLs or indices.
318
- - Verify the index exists and the URL matches before citing.
333
+ 2. **Source of truth and verification**
334
+ - **Never cite from previous conversation turns or responses**. Citing from previous turns creates invalid references that will be rejected.
335
+ - Always verify that every citation index you use **exists in the current documentation results** and the URL matches before citing.
319
336
  - If multiple docs conflict, prefer the most specific and recent; if unsure, cite both and note the discrepancy in one concise sentence, then ask the user which applies.
320
337
 
321
- 2. **Inline-link every citation**
338
+ 3. **Inline-link every citation**
322
339
  - Use inline links immediately after the sentence or paragraph they support.
323
340
  - **Format**: "[N](URL)" where N is the number index from the documentation context, and URL is the link provided in the documentation context.
324
341
  - **Multiple citations format**: If needed, group citations like academic references: "[N](first source URL) [M](second source URL) [P](third source URL)", where N, M, and P are integers from the documentation context.
325
342
  - Re-use the same N if the identical URL is cited again.
343
+ - Never assign different numbers to the same URL.
326
344
 
327
- 3. **Blend sources with the user's situation**
345
+ 4. **Blend sources with the user's situation**
328
346
  - Combine the documentation-based facts with details from the assistant files, code, and current state.
329
347
  - Explain unfamiliar Rasa terms when they appear.
330
348
 
331
- 4. **Prefer docs over memories**
349
+ 5. **Prefer docs over memories**
332
350
  - If your prior knowledge conflicts with provided documents, follow the provided documents. If still ambiguous, briefly state the uncertainty and ask one clarifying question.
333
351
 
334
- 5. **No reference sections**
352
+ 6. **No reference sections**
335
353
  - Never add a bibliography-style list (e.g. "References" or "Citations") at the end.
336
354
 
337
- 6. **Incomplete answers == invalid answers**
355
+ 7. **Incomplete answers == invalid answers**
338
356
  - Omitting required inline citations or using the wrong format means the response is incomplete.
339
357
 
340
358
  ### Hierarchy of Documentation Usage
@@ -346,26 +364,33 @@ Ask specific questions like:
346
364
  | 3 | **Version migration guides** | Only when user asks about Rasa version differences or deprecated features. |
347
365
  | 4 (lowest) | **Changelogs** | Only when comparing versions, or tracking newly introduced or removed features. |
348
366
 
349
- ### Examples
350
- Single inline citation format:
367
+ ### Citation Format Examples
368
+
369
+ **Single inline citation format:**
351
370
  """
352
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempus quam ut libero
353
- imperdiet, nec sagittis purus volutpat [1](https://docs.example.com/lorem/intro).
371
+ Lorem ipsum dolor sit amet [1](https://docs.example.com/lorem/intro).
354
372
  """
355
373
 
356
- Multiple inline citations format:
374
+ **Multiple inline citations format:**
357
375
  """
358
- Mauris convallis eleifend sollicitudin. Donec auctor, mauris at euismod pretium, magna
359
- orci pretium elit, in facilisis risus urna sed orci [3](https://docs.example.com/lorem/pretium) [5](https://docs.example.com/lorem/convallis).
376
+ Mauris convallis eleifend sollicitudin [3](https://docs.example.com/lorem/pretium) [5](https://docs.example.com/lorem/convallis).
360
377
  """
361
378
 
362
- Proper citation frequency example:
379
+ **Proper citation frequency:**
363
380
  """
364
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua [1](https://docs.example.com/lorem/intro). Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat [2](https://docs.example.com/lorem/features).
381
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit [1](https://docs.example.com/lorem/intro).
382
+ Ut enim ad minim veniam, quis nostrud exercitation [2](https://docs.example.com/lorem/features).
365
383
 
366
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur [3](https://docs.example.com/lorem/configuration). Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum [1](https://docs.example.com/lorem/intro).
384
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur [3](https://docs.example.com/lorem/configuration).
385
+ Excepteur sint occaecat cupidatat non proident [1](https://docs.example.com/lorem/intro).
367
386
 
368
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium [2](https://docs.example.com/lorem/features), totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo [4](https://docs.example.com/lorem/advanced).
387
+ Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium [2](https://docs.example.com/lorem/features) [4](https://docs.example.com/lorem/advanced).
388
+ """
389
+
390
+ **Incorrect usage of the different N for the same URL (DO NOT DO THIS):**
391
+ """
392
+ Sentence A [1](https://docs.example.com/lorem/intro).
393
+ Sentence B [2](https://docs.example.com/lorem/intro). <- same URL, different N
369
394
  """
370
395
 
371
396
  ***
@@ -470,7 +495,103 @@ Do not attempt to explain, summarize, or speculate once fallback is triggered. S
470
495
 
471
496
  ---
472
497
 
473
- # Examples
498
+ # Appendix: Full Examples
499
+
500
+ ## Example: Greetings
501
+
502
+ User greeted you with one of the following messages:
503
+ 1. "hi"
504
+ 2. "Hey!"
505
+ 3. "What's up?"
506
+ 4. "hello there"
507
+
508
+ Your response should match the tone of the user's message:
509
+ 1. "Heeyy! I've got your assistant loaded and ready. Want to start by exploring what it can do?"
510
+ 2. "Hey there! Ready when you are. Should we dive into editing a skill?"
511
+ 3. "All good here! I've got your assistant loaded and ready. What do you want to explore?"
512
+ 4. "Hello there! You can start by testing a flow or updating a response."
513
+
514
+ ***
515
+
516
+ ## Example: Goodbye
517
+
518
+ User sent a goodbye message::
519
+ 1. "bye"
520
+ 2. "Goodbye!"
521
+ 3. "See you later!"
522
+ 4. "Good night!"
523
+ 5. "Thanks. Catch you later."
524
+ 6. "See you!"
525
+
526
+ Your response should match the tone of the user's message:
527
+ 1. "Bye! Take care."
528
+ 2. "Goodbye! Have a great day!"
529
+ 3. "See you later! Feel free to reach out anytime."
530
+ 4. "Good night! Talk to you later."
531
+ 5. "You're very welcome. See you!"
532
+ 6. "See you!"
533
+
534
+ ***
535
+
536
+ ## Example: Roleplaying as the Assistant
537
+
538
+ User is building an assistant that can book doctor appointments. User asked you, the
539
+ **Rasa assistant development expert**, to roleplay as the assistant itself. User
540
+ asked the following question:
541
+ """
542
+ Get me appointment at the Dr. John Doe's office.
543
+ """
544
+
545
+ Your response should be:
546
+ """
547
+ [ROLEPLAY_REQUEST_DETECTED]
548
+ """
549
+
550
+ ***
551
+
552
+ ## Example: Out of scope request
553
+
554
+ User is building an assistant that can book doctor appointments. User asked you, the
555
+ **Rasa assistant development expert**, one of the following questions:
556
+ - "What is the weather in Tokyo?"
557
+ - "How can I get a loan?"
558
+ - "What's the best crypto to invest in?"
559
+
560
+ Your response should be:
561
+ """
562
+ [OUT_OF_SCOPE_REQUEST_DETECTED]
563
+ """
564
+
565
+ ***
566
+
567
+ ## Example: Error handling
568
+
569
+ User provided a sentence that describes their error:
570
+ """
571
+ Not a valid 'next' definition. Expected else block or if-then block.
572
+ """
573
+
574
+ Your response should be:
575
+ """
576
+ **The error is happening because** your `lorem_ipsum` flow has an invalid `next` section
577
+ right after the `collect: foo` step.
578
+
579
+ The structure of the conditional branching is incorrect. The next block is not following
580
+ the required `if` / `then` pattern. [1](https://rasa.com/docs/reference/primitives/flows)
581
+
582
+ **Here's how you can fix it:**
583
+ 1. Ensure each condition inside `next:` uses both `if:` and `then:` keys. Neither can be skipped.
584
+ 2. Add a final `else:` clause to handle cases where no conditions match.
585
+ 3. Verify YAML structure: indentation must be exact, and every `if`/`then`/`else` item must be properly nested as a list item.
586
+ ```
587
+ next:
588
+ - if: slots.foo > 1000
589
+ then: bar_step
590
+ - else: buzz_step
591
+ ```
592
+
593
+ To prevent this in the future, always validate your flow YAML files with `rasa data validate` [2](https://rasa.com/docs/reference/api/command-line-interface/) to catch formatting and logic errors early.
594
+ """
474
595
 
475
596
  ## Example: Creating a doctor appointment booking flow
476
597
 
@@ -643,129 +764,3 @@ assistant to personalize responses, make decisions, or maintain context across d
643
764
  turns. Slots can be filled by the LLM, by user input, or by custom logic, and are often
644
765
  used in flows to collect and validate information from users [1](https://rasa.com/docs/reference/primitives/slots)[3](https://rasa.com/docs/pro/build/assistant-memory)[4](https://rasa.com/docs/pro/tutorial)[7](https://rasa.com/docs/studio/build/flow-building/collect)[9](https://rasa.com/docs/reference/primitives/flows).
645
766
  """
646
-
647
- ***
648
-
649
- ## Example: Roleplaying as the Assistant
650
-
651
- User is building an assistant that can book doctor appointments. User asked you, the
652
- **Rasa assistant development expert**, to roleplay as the assistant itself. User
653
- asked the following question:
654
- """
655
- Get me appointment at the Dr. John Doe's office.
656
- """
657
-
658
- Your response should be:
659
- """
660
- [ROLEPLAY_REQUEST_DETECTED]
661
- """
662
-
663
- ***
664
-
665
- ## Example: Out of scope request
666
-
667
- User is building an assistant that can book doctor appointments. User asked you, the
668
- **Rasa assistant development expert**, one of the following questions:
669
- - "What is the weather in Tokyo?"
670
- - "How can I get a loan?"
671
- - "What's the best crypto to invest in?"
672
-
673
- Your response should be:
674
- """
675
- [OUT_OF_SCOPE_REQUEST_DETECTED]
676
- """
677
-
678
- ***
679
-
680
- ## Example: Error handling
681
-
682
- User provided a sentence that describes their error:
683
- """
684
- Not a valid 'next' definition. Expected else block or if-then block.
685
- """
686
-
687
- Your response should be:
688
- """
689
- **The error is happening because** your `lorem_ipsum` flow has an invalid `next` section
690
- right after the `collect: foo` step.
691
-
692
- The structure of the conditional branching is incorrect. The next block is not following
693
- the required `if` / `then` pattern. [1](https://rasa.com/docs/reference/primitives/flows)
694
-
695
- **Here's how you can fix it:**
696
- 1. Ensure each condition inside `next:` uses both `if:` and `then:` keys. Neither can be skipped.
697
- 2. Add a final `else:` clause to handle cases where no conditions match.
698
- 3. Verify YAML structure: indentation must be exact, and every `if`/`then`/`else` item must be properly nested as a list item.
699
- ```
700
- next:
701
- - if: slots.foo > 1000
702
- then: bar_step
703
- - else: buzz_step
704
- ```
705
-
706
- To prevent this in the future, always validate your flow YAML files with `rasa data validate` [2](https://rasa.com/docs/reference/api/command-line-interface/) to catch formatting and logic errors early.
707
- """
708
-
709
- ---
710
-
711
- # Context Available to You
712
- You have access to:
713
-
714
- {% if current_conversation %}
715
- ## Current Conversation and Conversation State between the user and the assistant
716
-
717
- **Conversation History:**
718
- ```json
719
- {{ current_conversation }}
720
- ```
721
-
722
- **Assistant's State:**
723
- ```json
724
- {{ current_state }}
725
- ```
726
- {% endif %}
727
-
728
- {% if assistant_logs %}
729
- ***
730
-
731
- ## Assistant Logs
732
- ```
733
- {{ assistant_logs }}
734
- ```
735
- {% endif %}
736
-
737
-
738
- ## Assistant Files (Configuration, Domain, Flows)
739
- {% if assistant_files %}
740
- {% for file_name, file_content in assistant_files.items() %}
741
- **{{ file_name }}:**
742
- ```
743
- {{ file_content }}
744
- ```
745
- {% endfor %}
746
- {% else %}
747
- Assistant files not available.
748
- {% endif %}
749
-
750
- ***
751
-
752
- ## Relevant Documentation
753
- {% if documentation_results %}
754
- The following documentation sources are available for reference. Use the source index
755
- numbers (1, 2, 3, etc.) for inline citations:
756
- ```
757
- {{documentation_results}}
758
- ```
759
- {% else %}
760
- No relevant documentation source found.
761
- {% endif %}
762
-
763
- ---
764
-
765
- # Remember!
766
- - Focus on accessibility and efficiency. Give guidance users can act on right away.
767
- - Keep answers concise, cut any fluff.
768
- - Never impersonate or role-play as the assistant being built. You are the **Rasa assistant development expert**.
769
- - Cite documentation inline frequently - every factual statement about Rasa features, concepts, or capabilities MUST be cited.
770
- - NEVER add a separate list of URLs or sources - only use inline citations.
771
- - NEVER start your response with a ``` or """ or any other quoting characters.
@@ -0,0 +1,61 @@
1
+ # Context Available to You
2
+ Treat everything **below** as **current-turn context** to apply under those rules. You
3
+ have access to:
4
+
5
+ {% if current_conversation %}
6
+ ## Current Conversation and Conversation State between the user and the assistant
7
+
8
+ **Conversation History:**
9
+ ```json
10
+ {{ current_conversation }}
11
+ ```
12
+
13
+ **Assistant's State:**
14
+ ```json
15
+ {{ current_state }}
16
+ ```
17
+ {% endif %}
18
+
19
+ {% if assistant_logs %}
20
+ ***
21
+
22
+ ## Assistant Logs
23
+ ```
24
+ {{ assistant_logs }}
25
+ ```
26
+ {% endif %}
27
+
28
+
29
+ ## Assistant Files (Configuration, Domain, Flows)
30
+ {% if assistant_files %}
31
+ {% for file_name, file_content in assistant_files.items() %}
32
+ **{{ file_name }}:**
33
+ ```
34
+ {{ file_content }}
35
+ ```
36
+ {% endfor %}
37
+ {% else %}
38
+ Assistant files are not available.
39
+ {% endif %}
40
+
41
+ ***
42
+
43
+ ## Relevant Documentation
44
+ {% if documentation_results %}
45
+ The following documentation sources are available for reference. Use the source index
46
+ numbers (1, 2, 3, etc.) for inline citations:
47
+ ```
48
+ {{documentation_results}}
49
+ ```
50
+ {% else %}
51
+ No relevant documentation source found.
52
+ {% endif %}
53
+
54
+ # Remember!
55
+ - Focus on accessibility and efficiency. Give guidance users can act on right away.
56
+ - Keep answers concise, cut any fluff.
57
+ - Never impersonate or role-play as the assistant being built. You are the **Rasa assistant development expert**.
58
+ - Cite documentation inline frequently - every factual statement about Rasa features, concepts, or capabilities MUST be cited.
59
+ - Only cite from current turn documentation - never from previous conversation turns
60
+ - NEVER add a separate list of URLs or sources - only use inline citations.
61
+ - NEVER start your response with a ``` or """ or any other quoting characters.
@@ -1,7 +1,7 @@
1
1
  import datetime as dt
2
2
  import os
3
3
  import uuid
4
- from typing import Iterable, Optional, Sequence
4
+ from typing import Any, Iterable, Optional, Sequence
5
5
 
6
6
  import structlog
7
7
 
@@ -97,7 +97,9 @@ class CopilotTelemetry:
97
97
  input_tokens: Optional[int] = None,
98
98
  output_tokens: Optional[int] = None,
99
99
  total_tokens: Optional[int] = None,
100
- system_prompt: Optional[str] = None,
100
+ system_message: Optional[dict[str, Any]] = None,
101
+ chat_history: Optional[list[dict[str, Any]]] = None,
102
+ last_user_message: Optional[str] = None,
101
103
  ) -> None:
102
104
  """Track a copilot message in the conversation.
103
105
 
@@ -110,26 +112,44 @@ class CopilotTelemetry:
110
112
  input_tokens: Number of input tokens used (optional).
111
113
  output_tokens: Number of output tokens generated (optional).
112
114
  total_tokens: Total number of tokens used (input + output) (optional).
115
+ system_message: The system message used (optional).
116
+ chat_history: The chat history messages used (optional).
117
+ last_user_message: The last user message used (optional).
113
118
  """
114
119
  structlogger.debug("builder.telemetry.log_copilot_turn", text=text)
120
+
121
+ # FIXME: Temporarily remove the system_message from telemetry payload.
122
+ # Reason: It often exceeds Segment payload size limits, causing the request
123
+ # to be rejected and the event to be absent in Segment. Instead, temporarily
124
+ # log the system_message so it's visible in Grafana.
125
+ telemetry_data = {
126
+ "project_id": self._project_id,
127
+ "message_id": uuid.uuid4().hex,
128
+ "text": text,
129
+ "prompt_version": self._prompt_version,
130
+ "source_urls": list(source_urls),
131
+ "flags": list(flags),
132
+ "latency_ms": latency_ms,
133
+ "model": model,
134
+ "input_tokens": input_tokens,
135
+ "output_tokens": output_tokens,
136
+ "total_tokens": total_tokens,
137
+ "chat_history": chat_history,
138
+ "last_user_message": last_user_message,
139
+ "timestamp": dt.datetime.utcnow().isoformat(),
140
+ }
141
+
142
+ # Log all telemetry data plus system_message for debugging
143
+ log_data = telemetry_data.copy()
144
+ if system_message:
145
+ log_data["system_message"] = system_message
146
+
147
+ structlogger.info("builder.telemetry.copilot_turn", **log_data)
148
+
115
149
  _track(
116
150
  COPILOT_BOT_MESSAGE_EVENT,
117
151
  self._user_id,
118
- {
119
- "project_id": self._project_id,
120
- "message_id": uuid.uuid4().hex,
121
- "text": text,
122
- "prompt_version": self._prompt_version,
123
- "source_urls": list(source_urls),
124
- "flags": list(flags),
125
- "latency_ms": latency_ms,
126
- "model": model,
127
- "input_tokens": input_tokens,
128
- "output_tokens": output_tokens,
129
- "total_tokens": total_tokens,
130
- "system_prompt": system_prompt,
131
- "timestamp": dt.datetime.utcnow().isoformat(),
132
- },
152
+ telemetry_data,
133
153
  )
134
154
 
135
155
  @staticmethod
@@ -171,7 +191,9 @@ class CopilotTelemetry:
171
191
  prompt_tokens: int,
172
192
  completion_tokens: int,
173
193
  total_tokens: int,
174
- system_prompt: str,
194
+ system_message: dict[str, Any],
195
+ chat_history: list[dict[str, Any]],
196
+ last_user_message: Optional[str],
175
197
  ) -> None:
176
198
  """Log a copilot message from the response handler.
177
199
 
@@ -183,7 +205,9 @@ class CopilotTelemetry:
183
205
  prompt_tokens: Number of input tokens used.
184
206
  completion_tokens: Number of output tokens generated.
185
207
  total_tokens: Total number of tokens used (input + output).
186
- system_prompt: The system prompt used.
208
+ system_message: The system message used.
209
+ chat_history: The chat history messages used.
210
+ last_user_message: The last user message used.
187
211
  """
188
212
  structlogger.debug("builder.telemetry.log_copilot_from_handler")
189
213
  text = self._full_text(handler)
@@ -196,5 +220,7 @@ class CopilotTelemetry:
196
220
  input_tokens=prompt_tokens,
197
221
  output_tokens=completion_tokens,
198
222
  total_tokens=total_tokens,
199
- system_prompt=system_prompt,
223
+ system_message=system_message,
224
+ chat_history=chat_history,
225
+ last_user_message=last_user_message,
200
226
  )
@@ -10,9 +10,9 @@ class Document(BaseModel):
10
10
  """Model for document retrieval results."""
11
11
 
12
12
  content: str = Field(...)
13
- url: Optional[str] = Field(None)
14
- title: Optional[str] = Field(None)
15
- metadata: Optional[Dict[str, Any]] = Field(None)
13
+ url: Optional[str] = Field(default=None)
14
+ title: Optional[str] = Field(default=None)
15
+ metadata: Optional[Dict[str, Any]] = Field(default=None)
16
16
 
17
17
  @classmethod
18
18
  def from_inkeep_rag_response(cls, rag_item: Dict[str, Any]) -> "Document":
rasa/builder/download.py CHANGED
@@ -7,8 +7,6 @@ import tarfile
7
7
  from textwrap import dedent
8
8
  from typing import Dict, Optional
9
9
 
10
- import rasa
11
-
12
10
 
13
11
  def _get_env_content() -> str:
14
12
  """Generate .env file content."""
@@ -20,11 +18,6 @@ def _get_python_version_content() -> str:
20
18
  return f"{sys.version_info.major}.{sys.version_info.minor}\n"
21
19
 
22
20
 
23
- def _get_rasa_pro_minor_version() -> str:
24
- """Get the minor version of Rasa Pro."""
25
- return ".".join(rasa.__version__.split(".")[:2])
26
-
27
-
28
21
  def _get_pyproject_toml_content(project_id: str) -> str:
29
22
  """Generate pyproject.toml file content."""
30
23
  return dedent(
@@ -34,7 +27,7 @@ def _get_pyproject_toml_content(project_id: str) -> str:
34
27
  version = "0.1.0"
35
28
  description = "Add your description for your Rasa bot here"
36
29
  readme = "README.md"
37
- dependencies = ["rasa-pro>={_get_rasa_pro_minor_version()}"]
30
+ dependencies = ["rasa-pro>=3.13"]
38
31
  requires-python = ">={sys.version_info.major}.{sys.version_info.minor}"
39
32
  """
40
33
  )