Library 12-Factor Agents

11. Trigger from anywhere, meet users where they are

Author
HumanLayer (Dex Horthy)
Licence
CC BY-SA 4.0 (text), Apache-2.0 (code)
Source file
content/factor-11-trigger-from-anywhere.md
Commit
d20c728
Supports
22

Share-alike: this text is licensed CC BY-SA 4.0. Anything adapted from it must credit the author and be released under the same licence. Code samples are Apache-2.0.

Vendored text from humanlayer/12-factor-agents, shown unchanged except that MDX components and import lines are removed and relative links point at GitHub. Not our writing.

If you’re waiting for the humanlayer pitch, you made it. If you’re doing factor 6 - launch/pause/resume with simple APIs and factor 7 - contact humans with tool calls, you’re ready to incorporate this factor.

1b0-trigger-from-anywhere

Enable users to trigger agents from slack, email, sms, or whatever other channel they want. Enable agents to respond via the same channels.

Benefits:

  • Meet users where they are: This helps you build AI applications that feel like real humans, or at the very least, digital coworkers
  • Outer Loop Agents: Enable agents to be triggered by non-humans, e.g. events, crons, outages, whatever else. They may work for 5, 20, 90 minutes, but when they get to a critical point, they can contact a human for help, feedback, or approval
  • High Stakes Tools: If you’re able to quickly loop in a variety of humans, you can give agents access to higher stakes operations like sending external emails, updating production data and more. Maintaining clear standards gets you auditability and confidence in agents that perform bigger better things

← Small Focused Agents | Stateless Reducer →

esc

Narrow with repo:jm layer:eval q:naive mine · ↑↓ to move, enter to open