All loops
RAGHard 10 min· claude-haiku-4-5
Customer call RAG
Indexes Gong/Fathom call transcripts with deal metadata.
NOT DEPLOYEDNOT DEPLOYED
0198ms
Trigger
cron(0 7 * * *) fired · every day · 07:00
021218ms
Agent
claude-haiku-4-5 · in 1718 tok · out 732 tok
03208ms
Tools
postgres-mcp/lovable cloud:invoke → 200 OK · 98ms
0488ms
Verify
schema check · json-schema draft-2020 passed
05118ms
Output
eval passed · faithfulness 0.94
0638ms
Notify
audit log written · runbook link attached
SUCCESS
0%
0 runs
P50
0ms
median
P95
0ms
tail
AVG COST
—
per run
LAST OK
never
—
LAST FAIL
never
none
Latency · last 30 runs0 samples
no runs yet
Latest output · what your users see
RAG index · kb-v3
chunks
66
faithfulness
0.96
recall
0.9
Q: How do I rotate a secret without restarting the loop? A: Call `locker rotate <name>` — running loops pick up the new value on their next tick via the signed refresh channel.
// press Test to run once · Watch live to keep streaming · Deploy to make it real
The problem
Naive RAG embarrasses you in front of users — irrelevant chunks, no citations, drift.
The outcome
A measurable, evaluable RAG pipeline with cited answers and a quality dashboard.
Ingredients & skills
Secrets
- ANTHROPIC_API_KEY
- DATABASE_URL
Providers
- Anthropic
- Lovable Cloud
MCP servers
- postgres-mcp
- fetch-mcp
#rag#embeddings#sales
How it works
Indexes Gong/Fathom call transcripts with deal metadata.
Step 1
1 — Index
Chunk → embed → upsert into pgvector with a metadata JSON column.
Step 2
2 — Retrieve
Top-k vector + filter on metadata. Optional rerank pass.
Step 3
3 — Answer
Claude answers using only retrieved chunks. Empty retrieval ⇒ 'I don't know'.
One-line deploy
The button above runs the same command with your saved config. This is the raw CLI form.
bash
npx claudeloops deploy customer-call-ragRelated loops
Sales
Inbound lead → enriched CRM row
HMAC-verified webhook → Claude enrichment → HubSpot upsert with score.
RAG
RAG over private wiki with citations
Notion → pgvector → Claude with strict citation schema.
Sales
ICP-targeted cold email research
Upload a list of 1k domains, get personalized first-line outreach for each.