Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Automation

12. Automation β€” Turning the Agent into a Self-Running System

This chapter pulls together the foundational mechanism that has been appearing scattered across earlier chapters (17.4 KPI Reports, 18 Monitoring, 19.6 Results Delivered) into a complete picture of how Hermes runs itself without anyone pressing a button. If the earlier chapters are concrete applications, chapter 12 is the technical machinery behind all of them β€” the cron scheduler, webhook triggers, and the design rules that keep an automated system from becoming a source of noise or cost.

Two ways a task gets triggered: by time or by event

MechanismFires whenUsed for
Cron (12.1, 12.2)The set schedule arrivesPeriodic reports, health checks, weekly rollups
Webhook (12.3)An external event happensNew PRs, new issues, incoming messages, status changes

As already said in chapter 17: cron β€œflips the model” β€” instead of a human starting things, the agent wakes up on schedule, does the work, then goes back to sleep. Webhooks go the opposite way β€” the agent waits, and only reacts when the outside world reports that something happened.

Three design principles that run through the whole chapter

  1. Each run is a completely fresh session β€” no conversation is inherited, so the prompt must carry its own context (12.1).
  2. Not everything needs an LLM β€” deterministic scripts are cheaper, faster, and more reliable for the mechanical parts (12.4).
  3. Silence is a feature, not a bug β€” a good automation system must know when to say nothing (12.6).