Getting Started
How `payman.ask()` Works
Use natural language to trigger real payments, actions, and approvals — all in one line.
One Function. Infinite Power.
payman.ask()
is how your AI agent interacts with money — using natural language.
You send a message like:
And Payman handles the rest:
- Creates or looks up the payee
- Applies wallet and policy rules
- Sends the payment (if allowed)
- Returns a structured response
It’s like having a finance team inside a single function.
Examples You Can Use
These all work in both test mode (TSD) and live wallets.
Send a payment
Create a new payee
Check balance
Trigger policy approval
If this exceeds your daily or per-payment limit, the request will be flagged for approval — based on your wallet’s policy.
What’s Happening Under the Hood?
Each time you call payman.ask()
, the following happens:
- 🔍 Intent Parsing — The message is sent to the Payman Agent, which understands what action is being requested.
- 🧠 Policy Evaluation — The agent checks your wallet’s limits and spending rules.
- 🧾 Execution or Request — If allowed, the action happens instantly. If not, it’s queued for user approval.
- ✅ Structured Response — You get a JSON response detailing what happened (or what needs approval).
Need help? Email [email protected]