# Zervice — Full Platform & Agent Discovery Reference (/llms-full.txt) > Zervice is the Agentic Business Platform that turns passive websites into grounded, action-taking services for human customers and external AI agents—deployable on Managed Cloud (`chat.zervice.us`) or 1-click inside the customer's own cloud account (BYOC). --- ## 1. Platform Overview & Foundational Guarantees Traditional websites rely on manual reading and 24–48 hour "Contact Us" forms, while generic chat widgets guess answers without citations or workflow guardrails. Zervice delivers: 1. **Data Sovereignty (Managed Cloud or 1-Click BYOC):** Run instantly on Zervice Cloud (`https://chat.zervice.us`) or self-host inside your own cloud account via automated 1-click provisioning. 2. **Grounded Knowledge Base Precision:** Combines exact keyword matching and meaning-based search over approved company content with clickable source citations and polite declines when ungrounded. 3. **Deterministic Visual Dialog Flows + Confirmation Gates:** Seamlessly shifts between open Knowledge Base Q&A and structured multi-step workflows, enforcing visitor sign-in and explicit Confirmation Gates before sensitive external actions. 4. **Agentic Web + Autonomous Workspace Management:** Exposes standardized discovery endpoints both for public customer-facing AI consumers and for coding agents configuring your chatbot workspace. --- ## 2. Managing Chatbots With Coding Agents (`chat.zervice.us` Source of Truth) Whether a team runs on Managed Cloud or self-hosts a BYOC workspace on a custom domain, **every deployment shares the identical concepts, FlowSpec schema, REST APIs, and MCP tools**. Always treat **`https://chat.zervice.us`** as the canonical documentation source of truth: - **Agent Quick Index:** `https://chat.zervice.us/api/v1/admin/llms.txt` - **Complete Agent Handbook:** `https://chat.zervice.us/api/v1/admin/llms-full.txt` - **Browseable Agent & API Docs:** `https://chat.zervice.us/docs` - Quickstart: `https://chat.zervice.us/docs/quickstart.md` - Core Concepts & 4-Layer Pipeline: `https://chat.zervice.us/docs/concepts.md` - Declarative FlowSpec Reference: `https://chat.zervice.us/docs/flow-spec.md` - Knowledge, Simulation & Quality Loop: `https://chat.zervice.us/docs/knowledge-and-quality.md` - REST & MCP API Reference: `https://chat.zervice.us/docs/api.md` - Autonomous Agent Playbooks: `https://chat.zervice.us/docs/workflows.md` - **OpenAPI 3.1 Contract:** `https://chat.zervice.us/api/v1/admin/openapi.json` ### Choosing the Target API / MCP Base URL - **Managed Cloud workspaces:** Use `https://chat.zervice.us/api/v1/admin/mcp` (and `/api/v1/admin/...`). - **Self-hosted BYOC workspaces:** Keep the exact same workflow and schemas, and point your token requests to the user's custom chatbot URL (`https:///api/v1/admin/mcp`). Every self-hosted instance also serves `/api/v1/admin/llms.txt` and `/docs` locally. ### MCP Client Configuration ```json { "mcpServers": { "zervice-admin": { "type": "http", "url": "https:///api/v1/admin/mcp", "headers": { "Authorization": "Bearer zrv_pat_YOUR_KEY" } } } } ``` ### 5-Step Autonomous Operating Loop 1. **Discover First:** Authenticate with `Authorization: Bearer zrv_pat_...` and call `workspace_whoami` + `workspace_discover` (`GET /api/v1/admin/whoami` and `GET /api/v1/admin/discover`) for a scope-filtered workspace inventory and 7-day quality snapshot. 2. **Upsert Idempotently (`externalId`):** Pass stable slugs matching `^[a-z0-9][a-z0-9_-]{1,62}$` across bots, Knowledge Collections, Knowledge Sources, Knowledge Items, Dialog Flows, Hot Questions, and Integrations. 3. **Author Declarative FlowSpecs:** Validate via `flow_validate_spec` before persisting via `flow_put_spec` (use `status: "build"` when working in Safe Draft Mode). 4. **Dry-Run Simulation:** Test multi-turn conversations safely via `bot_simulate_turn` (`useDrafts: true`, `webhookMode: "mock"`) inside an isolated session with zero writes to conversation logs, leads, or analytics. 5. **Close Quality Gaps:** Review `analytics_gaps_report` (`GET /api/v1/admin/analytics/gaps?days=7`) and fallback logs (`GET /api/v1/admin/logs?bot_id=all&outcome=fallback`), add missing documentation or review-queued FAQs, and verify fixes in simulation. --- ## 3. Product Architecture Summary - **Workspaces & Multi-Bot Library:** Workspaces isolate tenants and hold reusable Knowledge Collections, Dialog Flows, Business Integrations, and Write-Only Secrets bound flexibly across multiple Bots. - **4-Layer Visitor Turn Runtime:** 1. **Dialog Flows** (`bot`, `agent`, `condition`, `webhook`, `call`) with typed Saved Fields and mid-flow off-topic Q&A escape + resume. 2. **Hot Questions Cache** (`review` draft queue and `active` instant answers). 3. **Business Integrations** (live webhooks, MCP tools, and A2A agent connectors with sign-in and Confirmation Gates). 4. **Knowledge Base Q&A** (2-Step Website Crawler, Markdown/text/file Knowledge Items, smart search with citations). --- ## 4. Quickstart Embed Snippet (`widget.js`) Embed any Zervice Workspace on a website using one floating or inline (`data-mode="inline"`) script tag: ```html ``` --- ## 5. Key Reference URLs - Platform Overview: https://www.zervice.us - Human Help Center & User Guides: https://www.zervice.us/docs - Canonical Agent & API Docs: https://chat.zervice.us/docs - Canonical Agent `llms.txt`: https://chat.zervice.us/api/v1/admin/llms.txt - Canonical Agent `llms-full.txt`: https://chat.zervice.us/api/v1/admin/llms-full.txt - Coding Agents & API Keys Guide: https://www.zervice.us/docs/guide/coding-agents-and-api-keys - A2A Agent Manifest: https://www.zervice.us/.well-known/agent.json