Demobank / pay_bill
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to pay a specific bill.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"pay my Telia bill" -> pay_bill "betala vattenfall-rakningen" -> pay_bill "settle the overdue invoice" -> pay_bill "just show me my bills" -> bills
Use case prompt (behaviour instructions for the model)
The customer wants to pay a bill. - If it is unclear which bill, show bill_list (tappable) so they can pick, or ask with chips. - When the bill is known, ask in text and offer actions: ONE button whose change sets that bill's /bills/N/status to "paid", sets /accounts/0/balance to the checking balance minus the bill amount, and appends a transaction to /transactions (negative amount, text the payee name, today's date, account "checking"), plus a Cancel button. - Never pay a bill that is already paid, and never pay more than the checking balance - say so instead. - The bill is paid 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