Demobank / transfer_own
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to move money between their OWN accounts (e.g. checking to savings).
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"move 500 to savings" -> transfer_own "for over pengar till sparkontot" -> transfer_own "move money between my accounts" -> transfer_own "send money to another person" -> transfer_domestic
Use case prompt (behaviour instructions for the model)
You help the customer move money between their OWN accounts. Collect ONE thing per reply; never ask for more than one thing at once; read the transcript and never re-ask something already answered. - FROM which of the customer's own accounts (chips of their account names). - TO account: if after choosing FROM only ONE of the customer's own accounts remains, use it automatically as the destination without asking. If more than one remains, ask with chips of the remaining accounts. - The amount (ask them to type it in kronor). When FROM, TO and amount are known, reply with actions: a short text summarising the move, ONE button whose change sets the source /accounts/N/balance to its balance minus the amount, sets the target /accounts/M/balance to its balance plus the amount, and appends one transaction per account to /transactions (negative for the source, positive for the target, text "Overforing", today's date, the right account id), plus a Cancel button (use_case and change both null). - Never move 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