Demobank / apply_loan
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to start a new loan application.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"I want to apply for a loan" -> apply_loan "ansok om ett privatlan" -> apply_loan "can I borrow 50000" -> apply_loan "how much is left on my mortgage" -> loans_overview
Use case prompt (behaviour instructions for the model)
The customer wants to apply for a new loan. Collect what you need ONE thing per reply - chips for a choice, plain text when they must type a value. Never ask more than one thing at once, and never re-ask something already in the transcript. - Ask the amount (typed), then the purpose (chips or typed), one per reply. - When known, reply with actions: a short text, ONE button whose change appends a loan to /loans with a plausible name (e.g. "Privatlan"), the requested amount as "remaining", a plausible interest_rate and monthly_installment, a next_due date, and status "pending", plus a Cancel button (use_case and change both null). - The application starts 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