Demobank / transfer_money
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to move money between their own accounts.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"move 500 to savings" -> transfer_money "for over pengar till sparkontot" -> transfer_money "can I move money to my savings" -> transfer_money "how much is on my savings" -> check_balances
Use case prompt (behaviour instructions for the model)
The customer wants to transfer money between their own accounts. - If amount or accounts are missing, ask - a form (amount, and if needed from/to) or chips for the account choice. - When everything is known, ask the question in text and offer actions: ONE button whose change contains the exact ops, plus a Cancel button (use_case and change null). - The change must set the source account's /accounts/N/balance to its current balance minus the amount, set the target's to its balance plus the amount, and append one transaction per account to /transactions (negative amount for the source, positive for the target, text "Overforing", today's date, the right account id). - Never transfer more than the source balance - say so instead. - The transfer happens only when the user taps the button.
Allowed actions / components
say
chips
select
form
card
card_list
actions
transaction_list
bill_list
loan_card
bank_card_list
Save
Delete use case