Zervice LogoZervice
User Guide

Agentic Web Discovery (/llms.txt, A2A Agent Card & Domain Claim)

How Zervice automatically generates live /llms.txt, /llms-full.txt, standard A2A Agent Cards, and an A2A JSON-RPC endpoint—plus how to claim your agent by domain or map endpoints onto your own website domain.

Live Agentic Web Endpoints Included With Every Assistant

Human visitors interact with your website through your Zervice chat widget, while external AI assistants (ChatGPT, Claude, Perplexity, and A2A-compatible agents) discover businesses via standardized machine-readable endpoints:

EndpointStandardWhat It Exposes
/llms.txtllmstxt.orgCompact Markdown index of your assistant, indexed source links, FAQ topics, and callable workflows.
/llms-full.txtllmstxt.orgFull curated FAQ answers and indexed Knowledge Base chunks for deeper single-fetch context.
/.well-known/agent-card.json (and agent.json)Agent2Agent (A2A)Standard A2A manifest listing skills, workflow input schemas, authentication mode, and optional domain ownership identity.
/a2a (HTTP POST)A2A JSON-RPC 2.0 (message/send)Live multi-turn endpoint that answers Knowledge Base questions and runs Dialog Flows—returning input-required for missing inputs or human confirmation gates.

Every time you crawl new documentation, update Hot Questions, or publish a Dialog Flow in Zervice, all four endpoints update automatically.

Clean URL Paths vs. Dedicated Custom Domains (BYOC)

  • Cloudflare BYOC / Dedicated Custom Domain: When your assistant runs in its own single-tenant Worker domain (for example https://agent.yourcompany.com), /llms.txt, /llms-full.txt, /.well-known/agent-card.json, and /a2a resolve directly at your domain root—without any /w/<workspace_key> prefix (requests to /w/... automatically redirect cleanly to root).
  • Shared Hosted Cloud (chat.zervice.us): Customer workspaces are served cleanly under your workspace path without query strings at:
    • https://chat.zervice.us/w/<workspace_key>/llms.txt
    • https://chat.zervice.us/w/<workspace_key>/llms-full.txt
    • https://chat.zervice.us/w/<workspace_key>/.well-known/agent-card.json
    • https://chat.zervice.us/w/<workspace_key>/a2a (You can copy these exact URLs anytime from Deployment → Agentic Web (A2A) in the sidebar, or click Publish to A2A in the Bots header. Zervice's own platform system workspace also resolves directly at the Cloud domain root.)

Publishing & Updating Your Workspace in the A2A Registry (1 Click)

Your workspace publishes one canonical Agent Card and /llms.txt backed by whichever public assistant you choose (defaulting to your first created public bot, which you can switch at any time).

Open Deployment → Agentic Web (A2A) in the sidebar (or click Publish to A2A / Update on A2A in the Bots header) to sync with the public directory (a2a-registry.org):

  1. Choose Backing Bot (Optional): Defaults to your first created public bot; switch to another public bot (Everyone or Visitors Only) whenever your primary assistant changes.
  2. Initial Publish (Publish to A2A Registry): Calls Zervice's public submit flow (no A2A Registry account required) with your canonical workspace Agent Card URL—root /.well-known/agent-card.json for BYOC domains and the Cloud system workspace, or /w/<workspace_key>/.well-known/agent-card.json for customer Hosted Cloud workspaces.
  3. Updating After Changes (Update in A2A Registry): Whenever you add documentation, Hot Questions, or Dialog Flows—or switch the backing bot:
    • While Unclaimed: Triggers the public rescan endpoint so the registry re-fetches your latest Agent Card.
    • After Claiming Your Agent: Once you claim ownership of an agent on a2a-registry.org, public rescans become a no-op to protect your listing. Paste a free API token (zv_... from your a2a-registry.org console) into Claimed Agent Refresh Token (Optional) in the A2A modal so Update in A2A Registry automatically uses the authenticated refresh endpoint (POST /api/agents/{id}/refresh-token).

Claiming Your Agent by Verified Domain (Optional)

If you want to claim a Zervice Cloud-hosted assistant under your company domain in an A2A Registry:

  1. Enable Domain Identity in Zervice:

    • Inside Deployment → Agentic Web (A2A), toggle Include Domain Identity Hint in Agent Card on.
    • Enter your Verified Domain (for example acme.com) and review or customize the auto-generated reverse-DNS Package Name (for example com.acme.agent).
    • Save settings or click Publish / Update. Zervice automatically embeds the advisory https://a2a-registry.org/extensions/registry/v1 block inside capabilities.extensions of your agent-card.json:
    {
      "uri": "https://a2a-registry.org/extensions/registry/v1",
      "description": "Registry metadata and identity verification",
      "required": false,
      "params": {
        "identity": {
          "provider": "domain",
          "domain": "acme.com",
          "packageName": "com.acme.support"
        }
      }
    }
    
  2. Verify DNS TXT Ownership in the Registry: Add the DNS TXT record requested by your registry account on acme.com.

  3. Submit Your Agent Card URL: Provide your workspace /.well-known/agent-card.json URL and trigger Claim in the registry—the registry matches params.identity.domain and packageName against your verified domain.


Optional: Serving /llms.txt and /.well-known/agent-card.json on Your Root Domain

External crawlers often check https://yourcompany.com/llms.txt and https://yourcompany.com/.well-known/agent-card.json directly on your main website domain. Instead of maintaining static copies that drift out of date, add a one-time rewrite or proxy pointing to your live Zervice workspace URL (zk_pub_...).

Because the returned agent-card.json points its A2A url directly to https://chat.zervice.us/w/<workspace_key>/a2a, you only need to map the GET discovery paths—you do not need to proxy POST requests.

Next.js (next.config.js / next.config.mjs)

export default {
  async rewrites() {
    const zerviceBase = 'https://chat.zervice.us/w/zk_pub_your_workspace_key';
    return [
      { source: '/llms.txt', destination: `${zerviceBase}/llms.txt` },
      { source: '/llms-full.txt', destination: `${zerviceBase}/llms-full.txt` },
      {
        source: '/.well-known/:file(agent\\.json|agent-card\\.json)',
        destination: `${zerviceBase}/.well-known/:file`
      }
    ];
  }
};

Cloudflare Pages / Netlify (_redirects)

/llms.txt                     https://chat.zervice.us/w/zk_pub_your_workspace_key/llms.txt                     200
/llms-full.txt                https://chat.zervice.us/w/zk_pub_your_workspace_key/llms-full.txt                200
/.well-known/agent.json       https://chat.zervice.us/w/zk_pub_your_workspace_key/.well-known/agent.json       200
/.well-known/agent-card.json  https://chat.zervice.us/w/zk_pub_your_workspace_key/.well-known/agent-card.json  200

(If your static host does not support transparent 200 proxying, use 302 instead.)

Nginx (nginx.conf)

location ~ ^/(llms\.txt|llms-full\.txt|\.well-known/agent(-card)?\.json)$ {
  proxy_ssl_server_name on;
  proxy_pass https://chat.zervice.us/w/zk_pub_your_workspace_key/$1;
}

Closed CMS / Website Builders (Shopify, Wix, Webflow)

If your CMS does not support root .well-known rewrites, add discovery tags inside your site <head>:

<link rel="alternate" type="text/plain" href="https://chat.zervice.us/w/zk_pub_your_workspace_key/llms.txt" title="LLMs.txt" />
<link rel="agent-manifest" type="application/json" href="https://chat.zervice.us/w/zk_pub_your_workspace_key/.well-known/agent-card.json" />

Built-In Security & Guardrails

  • Signed-In Only Protection: Assistants restricted to Signed-In Only in Bot Targeting / Routing Rules never expose /llms.txt, agent-card.json, or /a2a to unauthenticated callers (HTTP 401 unless a valid X-Zervice-Identity JWT is presented).
  • Subroutines & Hidden Workflows Excluded: Dialog Flows marked as hidden from the widget or subroutine-only are omitted from public manifests.
  • Human-in-the-Loop Gates Intact: When an external agent invokes a workflow via A2A message/send and reaches a Guarded Webhook or Final Summary Confirmation step, Zervice pauses and returns status.state = "input-required" instead of executing state-changing actions unconfirmed.