Solution #0866 · IT & Internet · General

GGW website B2A conversion

Let agents self-serve search→self-test→diagnosis — this site operates on itself: a six-layer checkup, five layers rebuilt, and the payment layer honestly reported as not done

Score
Not scored
Demo cases are not scored
Roles
Founder
IT/tech leads · Website operations
Industry
IT & Internet
General (any website can reference it)
Maturity
Online demo
The rebuild is real · Demo data constructed
Open this case directlyRun the four-tool pipeline online: search_solutions → get_solution → run_pain_quiz → request_diagnosis, no system integration needed.
▶ Watch the agent-call demo
01 — Before the rebuild

A website agents cannot read

In 2026 we ran a checkup on our own website, ggw.hanzio.cn, against the six-layer B2A model (discovery/evaluation/access/identity-authorization/transaction-payment/delivery-feedback). The verdict is embarrassing but true: a site that looks fine to humans is nearly invisible to agents — the content is not bad; machines just cannot read it.

1
Discovery layer: a 6MB single-file SPA + hash routing

Everything sits behind #/ routes, unreadable to crawlers and agents; the homepage has 0 JSON-LD blocks, so machines do not know who this is or what it offers; llms.txt 404s in production, so agents cannot find the site manual.

2
Evaluation layer: capabilities exist only in human-facing HTML

Services and solutions have no machine-readable catalog, so an agent cannot learn “what you can do, how you charge, what you deliver” without rendering the pages.

3
Access layer: openapi.json has a shell but no substance

The production openapi.json is public (200) with all 50 routes present (at diagnosis time the production openapi.json had 43 paths), but it carries no business requestBody schemas — components.schemas holds only HTTPValidationError / ValidationError. The agent knows which endpoints exist but not how to pass parameters.

4
Identity and delivery layers: no external tiers, no structured receipts

Identity is anonymous access plus IP rate limiting plus a single admin token, with no external API-key tiers; the conversion endpoint is /api/lead, capturing leads and routing them to human diagnosis, and an agent cannot get a machine-readable result receipt.

Sourcing noteThis page is a record of this site's own practice: the rebuild artifacts (llms.txt / homepage JSON-LD / services.json / solutions catalog / OpenAPI / MCP Server) really exist and can be verified in the repository and online; the online demo simulates the call flow with constructed data and does not touch the production system. No efficiency percentages promised, and no industry numbers cited without sources.
02 — The six-layer rebuild

Layer by layer: machine-readable, callable, verifiable

Rebuild layer by layer against the six-layer model: five layers shipped this round (discovery/evaluation/access/identity/delivery), with transaction-payment explicitly not done — reasons and roadmap in the next section. Each layer does only what real content supports; no fabricated markup.

1
Discovery layer: let agents find you in search

Added an llms.txt site manual; the homepage gained three JSON-LD types — Organization / WebSite / Service (the homepage has no real FAQ block, so FAQPage was not done and not fabricated); robots.txt gained an explicit allow section for AI crawlers such as GPTBot / ClaudeBot / PerplexityBot; all 863 static interpretation pages (696 solutions + 167 cases) are static crawlable pages, each carrying Article + BreadcrumbList markup.

2
Evaluation layer: let agents compare and choose you

services.json service catalog: prices, deliverables, and access methods are machine-readable, with SKU extension slots reserved (skus plus deposit/base-fee fields) so later integration needs no rework; solutions-catalog.json lists 861 solutions with industry/role/pain-point/interpretation-page links, so agents can filter and compare without rendering HTML.

3
Access layer: let agents actually call you

OpenAPI made semantic: Pydantic completes the business requestBody / response schemas, and admin routes are hidden; the MCP Server's first 4 tools — search_solutions (search solutions), get_solution (get solution details), run_pain_quiz (run the seven-gate self-test), request_diagnosis (submit a free diagnosis) — reuse the site's existing /api/quiz-* and /api/lead backends.

4
Identity layer: let agents log in legitimately

Two Bearer tiers, read/write: read-only tokens can only search and view; run_pain_quiz / request_diagnosis are controlled writes and require the write scope; bad or missing tokens get a 401 right away. Existing site guardrails — rate limiting, honeypots, blocklists — remain in force.

5
Delivery layer: let agents take the results away

The self-test returns a structured report (quiz-result retrievable by token); lead capture returns a receipt tagged surface=mcp-agent, channel=agent — agent submissions and human submissions are distinguishable in the same database, giving later audits and usage statistics something to stand on.

Layer 5 · Transaction-payment: not done this roundThe OPC entity has no Agent Pay access, and the services are non-standard with no SKU price list — this round's loop ends at qualified leads + the self-test report, not online payment. This is not an omission; it is a boundary, detailed in the next section.
TAKEAWAY
Readable first, then callable, finally results in hand; layers not done are stated as they are
What is reusable is the rebuild order and one discipline: discovery/evaluation first (cheap, and each is a story on its own), access/identity next, delivery to close; each layer writes only what can be verified, and gaps are flagged explicitly rather than fabricated — being honest with agents is being honest with the next customer.
03 — Honest boundaries

What was not done, and why

Boundary 1 · Payment layer not doneThe OPC entity has no Agent Pay access and the services are non-standard (no SKU price list), so this round's loop ends at qualified leads. The roadmap is staged: lead generation first now → standardized SKUs soon, able to take deposits/base fees (no online full-product delivery payment) → full payment connected once SKUs mature later. services.json already reserves SKU extension slots, so integration needs no rework.
Boundary 2 · OAuth not doneThe Bearer read/write tiers already cover the current scenarios (read-only search + controlled writes); the full OAuth authorization flow is left for customers who need multi-tenant delegated authorization, and was not forced into this round.
Boundary 3 · ask_ggw deferredThe first 4 tools all carry low quota risk; ask_ggw burns LLM tokens (5 questions/customer/day, a 1.5 million token/day budget) and has the highest abuse risk — it opens in the second batch after agent traffic is observed and a separate quota pool is built.
Why the boundaries are written into the caseTelling an agent plainly “what I cannot do” earns correct calls better than pretending to be all-capable: it will not spin its wheels at the payment step, will not attempt writes with a read-only token, and will not treat ask_ggw as a free Q&A machine. The boundary itself is the trust credential.
04 — Verifiable

Every number can be re-run

Case:GGW website ggw.hanzio.cn (own practice) · 2026

Testing basis (all first-party, re-runnable)339 ai-api backend tests + 25 ggw-mcp tests + 5 MCP end-to-end acceptance checks (real streamable-http transport + official client: write token connects the 4 tools / read-only search / write with a read-only token rejected / bad token 401 / no token 401) + 24 demo browser acceptance checks — all green.

MCP endpoint:api.ggw.hanzio.cn/mcp(Available after deployment, reusing the certificate/rate limiting/same-machine deployment.) Access: a Bearer token + a standard MCP client (streamable-http); list_tools returns the 4 tools; a read-only token can run search_solutions first to verify connectivity, then request a write token as needed.

Sources and verification boundaryThe rebuild artifacts are real and checkable (llms.txt / homepage JSON-LD / services.json / solutions-catalog.json / OpenAPI / MCP Server are all in the repository and online); the online demo is a constructed-data simulation, does not touch the production system, and promises no efficiency percentages. The test numbers are first-party results re-runnable from this repository, not industry statistics.
▶ Run it yourselfWatch the agent complete the four steps — search → interpretation → self-test → diagnosis — with no human in the loop.
▶ Watch the agent-call demo