Module 3 · Practice with AI: Hands On

Automation with AI: when to let the machine act

Lesson 9 of 12 8 min lesson Updated on October 30, 2026
Progress in the course75%

In this lesson

To automate is to connect a trigger to an action.

You will understand the three parts of an automation and where AI really helps. And you will see why an email can give orders to your bot.

The three parts

The trigger is what sets it off: a form submitted, an email received, a time of day. The condition is the rule that decides whether it goes ahead, such as "amount above a certain value". The action is what happens: saving a row, sending a message.

Tools such as Zapier, Make, n8n and IFTTT connect these parts without code. Most of it does not need AI. "Form submitted, save to the spreadsheet, notify by email" is a fixed rule, cheap and reliable.

Where the language model comes in

It comes in when free-form text has to be read. It is good at three things: classifying (is this email an order or a complaint?), extracting (name, city and deadline, into fields) and drafting (a reply that a person reviews before sending).

The fourth use is letting the model act on its own, deciding several steps. This is where measurements show the limit. In the TheAgentCompany study, from 2025, agents carried out 175 office tasks, and the best one completed 30.3% on its own. Anthropic recommends starting with the simplest solution.

What the pros know

Why does a bot working alone fail on a long task? Because the errors add up. If each step is right 95% of the time and one mistake ruins the rest, a 27-step task comes out right only about 25% of the time (0.95 multiplied by itself 27 times). It is a calculation, not a measurement, but it shows why a long task is fragile. That is why people who build automations act as the bridge: few steps, and a person checking at the points that matter.

An email giving orders

The model cannot reliably separate your instruction from the text it is reading. When a malicious order comes hidden in that text, it is called prompt injection. OWASP, a reference in security, says it is not clear whether a foolproof way to prevent it exists.

In 2025, a flaw in Microsoft 365 Copilot allowed an ordinary email, with a hidden instruction, to make the tool hand over internal data, with no click at all. Microsoft fixed it. A common setup carries the same risk: a form with a free-text field and a bot that reads and sends email. The defense is to limit what the bot can do: the least permission possible, a person approving sensitive actions and a log of every call.

Who is responsible for the bot

In 2024, an Air Canada chatbot promised a passenger a discount that the policy did not allow. The company said it was not responsible for what the bot said. The Canadian tribunal disagreed and ordered it to pay. A bot that speaks on behalf of the company is the company speaking.

In Brazil, the LGPD, the country's data protection law (article 20), gives you the right to ask for a review of a decision made only by a machine. The Consumer Protection Code (article 42) forbids debt collection that embarrasses the customer, so a collection message generated by AI needs someone to read it first. The rule that follows: the bot introduces itself as an automated assistant, says how to reach a person and never pretends to be human.

Four rungs based on the cost of a mistake

The question that puts everything in order: if the bot gets it wrong one time in four, what happens? If the answer is "I fix one row in the spreadsheet", automate it. If it is "a customer gets charged by mistake", a person stays in the loop.

RungWhat it doesExample
1. No modelFixed ruleA paid order triggers a confirmation email
2. Model sortsClassifies or extracts; nobody receives anything automaticallyTagging messages as quote request or complaint
3. Model draftsA person reads and sendsReply to a customer, collection message, proposal
4. Model acts, with a brakeOnly reversible actions, with an off switch, a limit and a logMarking and archiving notification emails

Always test with made-up data and with your own phone before any real customer.

Practice · 5 min

  1. List three repetitive tasks from your week. For each one, ask how much a mistake costs and mark the rung, from 1 to 4.
  2. Build a rung 1 automation on the free plan of a tool: form, row in the spreadsheet, notification to you.
  3. Write your bot's introduction message: who it is, what it does and how to reach a person.

Summary

Sources

Accessed in October 2026.

  1. Anthropic. Building effective agents (2024).
  2. Xu et al. TheAgentCompany (2025).
  3. OWASP. LLM01:2025 Prompt Injection. BleepingComputer, flaw CVE-2025-32711 (2025).
  4. Civil Resolution Tribunal (Canada). Moffatt v. Air Canada (2024).
  5. Brazil. LGPD, art. 20; CDC, art. 42.

Lesson quiz

Three situations to apply what you learned.

Lesson 9 of 12

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp