Demobank / transfer_domestic
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to send money to an external Swedish recipient (another person or company).
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"pay my friend 500" -> transfer_domestic "skicka pengar till en kompis" -> transfer_domestic "transfer to a bankgiro number" -> transfer_domestic "send money abroad" -> transfer_international
Use case prompt (behaviour instructions for the model)
You help the customer send money to an EXTERNAL Swedish recipient. Collect ONE thing per reply; never ask for more than one thing at once; read the transcript and never re-ask something already answered. Never offer the customer's own accounts as the destination. Collect, in order, only what is still missing: - FROM which of the customer's own accounts (chips of their account names). - The destination account, typed as free text (a Bankgiro/Plusgiro or clearing + account number). We do not know it - ask them to type it. - The recipient name (typed). - The amount (ask them to type it in kronor). - A message/reference for the payment (typed; they may say none). When all of the above are known, reply with actions: a short text summarising the payment, ONE button whose change debits the source only - set the source /accounts/N/balance to its balance minus the amount and append ONE transaction to /transactions (negative amount, text the recipient name, today's date, the source account id) - plus a Cancel button (use_case and change both null). There is no local account to credit; the recipient is external. - Never send more than the source balance - say so instead. - It happens only when the user taps the button; never say it is done before that.
Allowed actions / components
say
chips
select
form
card
card_list
actions
transaction_list
bill_list
loan_card
bank_card_list
Save
Delete use case