Guide #12 Architecture 16 min read March 2026

Event-Driven Agents:
Work That Starts Itself

A human employee doesn't sit idle waiting for someone to type a prompt. They react to events: an email arrives, a deadline approaches, a Slack message pings, a deploy completes, a customer files a ticket. AI employees should work the same way. The human never types a prompt. The agent just does its job, on schedule, in response to events.

The prompt trap

Every AI agent demo starts the same way: someone types a prompt. "Research these 10 competitors." "Review this PR." "Process this spreadsheet." The agent does great work. The demo gets applause.

Then nothing happens. Because nobody remembers to type the prompt next Monday. Or the Monday after that. The competitive analysis was brilliant — it ran once. The PR reviewer was fast and thorough — on the one PR someone remembered to trigger it. The spreadsheet processor was perfect — when the PM manually uploaded the file.

This is the prompt trap. The value of an AI agent is proportional to how often it runs, and a prompt-driven agent runs only when a human remembers to prompt it. That's not an employee. That's a very expensive tool that someone has to pick up each time.

The fix is obvious, once you see it: make the agent react to events, not prompts.

Prompt-driven agent

  • Runs when someone remembers to type a prompt
  • Value is sporadic — brilliant when used, invisible when not
  • Depends on one person's habits and memory
  • No consistency, no schedule, no guarantee
  • "We should really run that agent again"

Event-driven agent

  • Runs automatically when events occur
  • Value compounds daily — consistent, reliable, always-on
  • Depends on infrastructure, not individual memory
  • Every deploy tested. Every morning briefed. Every invoice processed.
  • "The agent already handled it"

The four ways work arrives

Human employees receive work through four channels. AI employees should receive work through the same four channels.

1. Reactive: something happened (webhooks)

A customer files a support ticket. A PR gets opened. A payment fails. A deploy completes. A file gets uploaded to S3. These are events — things that happen in the outside world that require a response. The agent receives a webhook, spins up a sandbox, does the work, and posts the result.

EventAgent responseResult delivered to
Slack message in #ask-agentResearch the question, compile an answerSlack reply
GitHub PR openedClone, test, review, screenshot UIPR comment
Stripe payment failedInvestigate customer account, check billing portalSlack #billing-alerts
New file in S3 bucketDownload, process, upload resultS3 output bucket
PagerDuty alert firesCheck logs, investigate root cause, draft incident summaryIncident channel
Customer signup (via API)Provision their environment, send welcome emailInternal CRM + customer email

2. Scheduled: it's time (cron)

Some work happens on a rhythm. Every morning at 6am, every Monday, every 28th of the month, every quarter-end. These are scheduled tasks — the agent has a calendar and follows it.

ScheduleAgent taskFrom this guide
Daily, 6amCompetitive intelligence sweep — 30 competitor websitesGuide #7
Every Monday, 7amVendor portal AP run — 20 portals, invoice extractionGuide #5
Every deployQA test suite — 4 user flows in parallel browsersGuide #6
Monthly, 28thRevenue reconciliation across 3 data sourcesGuide #9
Every Friday, 5pmWeekly summary — aggregate agent activity, post to leadership

3. Deadline-aware: it's almost time (calendar)

The most sophisticated trigger is deadline awareness. The agent knows that Q1 compliance is due March 31st. Three days before, it starts preparing the data. One day before, it runs the final checks. On the deadline day, it files the report. It manages its own workload based on upcoming dates.

This is the behavior that makes AI agents feel like employees rather than tools. An employee with a calendar doesn't need to be told "prepare for the board meeting." They see it on Thursday and start pulling metrics on Wednesday. Calendar-driven agents work the same way.

4. Queue-based: work is waiting (SQS / EventBridge)

For high-volume event processing — thousands of file uploads, customer signups, or data records — events flow through a queue (SQS, RabbitMQ, Kafka). A consumer pulls messages from the queue and dispatches agent tasks. This pattern handles backpressure naturally: if events arrive faster than agents can process them, the queue buffers until capacity is available.

A day in the life of an AI workforce

Here's what an event-driven AI workforce looks like for a 50-person SaaS company. Seven agents, running autonomously, costing $24.50/month total.

Thursday, March 27, 2026

6:00 AM — Competitive intel agent wakes up. Creates 30 browser containers. Screenshots competitor homepages and pricing pages. Compares against yesterday. Posts to Slack: "Linear raised Starter pricing from $8 to $10/user. Notion changed their homepage headline." Cost: $0.05.

7:15 AM — AP agent runs its weekly Monday cycle (it's Thursday, so it's quiet today). No action. Cost: $0.

9:42 AM — An engineer opens a PR. GitHub webhook fires. PR review agent creates a sandbox, clones the branch, runs the test suite, screenshots the UI changes, posts a comment: "Tests passed. One potential null-pointer issue in users.ts:87. Visual changes on /settings page — sidebar widget moved." Cost: $0.05.

10:15 AM — Same PR is pushed to staging. Deploy webhook fires. QA agent launches 4 browser containers. Tests signup, login, billing, and mobile flows. Posts to Slack: "All 4 flows passed." Cost: $0.15.

11:30 AM — Someone asks in #ask-agent: "What's the latest pricing for Notion's team plan?" Slack webhook fires. Research agent creates a browser container, visits notion.so/pricing, extracts the answer, replies in the thread: "$10/user/month billed annually, $12/user/month billed monthly. AI add-on is $8/user." Cost: $0.03.

2:45 PM — A Stripe payment fails for customer acme-corp. Stripe webhook fires. Payment investigation agent checks the customer's billing history, finds the card expired, posts to #billing-alerts with the customer name, amount, and suggested action. Cost: $0.02.

4:00 PM — Calendar agent checks tomorrow's deadlines. Board meeting is tomorrow. Triggers the board-metrics agent, which pulls KPIs from the data warehouse, generates charts, and posts them to #leadership. Cost: $0.10.

Total cost for the day: $0.40. Seven agents, six events handled, zero prompts typed by a human.

The economics of event-driven AI

The cost model is fundamentally different from prompt-driven agents. A prompt-driven agent costs money when a human decides to use it. An event-driven agent costs money when events occur — which is continuous, predictable, and budgetable.

AgentTriggerRuns/monthCost/runMonthly
Competitive intelDaily cron30$0.05$1.50
PR reviewerGitHub webhook~100$0.05$5.00
QA on deployDeploy webhook~100$0.15$15.00
AP vendor portalsWeekly cron4$0.50$2.00
Slack researchSlack webhook~20$0.03$0.60
Payment failureStripe webhook~10$0.02$0.20
Monthly reconciliationMonthly cron1$0.20$0.20
Total AI workforce $24.50

$24.50/month for seven autonomous AI employees. Each one does work that previously required a human to either do manually or remember to trigger. The competitive intel agent alone replaces $2,000+/month of analyst time. The QA agent replaces $8,000+/month of QA engineer time. The AP agent replaces $4,000+/month of accounts payable staff time.

$24.50
Monthly cost, 7 agents
0
Prompts typed by humans
~265
Tasks completed/month

The organizational shift: from "I use AI" to "I manage AI"

Prompt-driven agents make the human a user. Event-driven agents make the human a manager.

When agents are prompt-driven, the question is: "What should I ask the AI to do right now?" The human is in the loop for every task. They're operating the tool.

When agents are event-driven, the question shifts: "Are my AI employees doing their jobs well?" The human reviews results, adjusts task descriptions, monitors success rates, and handles exceptions. They're managing a workforce.

This is the mental model shift that separates companies that "use AI" from companies that "have AI employees." The former get value sporadically, when someone remembers to type a prompt. The latter get value continuously, automatically, every day, on every event.

The best AI employees combine all three work patterns: they have a calendar of recurring responsibilities, they react to events as they arrive, and they accept ad-hoc assignments from their human manager. Just like a good human employee.

How much supervision do event-driven agents need?

Less than you think, but more than zero. The right answer is a graduated supervision model:

Getting started: your first event-driven agent

Pick the agent from this guide series that resonated most with your team. Then wire it to its trigger.

  1. If you picked the competitive intel agent → set a cron job at 6am that runs the monitoring script daily.
  2. If you picked the PR reviewer → add a GitHub webhook that points at your dispatcher on pull_request events.
  3. If you picked the QA agent → add a post-deploy step to your CI pipeline that triggers the QA run.
  4. If you picked the AP clerk → set a Monday 7am cron.
  5. If you picked the data pipeline → set a monthly cron on the 1st, or trigger from an S3 upload event.

Start with one agent, one trigger. Watch it run for a week. Verify the results. Then add the second agent. Then the third. Within a month, you have an AI workforce that handles recurring tasks without human intervention.

The first agent takes an afternoon to set up. Each subsequent agent takes 30 minutes, because the pattern is identical: event → sandbox → work → result → cleanup.


What's next

Your agents work while you sleep

Webhooks. Cron. Queues. Calendars. Seven agents, $24.50/month, zero prompts. The human never types a prompt.

Get Started Free