Client ID gcp-platform-support
Assistant DeployBot
Agent mode graph
Model anthropic/claude-haiku-4.5
Corpus 10 Google Cloud docs · CC BY 4.0
Escalation HTTP POST → mock ticket service
Embeddings Voyage AI voyage-3
Custom code one config, one graph module
Things to try — one per branch
  • 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?
Run it locally
make dev

Starts Postgres, the mock ticket service, the API and the web app. The assistant is at localhost:3000/c/gcp-platform-support.

Full setup in the quickstart
config/gcp-platform-support.yaml full config for this demo
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.

My Cloud Run container fails to start — what does the PORT error mean?
  1. Searched the documentation 5 passages · best match 0.62
  2. Graded the evidence confidence 0.95
  3. Answered from sources 2 citations
Can you raise my Cloud Run instance quota for europe-west1?
  1. Searched the documentation 5 passages · best match 0.50
  2. Graded the evidence confidence 0.05
  3. Rewrote the question 3 rewrites · "Cloud Run quota europe-west1"
  4. Searched again: keyword + semantic 5 passages
  5. Graded the new evidence confidence 0.05
  6. Drafted a ticket for review quota_or_billing
  7. Filed a ticket PLATFORM-1042 — after you confirm
hi
  1. Searched the documentation no matching passages
  2. Graded the evidence kind: conversation
  3. Not a support request no ticket
The third trail is the one to ask about. 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.
Read the escalated trail closely. Retrieval scored 0.50 — above the 0.45 escalate floor, so the first signal passed. The second signal caught it: groundedness 0.05 says the retrieved passage does not contain the answer. That is the "found the right document, which doesn't answer the question" case, and it is why the guardrail reads two signals rather than one. Level 2 then rewrote the question and searched again, keyword and semantic, and graded the new passages 0.05 too. Only then did it offer a ticket.

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

✓ Week 1 Explicit pipeline, the two-signal guardrail, a real HTTP ticket call, and the step trail in the UI. All four exit gates verified.
✓ D10 The pipeline becomes a three-tier LangGraph graph: corrective retrieval with query rewriting and hybrid search, and a ticket offer the graph pauses for.

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.

Quickstart guide