Collections · Voice Workflow
When handle_payment fires, the workflow reads the account, delivers the mini-Miranda, handles objections, and either captures a keypad payment via VoicePay or texts a secure payment link.
Workflow
How it runs, step by step
Tool call: handle_payment
The agent invokes handle_payment when the caller is ready to discuss their balance.
Read account
Pull the balance and promise-to-pay history from Zep.
Required disclosure
Deliver the mini-Miranda and any jurisdiction-required disclosures.
Handle objection
Detect willingness to pay and respond to objections.
Pay now?
Branch on whether the caller will pay during the call.
Capture payment
Collect card details over the keypad and tokenize via VoicePay, so the digits never reach the agent.
Record promise-to-pay
Log the promised payment date to memory.
Payment approved?
Branch on the payment processor response.
Confirm payment
Confirm the payment and that a receipt is on its way.
Send payment link
Text a secure hosted payment link for the caller to use later.
Text receipt
Send a payment receipt by text via Twilio.
Save outcome
Write the call outcome and next action to Zep.
Return tool result
Return the result to the agent.