Skip to main content
Completions

Out of My Head · Lesson 30 of 33

Agent components: trigger, condition, and action

The video for this lesson is being recorded. The whole lesson is written out below.

Read the lesson

0% complete

Put AI on it: the clone that answers and acts

Agent components: trigger, condition, and action

Jay WestOut of My Head · 2 min read

By the end: One autopilot decision taken apart into its trigger, condition and action.

The idea

Every agent has a trigger that activates it, a condition that validates it, and an action it takes.

You already use agents. You use them every morning when your alarm goes off and you check whether it is a weekday before getting out of bed. You use them when a Slack notification appears and you glance at the channel name before deciding whether to open it. You use them when someone asks "do you have a minute?" and you assess your current workload before answering.

An example

You design an agent for email triage: trigger — a new message lands in your inbox. Condition — the sender is not in your contacts and the subject contains a request. Action — move it to a 'Review Friday' folder. Without the condition, every email gets deferred. Without the trigger, the rule never fires. Without the action, you have built a sensor that watches but never responds. All three components must be present for the agent to function.

Where it goes wrong

Building agents with missing components. A trigger without a condition fires indiscriminately — you respond to every notification regardless of context. A condition without a trigger never activates — you have a brilliant rule that waits forever for a cue you never specified. An action without a trigger and condition is just a behavior you perform randomly. Most broken personal systems fail because one of the three components is implicit, vague, or missing entirely.

Make it stick

This week, design one new agent using explicit trigger-condition-action structure. Write it down in the format: 'WHEN [specific cue], IF [validation check], THEN [concrete action].' Post it where you will encounter the trigger. After three days, evaluate: Did the trigger fire? Did the condition catch the right cases? Did the action produce the outcome you wanted? Revise any component that underperformed.

Do this now

Pick one recurring decision you make on autopilot — what to eat for lunch, whether to check your phone when it buzzes, how to respond when a meeting runs over. Decompose it into its three components: (1) What triggers it? Name the specific situational cue. (2) What condition validates it? What must be true for you to proceed? (3) What action do you take? Write it as a single if-when-then statement: 'When [trigger], if [condition], then [action].' You have now reverse-engineered one of your default agents.

This step is drawn from one lesson of the full curriculum. Read the full lesson on howtothink.ai (L-0404)

Lesson 30 of 33

Next: lesson 31 →