Skip to main content

AITP: Agent Interaction & Transaction Protocol

Version: 0.1.0

Status: Draft

note

AITP is a spec in progress and we are open to comments, feedback, and contributions!

We are simultaneously writing this spec, integrating AITP support into the NEAR AI Hub, and building AITP-compatible agents to inform how the protocol should change before v1.0.

Introduction

AITP enables AI agents to communicate securely across trust boundaries while providing extensible mechanisms for structured interactions.

Imagine this scenario: You ask your AI assistant to book a flight to Miami. Instead of your assistant needing to navigate airline websites, it can directly communicate with airline booking agents using a standardized protocol. Your assistant and the airline agent exchange structured data about flight options, passenger details, and payment information—all using the same protocol regardless of which airline you choose.

Key Benefits of AITP:

  • Universal Communication: Any AITP-compatible agents can interact, regardless of who built them
  • Structured Data Exchange: Beyond just text, agents can share UI elements, forms, and payment requests
  • Trust Boundary Crossing: Secure interaction between agents representing different entities
  • Extensible Capabilities: New interaction types can be added through the capability system

We envision a future in which most online interactions are conducted by AI agents representing people, businesses, and government entities, communicating with users and with each other. These agents will combine the scale and cost benefits of current online services with the flexibility and personalization of human interactions. Just as HTTP and HTML enable any web browser to visit any website, AITP provides a standard for agent-to-agent and user-to-agent communication, regardless of where those agents run or how they're built.

For a deeper exploration of the problems AITP aims to solve and our vision for the future of agent interactions, see the Vision page.

Protocol Overview

AITP consists of two pieces:

  1. A core protocol for communicating with agents in Chat Threads, inspired by and largely compatible with the OpenAI Assistant/Threads API. Read more about:
    1. Why Threads?
    2. Thread Transports
    3. Thread Specification
  2. An extensible set of Capabilities communicated over those chat threads to indicate that the client of an agent (i.e. a user interface or another agent) can support useful standardized features like multimodal input, generative UI, payments, and/or human-in-the-loop attestations. Read more about:
    1. What is a Capability?
    2. Capability Exchange
    3. Capability List

These components work together: agents communicate via Threads, which are transmitted using a Transport, and exchange structured data using Capabilities when needed for specific operations.

AITP vs...

Protocol TypePurposeWhen to UseAITP Relationship
Multi-agent orchestration (CrewAI, Autogen, LangGraph)Coordinate agents with same ownerInternal agent workflowsComplementary - can use for internal orchestration while using AITP for external communication
Service metadata protocols (MCP, Bitte, llms.txt)Help agents use existing APIsAccessing traditional servicesComplementary - service agents may use MCP internally while offering AITP externally
Browser use agents (ChatGPT Operator, Proxy, Rabbit LAM)Navigate existing websitesBridging to current webTransitional - useful until AITP adoption grows

While these frameworks and AITP all involve agent communication, AITP specifically addresses interactions across trust boundaries, like a user's agent talking to a business's agent.

Diagram of User, Chat Client, Personal Assistant, Service Agent, Service

There's lots more on this subject on the Vision page.

How do I get involved?

  • Join our Telegram community: https://t.me/nearaialpha
  • Build more agents: The more AITP-compatible agents there are, the more useful each agent will be. Agents built on the NEAR AI Hub support all AITP features.
  • Build AITP support into more AI agent frameworks and clients: We want every AI agent framework, hosting provider, and chat UI to support AITP.
  • Contribute to the protocol: open an issue, pull request, or discussion on the AITP repo.

If you're using AI development aids, the latest specification has been packaged up into aitp-repomix.txt, perfect for adding to your AI's context so it knows how to use AITP.

Glossary

TermDefinition
AgentA software entity that uses AI to mimic human-like reasoning for a specific purpose
CapabilityA standardized message format for a specific interaction type
ThreadA conversation between two or more agents and/or humans
TransportA mechanism for transmitting natural language or AITP messages between agents
Personal AssistantAn agent that represents a user and interacts with service agents on their behalf
Service AgentAn agent that represents a business, service, or organization
Discovery AgentAn agent that helps find and connect with appropriate service agents
Trust BoundaryThe separation between systems or agents with different security domains or owners
PassthroughPattern where agents forward AITP messages to other connected agents or users