ClearCafe Config 2.0
How we’re swapping Grok for Claude Agent SDK to make our FreeScout → SOP → AI triage system 10× smarter (with real persistent memory and zero prompt stuffing)
← Email Quarterback SOP · ClearCafe product
The Current Setup (ClearCafe Config 1.0)
You already know the flow inside config.clearcafe.com:
- FreeScout webhook or poll → new customer email
- Python backend pulls the relevant SOPs from our internal docs
- Stuffs email + full SOP text into a giant prompt
- Sends to Grok (xAI) → gets JSON with category, assignee, draft reply, tags
- Applies actions back to FreeScout (assign, add internal note, change status)
It works great… but every single email is stateless and we’re burning tokens re-sending the same SOPs over and over.
ClearCafe Config 2.0 – Claude Agent Brain
We’re replacing the Grok API call with Anthropic’s Claude Agent SDK and turning the whole thing into a real digital coworker that lives in its own workspace.
Persistent SOP Files
All SOPs, tone guides, escalation rules live as real Markdown files the agent can read on demand — no more copy-paste into prompts.
Memory That Compounds
After every email, it saves a tiny JSON artifact. After 50–100 emails it starts saying “this matches the same issue we fixed for Customer X last month”.
Tool-Chaining Built In
Read FreeScout thread → search SOP folder → pull past resolution → draft reply → verify tone → apply tags. All in one autonomous loop.
90% Fewer Manual Reviews
Real users with identical FreeScout + Claude Agent setups are hitting inbox-zero with almost zero touch after the first week.
Migration Plan (Already in Progress)
- Keep existing FreeScout polling/webhook code 100% untouched
- Swap the single Grok API call for Claude Agent SDK (5-line change)
- Mount /sops/ folder with all Markdown docs into the agent workspace
- Add memory artifact saving after each successful triage
- Optional: Add sub-agents (one for classification, one for drafting, one for final review)
Estimated effort: 4–6 hours total.
Live Demo of the New Flow
# Old way (ClearCafe Config 1.0)
response = grok.chat.completions.create(
messages=[{"role": "user", "content": giant_prompt_with_sops}]
)
# New way (ClearCafe Config 2.0)
agent = Agent(
model="claude-3-7-sonnet-20241022",
workspace="/app/clearcafe-agent",
system_prompt="You are ClearCafe support. Use files in /sops and /memory for every decision."
)
result = agent.run(f"Process new FreeScout ticket #{ticket_id}")
Where We’re At Right Now (December 2025)
Basic Claude swap working in dev
All SOPs converted to clean Markdown files
Memory artifact system live
Accuracy already beating Grok
Full auto-apply launching this week
Want This for Your Team?
Running FreeScout, Gmail, Zendesk, Front — whatever — and tired of the same emails every day? This exact stack is now plug-and-play.
Comments
Approved comments appear below. Log in once with GFAVIP — it applies across the whole site. GFAVIP login
View comments archive