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:
- Structured Resources — Clean JSON data (pricing, features, FAQs)
- Executable Tools — Actions the AI can trigger (book demo, contact sales)
- 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
- Open your gateway in the Dashboard
- Click the Agent tab
- 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.
- Enable the Book Demo tool
- Enter your Webhook URL (e.g., your CRM or calendar booking endpoint)
- 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
| Aspect | Resources | Tools |
|---|---|---|
| Purpose | Provide information | Take actions |
| Safety | Read-only, always safe | Can modify state |
| Examples | Pricing, docs URL, FAQs | Book demo, submit lead |
| AI Behavior | Agent reads and quotes | Agent 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:
- Go to the Tools tab
- Find the Agent Simulator panel
- Click List Resources to see what data is available
- Click Read Resource and select your pricing
- Verify the data matches your expectations
Monitoring Agent Traffic
Once live, you can see which AI agents are visiting:
- Go to the Agent tab
- Check the Agent Access Logs section
- You'll see entries like:
| Agent | Event | Status | Details |
|---|---|---|---|
| OpenAI GPT | read_resource | 200 | pricing |
| Anthropic Claude | list_tools | 200 | — |
| Perplexity | read_resource | 200 | docs_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?
- Verify the Agent Gateway is enabled
- Check the Agent Access Logs for errors
- Ensure your pricing JSON is valid
AI is still hallucinating?
- Make your system hint more explicit
- Add "ONLY use the provided data" language
- Include a fallback instruction for unknown questions
Tools not being triggered?
- Verify the webhook URL is accessible
- Check that the tool is enabled
- Review the Agent Access Logs for tool calls
Next Steps
- Configure Domain Locking to secure your gateway
- Set up Analytics to track conversion attribution
- Explore Custom Destinations for advanced integrations