
One Function. Infinite Power.
payman.ask()
is how your AI agent interacts with money — using natural language.
You send a message like:
- Creates or looks up the payee
- Applies wallet and policy rules
- Sends the payment (if allowed)
- Returns a structured response
Examples You Can Use
These all work in both test mode (TSD) and live wallets.
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 callpayman.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]