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:
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:
- Trigger — a contact form submission (the same forms gateway you met in Lesson 2).
- Brain — AI writes a one-line summary and rates urgency (low / normal / high).
- Action — a tidy email (or Slack message) to the right person, urgency in the subject.
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:
- 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.
- Add the brain. An AI node takes the form fields and runs a prompt (next section) that returns a summary + an urgency word.
- Add the action. A Send Email or Slack node, using the AI's summary in the subject and the original message in the body.
- Connect them trigger → brain → action, and switch the flow on.
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
- Send a test enquiry through the form (or n8n's "execute" button with sample data).
- 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.
- Check the result landed — the notification arrived, summary and urgency correct.
Good habits
- Keep a human in the loop for anything outbound. Auto-summarising for your own inbox is safe; auto-replying to customers should wait until you trust it — start by drafting, you send.
- Start with one trigger and one action. Add branches (e.g. "if high, also text me") later.
- Test with real-looking data, including a messy enquiry — that's where AI steps earn their keep.
What's next
You now know the shape of every automation. From here it's just swapping the three blocks for your own case.