Watch the agent decide
DeployBot answers Cloud Run, GKE and IAM questions from public
Google Cloud documentation, with citations. When a question depends on your own
project — quota, billing, IAM policy, cluster state — it can't be answered from
those documents. The agent searches again a different way first, then drafts a
ticket and offers to file it. Every one of those routes is a Python function, not a
choice the model makes, and every step is on the record. Say hi and
nothing is filed at all.
- Answered — single document My Cloud Run container fails to start — what does the PORT error mean?
- Answered — synthesised across documents Why won't my GKE node pool scale down after I deleted the workload?
- Escalated — depends on your project Can you raise my Cloud Run instance quota for europe-west1?
make dev
Starts Postgres, the mock ticket service, the API and the web app. The
assistant is at localhost:3000/c/gcp-platform-support.
client_id: gcp-platform-support
name: "Cloud Platform Support"
branding:
logo: assets/gcp-platform-support/logo.svg
primary_color: "#1a73e8"
assistant_name: "DeployBot"
corpus:
source: corpora/gcp-platform-support/
chunking:
chunk_size: 512
overlap: 64
agent:
# Must have a row in config/pricing/claude.yaml, or startup fails.
model: anthropic/claude-haiku-4.5
system_prompt_file: prompts/gcp-platform-support/answer.md
max_tokens: 2048
# Retrieval below this similarity is discarded before the model sees it.
retrieval_drop_floor: 0.3
# Level 1: the best surviving hit being weaker than this fails the tier.
escalate_below: 0.45
# Both levels: the grader's groundedness confidence, below which the tier fails.
confidence_threshold: 0.6
# Level 2. Turn it off and a turn Level 1 cannot answer goes straight to a human.
corrective:
enabled: true
query_rewrites: 3
# No tools key: retrieval is a node and the ticket client is called from
# Python, so no tool definition is ever sent to a model.
limits:
rate_limit_per_minute: 60
daily_budget_usd: 2.00 Three messages, three outcomes
Each node emits a step event as it finishes, and the UI renders
them above the reply. The trails below are recorded output, not mock-ups.
- Searched the documentation 5 passages · best match 0.62
- Graded the evidence confidence 0.95
- Answered from sources 2 citations
- Searched the documentation 5 passages · best match 0.50
- Graded the evidence confidence 0.05
- Rewrote the question 3 rewrites · "Cloud Run quota europe-west1"
- Searched again: keyword + semantic 5 passages
- Graded the new evidence confidence 0.05
- Drafted a ticket for review quota_or_billing
- Filed a ticket PLATFORM-1042 — after you confirm
- Searched the documentation no matching passages
- Graded the evidence kind: conversation
- Not a support request no ticket
hi retrieves
nothing, and for a while every greeting filed a ticket. The fix is not a threshold:
it is a kind field on the grade call that already runs, separating
not a support request from a support request before any second
search is spent on it. A queue is only worth reading if what reaches it needed a
human.
What the demo shows
Every route is a Python function
Retrieval similarity and a groundedness score are compared against configured thresholds at each retrieval tier. The model is never asked whether it should escalate.
Every step is on the record
Each node commits to Run.steps before the next one starts, so
the trail survives a reload — and a process death mid-run.
The ticket is a real HTTP call
Escalation POSTs to a separate ticket service over the network, with an idempotency key. The service assigns the id, so nothing is faked in-process.
The answering model can't escalate
Its request payload carries no ticket tool definition — no tools
key at all. Asserted in a test, not by inspection.
What's built
Point it at your own documents
The graph reads its thresholds, corpus and prompts from config. A different support domain is a new YAML file and a folder of documents.