Skip to main content

agent.json Service Declaration

7.1 What Is agent.json

agent.json is a JSON file placed in your website’s .well-known directory that tells AI agents which AI interaction capabilities your site supports. File path: https://yourdomain.com/.well-known/agent.json Analogy: llms.txt says “who I am”; agent.json says “what I can do.” Think of it as the menu board outside a restaurant — an AI agent can glance at it and immediately know what services are available.

7.2 Why You Need agent.json

Agentic commerce is converging around multiple protocol standards (UCP, ACP, MCP, and others). Each merchant supports a different set of protocols and capabilities. agent.json lets AI agents quickly determine:
  • Which commerce protocols do you support?
  • Where are your API endpoints?
  • Do you accept AI agent-initiated orders?
  • What format is your product data in?
Without agent.json, AI agents must rely on guesswork and probing, which is highly inefficient.

7.3 agent.json Field Specification

Field Reference

7.4 Configuration Examples by Merchant Size

Small Merchant (Product Display Only)

Mid-Size Merchant (Product Discovery + Customer Service)

7.5 Deployment

  1. Create the .well-known directory if it does not exist
  2. Create agent.json inside that directory
  3. Ensure the HTTP response Content-Type is application/json
  4. Ensure robots.txt is not blocking the /.well-known/ path
Platform-specific instructions:

7.6 Verification

After deployment, check:
  1. Visit https://yourdomain.com/.well-known/agent.json
  2. Confirm valid JSON is returned (use JSONLint to validate format)
  3. Confirm the Content-Type is application/json
  4. Confirm all URL links are accessible

Next chapter: Sitemap Optimization — Helping AI crawlers efficiently discover all of your pages