Manuals / Academy / Lesson 3

Your first automation

An automation is just: when this happens, do that — with an AI step in the middle to do the thinking. We'll build a real one: a new enquiry comes in, AI summarises and prioritises it, and the right person gets a tidy notification.

The shape of every flow

Almost every automation is three blocks in a row:

TriggerWhen something happens — a form is sent, an email arrives, a time of day.
BrainThink — an AI step reads it and decides: summarise, classify, draft a reply.
ActionDo — send an email or Slack, save a row, create a task.

Once you see this shape, every automation looks the same — only the three blocks change. We build these in n8n (the tool behind Flowsmith), where each block is a "node" you connect with a line.

What we'll build

A new-enquiry triage:

Result: instead of raw form emails, you get "High · Acme wants a quote for 500 units by Friday" — sorted before you even open it.

Building it

You won't wire this by hand — you'll describe it to the agent (Lesson 1's loop) and check each block as it appears. The pieces:

  1. Add the trigger. A Webhook node gives you a URL. Point the form's notifications at it (or forward gateway submissions to it) so each enquiry starts the flow.
  2. Add the brain. An AI node takes the form fields and runs a prompt (next section) that returns a summary + an urgency word.
  3. Add the action. A Send Email or Slack node, using the AI's summary in the subject and the original message in the body.
  4. Connect them trigger → brain → action, and switch the flow on.
Don't have n8n yet? That's fine — this is the part Flowsmith hosts and sets up with you. The lesson is about understanding the shape so you can direct it.

The AI step

The brain is only as good as its instructions. A solid starting prompt:

You triage incoming sales enquiries.
Given the enquiry below, reply with exactly two lines:
1) URGENCY: one of low / normal / high
2) SUMMARY: one sentence (who, what they want, any deadline)

Enquiry:
Name: {{name}}
Email: {{email}}
Message: {{message}}

The {{name}} bits are placeholders n8n fills from the form. Tune the wording the same way as Lesson 1 — try it, read the output, adjust, repeat.

Test it

  1. Send a test enquiry through the form (or n8n's "execute" button with sample data).
  2. Watch it flow — n8n shows each node lighting up and what it passed on. If a node goes red, that's just an error to read: copy it, paste it to the agent, fix, retry.
  3. Check the result landed — the notification arrived, summary and urgency correct.

Good habits

What's next

You now know the shape of every automation. From here it's just swapping the three blocks for your own case.