This is the most important thing to understand before building agents. Unlike web apps that run on free Vercel hosting, agents call APIs every time they run โ and those calls cost money. Understanding costs upfront prevents nasty surprises.
(runs per day) ร (cost per run) ร 30. An agent that runs 24 times per day (hourly) at $0.02 per run = $14.40/month. One that runs every 5 minutes at $0.05 = $432/month. Always calculate this before setting a schedule.Writing prompts for an autonomous agent is very different from chatting with Claude. In a chat, you can clarify and correct. In an agent, the prompt runs unattended โ every ambiguity becomes a bug.
An agent is an AI that doesn't just answer questions โ it takes action. Instead of you typing a prompt and reading a response, an agent watches for a trigger (like a new email or a form submission), processes it using AI, and does something with the result (like sending a reply, updating a spreadsheet, or posting to Slack) โ all without you touching a keyboard.
AI Help. This means the Zap only fires when you receive an email with that subject line.Re: [original subject]. Set Body to Claude's output from the previous step.Now that your basic agent works, try these improvements:
- Change the trigger โ instead of Gmail, try a Typeform submission, a Slack message, or a new row in Google Sheets
- Change the action โ instead of replying by email, post Claude's response to a Slack channel or save it to a Google Doc
- Improve the prompt โ give Claude a persona: "You are a customer support agent for [your business]. Always be friendly, concise, and offer one next step."
- Add a filter step โ only trigger the agent if the email contains certain keywords, or only during business hours
- Add logging โ add a Google Sheets action that saves every email + Claude's reply so you can review them
docs/ folder. You type a question. It sends the documents to Claude along with your question, and gives you an answer based only on what's in those files.- Ask questions about any PDF, .txt, or Word document
- Compare multiple documents at once
- Extract specific data โ dates, names, numbers, clauses
- Summarize long documents in seconds
- Find contradictions or inconsistencies across files
docs/ folder. Then run the agent:Once the basic agent works, ask Claude Code to add these improvements one at a time:
- Conversation history โ remember previous questions in the same session so follow-up questions make sense
- File summaries on startup โ when the agent loads, automatically summarize what each document contains
- Source citing โ have Claude name which document each piece of information came from
- Save Q&A to a log file โ save every question and answer to a timestamped text file for reference
An agent running unattended can fail for hours without anyone noticing. Without error handling, you'll never know. With it, failures surface immediately.
- Uses Serper API (free tier: 2,500 searches/month) to find current articles
- Fetches and reads the actual page content โ not just headlines
- Claude synthesizes across multiple sources into a coherent digest
- Formats the email with clear sections, links, and key takeaways
- Runs automatically every day via a scheduler
- Researcher agent โ searches the web, extracts key facts, cites sources
- Writer agent โ receives the research, writes a structured article in a specified style
- Reviewer agent โ reads the draft, scores it on clarity/accuracy/flow, rewrites anything below threshold
- Each agent has its own system prompt defining its role and constraints
- The pipeline logs what each agent did and why at every step
output/ for the finished article. The whole pipeline should take 30โ60 seconds.The Model Context Protocol (MCP) is an open standard that lets Claude connect directly to external tools and data sources โ without you writing custom API integration code. Instead of building a custom Slack connector, you install a Slack MCP server and Claude can read and write to Slack natively. Claude Code has built-in MCP support, making this very straightforward to set up.
- Every conversation is stored as a vector embedding in Supabase
- When you ask something new, the agent searches memory for relevant past context
- It builds a preference profile โ your name, communication style, topics you care about
- Each session gets smarter โ it references past conversations naturally
- Memory is searchable: "What did I ask you about last week?"
A deployed agent that's quietly making bad decisions is worse than a broken one. Production agents need evaluation โ a way to measure whether they're doing their job well and catching when quality degrades.
An autonomous agent that can take action in the real world needs hard limits โ not soft guidelines, but code-enforced guardrails. Trust boundaries are the difference between a useful tool and an expensive mistake.
- Monitors a trigger source every hour (configurable)
- Uses Claude's tool-use API โ the agent can search, read URLs, send messages
- Claude decides whether each event is worth acting on based on criteria you define
- All actions are logged with timestamp, reasoning, and outcome
- Alert system notifies you when a high-priority event is detected
- Deployed to Railway โ runs 24/7 in the cloud, survives computer restarts