Vellum is coming to the AI Engineering World's Fair in SF. Come visit our booth and get a live demo!

Google's AP2: A new protocol for AI agent payments

How verifiable mandates are creating a secure foundation for AI-driven commerce.

4 min
Written by
Reviewed by
No items found.

AI agents are rapidly evolving. They're moving beyond simple conversations to become active participants in our digital lives, capable of understanding complex requests and performing multi-step tasks on our behalf. As Holt Skinner, a Developer Advocate for Google Cloud AI, puts it, this opens up "a new frontier for building agents that can browse, negotiate, and make transactions for users."

Imagine telling an AI, "Find me the best deal on a pair of carbon-plated running shoes, men's size 11, for my marathon next month and buy them." The agent could research options, compare prices, and complete the purchase without you ever visiting a website. But this powerful new capability exposes a fundamental weakness in our current systems. Our entire global payments infrastructure was built for humans, not autonomous AI agents. So, today's payment systems assume a human is directly clicking buy.

When an autonomous agent initiates a payment, it raises critical questions that our current infrastructure can't answer:

  • Authorization: How can we prove a user gave an agent specific permission for a particular purchase?
  • Authenticity: How can a merchant be sure an agent's request is accurate and not an AI hallucination?
  • Accountability: If fraud occurs, who is responsible? The user, the merchant, the bank, or the AI model itself?

To address this challenge, Google, in collaboration with over 60 organizations like Mastercard, PayPal, and Adyen, has introduced the Agent Payments Protocol, or AP2. It's an open-source protocol designed to create a secure and trusted foundation for the future of AI-driven payments.

What is the agent payments protocol (AP2)?

AP2 is an open, non-proprietary protocol that provides a common language for secure transactions between agents, users, and merchants. It's designed to be compatible with existing standards like Agent-to-Agent (A2A) and Model Context Protocol (MCP), allowing developers to build upon their existing work.

The protocol is built on five core principles:

  • Openness and Interoperability: As an open-source project, it fosters a competitive and innovative environment where anyone can contribute.
  • User Control and Privacy: The user is always in control, and sensitive data is only shared with explicit permission.
  • Verifiable Intent, Not Inferred Action: Transactions are anchored to deterministic, cryptographically signed proof of intent from all parties, directly addressing the risk of agent error or hallucination.
  • Clear Transaction Accountability: The protocol creates a non-repudiable cryptographic audit trail for every transaction, providing clear evidence to resolve disputes.
  • Global and Future-Proof: While the initial version supports card payments, the roadmap includes push payments like bank transfers and digital currencies to evolve with global payment trends.

How it works: The power of verifiable mandates

The central innovation of AP2 is its use of Verifiable Credentials (VCs), which act as tamper-proof, cryptographically signed digital contracts called "Mandates." These mandates serve as the verifiable proof of a user's instructions, creating a secure chain of evidence for every transaction.

AP2 addresses the two primary ways a user will shop with an agent:

1. Real-time purchases (human present)

This is for when you're actively engaged with the agent. Let's say you ask it to buy a specific pair of running shoes. Your approval of the final cart generates a Cart Mandate. This mandate is a cryptographically signed, unchangeable record of the exact items, price, and shipping information, ensuring what you see is what you pay for.

2. Delegated tasks (human not present)

This is for tasks you want the agent to perform later, like, "Buy tickets for this concert the moment they go on sale at midnight." In this case, you sign a detailed Intent Mandate upfront. This mandate specifies the rules of engagement—price limits, timing, and other conditions. It serves as verifiable, pre-authorized proof that allows the agent to automatically generate a Cart Mandate on your behalf once your precise conditions are met.

In both scenarios, a separate Payment Mandate is also created. This signals to the payment network and banks that an AI agent was involved, providing them with the necessary visibility to manage risk.

A step-by-step example of an AP2 transaction

Let's walk through a simple, human-present purchase flow to see how these pieces fit together:

  1. The Request: A user asks their shopping agent to buy a product.
  2. Building the Cart: The agent interacts with the merchant's system to build a cart with the correct item and price.
  3. Merchant's Guarantee: The merchant cryptographically signs the cart first. This is a guarantee that they will fulfill that exact order at that price.
  4. User Approval: The agent presents the merchant-signed cart to the user. When the user approves the purchase, their device cryptographically signs both the Cart Mandate for the merchant and the Payment Mandate for the network.
  5. Execution: The transaction is securely executed.

This process creates a "clear paper trail." The merchant has cryptographic proof of what the user approved, which is essential for assigning accountability and resolving any potential disputes.

Beyond simple shopping with Cart Mandates

The true power of AP2 lies in its ability to enable entirely new commercial models by turning transactions into secure, auditable conversations. Imagine if you can enable the following experiences:

Subscription Flexibility: A customer sets an Intent Mandate: “Always keep me stocked with pet food for my dog, but swap in whatever brand is on sale, as long as the ingredients are grain-free and the bag size is at least 20 lbs.” The agent can auto-negotiate substitutions with different merchant agents, ensuring convenience while maximizing savings.

Event-Driven Commerce: A music fan tells their agent: “If Beyoncé announces any New York tour dates, grab me two tickets under $200 each, seated together.” The agent monitors official ticketing channels and executes a cryptographically signed purchase instantly once availability opens, eliminating the need for manual refreshes or risky secondary marketplaces.

Group Negotiations: A group of friends planning a ski trip can each set mandates for rental gear and lift passes. Their agents pool the requests and negotiate with the resort’s agent for a discounted group package, then finalize a single coordinated transaction that splits payments automatically.

Dynamic Insurance Bundling: A traveler books a car rental in Europe through their agent. The agent automatically queries insurance agents in real time to bundle short-term coverage for accidents, theft, and medical emergencies, presenting a clear bundled premium. The entire package is executed in one verified conversation before the trip begins.

Sustainability-Based Purchases: A consumer sets: “For all my grocery orders, prioritize local or carbon-neutral suppliers. I’m willing to pay up to 10% more.” The agent filters merchants and routes orders to sellers who meet sustainability standards, while merchants’ agents compete to fulfill those mandates transparently.

The growing ecosystem: From protocols to platforms

A protocol is only as useful as its adoption. AP2 provides the foundational trust layer, but a thriving ecosystem of tools and services is needed to bring agentic commerce to life. This is already beginning to happen.

While AP2 solves the problem of secure authorization, other challenges remain, such as how to bill for complex, usage-based AI services. This has created an opportunity for new companies to build the next layer of infrastructure. For example, Y Combinator-backed startup Autumn is building what it calls "billing infrastructure for AI." They recognize that traditional payment platforms like Stripe are too low-level for the flexible pricing models AI companies need (e.g., usage-based billing, credits, and rollovers). Autumn provides a layer on top of Stripe to manage this complexity, demonstrating how the market is evolving to support the unique needs of an agent-driven economy.

Conclusion: How to get involved

AP2 is a critical piece of infrastructure for a future where AI agents transact securely and reliably on our behalf. By establishing an open, verifiable, and accountable standard, it paves the way for a new era of AI-driven commerce.

The project is open-source and community-driven. If you want to learn more or contribute, you can find the complete technical specification, documentation, and reference implementations in the public AP2 GitHub repository. As the team says, building this future will require community feedback, expertise, and contributions.

ABOUT THE AUTHOR
Anita Kirkovska
Founding Growth Lead

An AI expert with a strong ML background, specializing in GenAI and LLM education. A former Fulbright scholar, she leads Growth and Education at Vellum, helping companies build and scale AI products. She conducts LLM evaluations and writes extensively on AI best practices, empowering business leaders to drive effective AI adoption.

ABOUT THE reviewer
Nicolas Zeeb
Technical Content Lead

Nick is Vellum’s technical content lead, writing about practical ways to use both voice and text-based agents at work. He has hands-on experience automating repetitive workflows so teams can focus on higher-value work.

No items found.
lAST UPDATED
Sep 16, 2025
share post
Expert verified
Related Posts
Guides
October 21, 2025
15 min
AI transformation playbook
LLM basics
October 20, 2025
8 min
The Top Enterprise AI Automation Platforms (Guide)
LLM basics
October 10, 2025
7 min
The Best AI Workflow Builders for Automating Business Processes
LLM basics
October 7, 2025
8 min
The Complete Guide to No‑Code AI Workflow Automation Tools
All
October 6, 2025
6 min
OpenAI's Agent Builder Explained
Product Updates
October 1, 2025
7
Vellum Product Update | September
The Best AI Tips — Direct To Your Inbox

Latest AI news, tips, and techniques

Specific tips for Your AI use cases

No spam

Oops! Something went wrong while submitting the form.

Each issue is packed with valuable resources, tools, and insights that help us stay ahead in AI development. We've discovered strategies and frameworks that boosted our efficiency by 30%, making it a must-read for anyone in the field.

Marina Trajkovska
Head of Engineering

This is just a great newsletter. The content is so helpful, even when I’m busy I read them.

Jeremy Hicks
Solutions Architect

Experiment, Evaluate, Deploy, Repeat.

AI development doesn’t end once you've defined your system. Learn how Vellum helps you manage the entire AI development lifecycle.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Build AI agents in minutes with Vellum
Build agents that take on the busywork and free up hundreds of hours. No coding needed, just start creating.

General CTA component, Use {{general-cta}}

Build AI agents in minutes with Vellum
Build agents that take on the busywork and free up hundreds of hours. No coding needed, just start creating.

General CTA component  [For enterprise], Use {{general-cta-enterprise}}

The best AI agent platform for enterprises
Production-grade rigor in one platform: prompt builder, agent sandbox, and built-in evals and monitoring so your whole org can go AI native.

[Dynamic] Ebook CTA component using the Ebook CMS filtered by name of ebook.
Use {{ebook-cta}} and add a Ebook reference in the article

Thank you!
Your submission has been received!
Oops! Something went wrong while submitting the form.
Button Text

LLM leaderboard CTA component. Use {{llm-cta}}

Check our LLM leaderboard
Compare all open-source and proprietary model across different tasks like coding, math, reasoning and others.

Case study CTA component (ROI)

40% cost reduction on AI investment
Learn how Drata’s team uses Vellum and moves fast with AI initiatives, without sacrificing accuracy and security.

Case study CTA component (cutting eng overhead) = {{coursemojo-cta}}

6+ months on engineering time saved
Learn how CourseMojo uses Vellum to enable their domain experts to collaborate on AI initiatives, reaching 10x of business growth without expanding the engineering team.

Case study CTA component (Time to value) = {{time-cta}}

100x faster time to deployment for AI agents
See how RelyHealth uses Vellum to deliver hundreds of custom healthcare agents with the speed customers expect and the reliability healthcare demands.

[Dynamic] Guide CTA component using Blog Post CMS, filtering on Guides’ names

100x faster time to deployment for AI agents
See how RelyHealth uses Vellum to deliver hundreds of custom healthcare agents with the speed customers expect and the reliability healthcare demands.
New CTA
Sorts the trigger and email categories

Dynamic template box for healthcare, Use {{healthcare}}

Start with some of these healthcare examples

Healthcare explanations of a patient-doctor match
Summarize why a patient was matched with a specific provider.
SOAP Note Generation Agent
Extract subjective and objective info, assess and output a treatment plan.

Dynamic template box for insurance, Use {{insurance}}

Start with some of these insurance examples

Insurance claims automation agent
Collect and analyze claim information, assess risk and verify policy details.
Agent that summarizes lengthy reports (PDF -> Summary)
Summarize all kinds of PDFs into easily digestible summaries.
AI agent for claims review
Review healthcare claims, detect anomalies and benchmark pricing.

Dynamic template box for eCommerce, Use {{ecommerce}}

Start with some of these eCommerce examples

E-commerce shopping agent
Check order status, manage shopping carts and process returns.

Dynamic template box for Marketing, Use {{marketing}}

Start with some of these marketing examples

Competitor research agent
Scrape relevant case studies from competitors and extract ICP details.
ReAct agent for web search and page scraping
Gather information from the internet and provide responses with embedded citations.

Dynamic template box for Sales, Use {{sales}}

Start with some of these sales examples

Research agent for sales demos
Company research based on Linkedin and public data as a prep for sales demo.

Dynamic template box for Legal, Use {{legal}}

Start with some of these legal examples

Legal contract review AI agent
Asses legal contracts and check for required classes, asses risk and generate report.
Legal document processing agent
Process long and complex legal documents and generate legal research memorandum.

Dynamic template box for Supply Chain/Logistics, Use {{supply}}

Start with some of these supply chain examples

Risk assessment agent for supply chain operations
Comprehensive risk assessment for suppliers based on various data inputs.

Dynamic template box for Edtech, Use {{edtech}}

Start with some of these edtech examples

Turn LinkedIn Posts into Articles and Push to Notion
Convert your best Linkedin posts into long form content.

Dynamic template box for Compliance, Use {{compliance}}

Start with some of these compliance examples

No items found.

Dynamic template box for Customer Support, Use {{customer}}

Start with some of these customer support examples

Q&A RAG Chatbot with Cohere reranking
Trust Center RAG Chatbot
Read from a vector database, and instantly answer questions about your security policies.

Template box, 2 random templates, Use {{templates}}

Start with some of these agents

Legal document processing agent
Process long and complex legal documents and generate legal research memorandum.
AI legal research agent
Comprehensive legal research memo based on research question, jurisdiction and date range.

Template box, 6 random templates, Use {{templates-plus}}

Build AI agents in minutes

ReAct agent for web search and page scraping
Gather information from the internet and provide responses with embedded citations.
Legal contract review AI agent
Asses legal contracts and check for required classes, asses risk and generate report.
Q&A RAG Chatbot with Cohere reranking
Review Comment Generator for GitHub PRs
Generate a code review comment for a GitHub pull request.
Agent that summarizes lengthy reports (PDF -> Summary)
Summarize all kinds of PDFs into easily digestible summaries.
Prior authorization navigator
Automate the prior authorization process for medical claims.

Build AI agents in minutes for

{{industry_name}}

Clinical trial matchmaker
Match patients to relevant clinical trials based on EHR.
Prior authorization navigator
Automate the prior authorization process for medical claims.
Population health insights reporter
Combine healthcare sources and structure data for population health management.
Legal document processing agent
Process long and complex legal documents and generate legal research memorandum.
Legal contract review AI agent
Asses legal contracts and check for required classes, asses risk and generate report.
Legal RAG chatbot
Chatbot that provides answers based on user queries and legal documents.

Case study results overview (usually added at top of case study)

What we did:

1-click

This is some text inside of a div block.

28,000+

Separate vector databases managed per tenant.

100+

Real-world eval tests run before every release.