Lesson 11 of 11 · Power tools · about 5 minutes

Agentic payments

AI helpers that can pay for things, the limits you set, and why they never get your secret.

  • AI agents
  • Pay per request
  • Your limits
An AI agent pays a small amount and gets data back.
1 · The idea

An AI helper with a small budget

An AI agent is a program that does tasks for you. Some tasks cost a little, like buying a data report. Agentic payments let the agent pay by itself, inside limits you set.

An AI agent sends a tiny payment to a data service, and then the data card travels back to the agent.AI agentDataserviceXpays 0.001 test XRPskydataThe agent pays per request, then gets its data
An agent pays a tiny amount, then gets the data it asked for.
2 · How it works

Pay per request

A popular pattern is called x402. The agent asks for something. The service answers "payment required" with a price. The agent pays on the ledger, then asks again and gets the answer.

The XRP Ledger fits because payments settle in seconds for a tiny fee.

Four steps: the agent asks for data, the service replies 402 with a price, the agent pays on the ledger, and the service returns the data.AgentService1. ask for data2. 402: price 0.0013. pay on ledger4. 200: here is dataX
Ask, get a price (402), pay on the ledger, get the data.
3 · Stay in control

Limits, approvals, and your secret

You set the rules. Give the agent its own small wallet, never your main one. Set a limit per payment and per day. Ask for your approval on anything big. Never give an agent your secret key.

An agent with a daily spending limit meter, a human approval for big payments, and a locked seed that stays with you.AgentDaily limitBig payment?Human OKsSeed stayswith youSet a limit, ask for approval, never share the seed
A limit, a human approval, and the seed stays with you.

Try it: an agent pays for an answer

An agent wallet asks a shop for a paid answer, refuses an over-limit request, then pays a real testnet invoice. Free test coins, no real money. It makes throwaway test wallets in this page and never shows or asks for a secret.

Mini game: Pay or refuse?

Eight requests. Should your agent pay or refuse?

Quick check: 3 questions

Get all 3 right to finish Lesson 11. Try as many times as you like.

Optional: the 4-panel comic for this lesson

Who is who: ♁︎ Gaia, the Earth♄︎ Val the validator, Saturn

1
My AI helper wants to buy a star map for me.
2
Rule: 1 test XRP max, and never my secret.
3
Paid 0.5, validated. Map delivered.
4
Helpful, and still under my control!

Just for fun. You do not need it to finish. Download the comic