# Build your own support agent

> Own the code and pick a cheap, fast model.

- Category: Customer support · Difficulty: Advanced
- Estimated monthly cost: $0–$29/mo. API usage only, and small models are cheap (Haiku 5.5 / GPT-6 Luna: $0.10 per 1M input tokens). Langfuse Hobby is free; Core $29.
- Model: Claude Haiku 5.5 or GPT-6 Luna (both $0.10 in / $0.50 out per 1M tokens)
- MCP servers: none
- Last checked: 2026-10-21 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/support-agent-diy/ · JSON: https://getagentloadout.com/data/loadouts/support-agent-diy.json

## Tools
- [Claude Agent SDK](https://docs.claude.com/en/api/agent-sdk/overview): The agent harness behind Claude Code as an SDK: tools, filesystem, shell, hooks, subagents. Pricing: SDK $0/mo (Pay for Claude API usage). Source: https://dbggr.dev/articles/agent-frameworks-compared/
- [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/): Lightweight SDK for agents with handoffs and guardrails, OpenAI-first. Pricing: Open source $0/mo (Pay for model usage). Source: https://dbggr.dev/articles/agent-frameworks-compared/
- [Langfuse](https://langfuse.com): Open-source tracing, evals and prompt management for LLM apps and agents. Pricing: Hobby $0/mo (50k units/month, 2 users); Core $29/mo (100k units/month, unlimited users); Pro $199/mo (Unlimited history, high rate limits; extra units $8 per 100k). Source: https://langfuse.com/pricing

## Starter prompt

```
Build a support agent with the tools in system-prompt.md. Add tracing with Langfuse, an eval set of 30 real past questions, and a script that reports accuracy before each deploy.
```

## Config (system-prompt.md)

```markdown
You are the support agent for <product>.
Tools: search_docs(query), get_order(id), escalate(reason).
Rules: answer from docs; call escalate for refunds or anything you can't verify; never invent order data.
```

## Setup steps
1. Pick one SDK.
2. Implement three tools.
3. Add tracing and an eval set.
4. Ship behind a 'talk to a human' button.

## Why this works
Full control over data, tools and cost.

## Watch out
You own uptime and safety. Keep escalation easy.

## Related loadouts
- [Customer support agent (turnkey)](https://getagentloadout.com/loadouts/support-agent-turnkey/)
- [Website support chatbot](https://getagentloadout.com/loadouts/support-bot-website/)
- [Production agent in TypeScript](https://getagentloadout.com/loadouts/ts-production-agent/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
