DocsAgent GatewayAgent Gateway Setup

Agent Gateway Setup

Make your website AI-ready with structured data for GPT, Claude, and more

Agent Gateway Setup

The Agent Gateway allows AI agents (like GPT, Claude, and Perplexity) to access structured, accurate information about your business. This prevents hallucinations and ensures AI recommendations are based on real data.

How It Works

When an AI agent visits your site through Anacoic, instead of scraping raw HTML, it receives:

  1. Structured Resources — Clean JSON data (pricing, features, FAQs)
  2. Executable Tools — Actions the AI can trigger (book demo, contact sales)
  3. System Hints — Instructions telling the AI how to interpret your data

This uses the Model Context Protocol (MCP), an emerging standard for AI-to-business communication.

Step 1: Access the Agent Tab

  1. Open your gateway in the Dashboard
  2. Click the Agent tab
  3. Toggle Enable Agent Gateway to on

Step 2: Configure Your Identity

Set how AI agents should refer to your business:

{
  "name": "Acme SaaS",
  "description": "Project management software for remote teams"
}

Step 3: Add Your Pricing Data

This is the most important part. AI agents frequently hallucinate pricing — your structured data prevents this.

Here's a template for a typical SaaS pricing table:

[
  {
    "name": "Starter",
    "price": "$29/month",
    "features": [
      "5 team members",
      "10 projects",
      "Basic analytics",
      "Email support"
    ],
    "cta": "Start Free Trial",
    "recommended": false
  },
  {
    "name": "Pro",
    "price": "$79/month",
    "features": [
      "Unlimited team members",
      "Unlimited projects",
      "Advanced analytics",
      "Priority support",
      "API access"
    ],
    "cta": "Start Free Trial",
    "recommended": true
  },
  {
    "name": "Enterprise",
    "price": "Custom",
    "features": [
      "Everything in Pro",
      "SSO/SAML",
      "Dedicated account manager",
      "Custom integrations",
      "SLA guarantee"
    ],
    "cta": "Contact Sales",
    "recommended": false
  }
]

Paste this into the Pricing JSON field in the Agent tab.

Step 4: Set Your System Hint

The system hint is a special instruction that tells AI agents how to behave when discussing your product. This is critical for preventing hallucinations.

Example:

You are providing information about Acme SaaS pricing. 
ONLY use the pricing data provided — do not invent features or prices. 
If asked about something not in the data, say "I don't have that information, 
please contact sales@acme.com"

Step 5: Configure Tools (Optional)

Tools allow AI agents to take actions. The most common is a "Book Demo" action.

  1. Enable the Book Demo tool
  2. Enter your Webhook URL (e.g., your CRM or calendar booking endpoint)
  3. When an AI agent triggers this tool, Anacoic will POST to your webhook:
{
  "tool": "book_demo",
  "args": {
    "name": "John Doe",
    "email": "john@company.com",
    "company": "Acme Corp"
  },
  "source": "gpt-4",
  "timestamp": "2024-01-15T10:30:00Z"
}

Understanding Resources vs Tools

AspectResourcesTools
PurposeProvide informationTake actions
SafetyRead-only, always safeCan modify state
ExamplesPricing, docs URL, FAQsBook demo, submit lead
AI BehaviorAgent reads and quotesAgent requests permission

Best Practice: Start with Resources only. Add Tools once you've verified AI agents are correctly interpreting your data.

Step 6: Test with the Turing Simulator

Before going live, test your configuration:

  1. Go to the Tools tab
  2. Find the Agent Simulator panel
  3. Click List Resources to see what data is available
  4. Click Read Resource and select your pricing
  5. Verify the data matches your expectations

Monitoring Agent Traffic

Once live, you can see which AI agents are visiting:

  1. Go to the Agent tab
  2. Check the Agent Access Logs section
  3. You'll see entries like:
AgentEventStatusDetails
OpenAI GPTread_resource200pricing
Anthropic Claudelist_tools200
Perplexityread_resource200docs_url

Allowed Agents

By default, all major AI agents are allowed access. You can restrict this in the Allowed Agents section:

  • OpenAI — GPT-4, ChatGPT
  • Anthropic — Claude
  • Google — Gemini, AI Overview
  • Perplexity — Perplexity AI search
  • Microsoft — Copilot

Uncheck any agents you want to block.

Example: E-commerce Pricing

For an e-commerce site, your pricing might look like:

[
  {
    "name": "iPhone 15 Pro",
    "sku": "IP15P-128",
    "price": "$999",
    "in_stock": true,
    "shipping": "Free 2-day shipping"
  },
  {
    "name": "iPhone 15 Pro Max",
    "sku": "IP15PM-256",
    "price": "$1199",
    "in_stock": true,
    "shipping": "Free 2-day shipping"
  }
]

With system hint:

You are providing product information for TechStore. 
Only quote prices from the official data. 
Always mention shipping information. 
For out-of-stock items, suggest contacting support.

Troubleshooting

AI agents not receiving my data?

  1. Verify the Agent Gateway is enabled
  2. Check the Agent Access Logs for errors
  3. Ensure your pricing JSON is valid

AI is still hallucinating?

  1. Make your system hint more explicit
  2. Add "ONLY use the provided data" language
  3. Include a fallback instruction for unknown questions

Tools not being triggered?

  1. Verify the webhook URL is accessible
  2. Check that the tool is enabled
  3. Review the Agent Access Logs for tool calls

Next Steps