# How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AI

> How to do n8n automation with AI: a form trigger, an OpenAI step that sorts each inquiry and drafts a reply, and an If for urgent ones. Free, hands-on.

Source: https://ynteractive.com/content/ai-workflow-automation-for-beginners · Updated 2026-11-17 · Free from Stepthrough (https://ynteractive.com)

## Practice it step by step

[Start the free practice](https://ynteractive.com/modules/n8n-ai-workflow-automation)

[Take the free module: why it matters, practice and a quick check →](https://ynteractive.com/courses/intro-to-ai-automation/6)

You do every step yourself in a practice copy of n8n. It checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, about 12 minutes, and nothing touches your real accounts. [Open full screen](https://ynteractive.com/modules/n8n-ai-workflow-automation)

Quick answer

To do n8n [automation](https://ynteractive.com/content/glossary/automation) with AI, start a workflow with an n8n Form trigger (On new n8n Form event) and submit a test inquiry. Click + and add the OpenAI Message a model step, choose GPT-5-MINI on n8n's free [credits](https://ynteractive.com/content/glossary#ai-credits) and ask for JSON with four named keys. Then add an If that checks the AI text for "urgent": true, so urgent inquiries go down their own branch.

Last updated November 17, 2026 · Last checked November 17, 2026

Free · Live now · [n8n Automation Toolkit](https://ynteractive.com/content/course/n8n-automation-toolkit) · [n8n](https://ynteractive.com/content/tool/n8n) · OpenAI · ~12 min · 26 steps · Beginner

Updated November 17, 2026. Built against the tool’s current screens and checked step by step. [How we check this lesson](https://ynteractive.com/content/about#how-we-check)

AI workflow automation means a workflow that runs by itself with an AI step in the middle: something triggers it, the AI reads or writes like a person would, and a rule decides what happens next. In this free lesson you build one for a made-up bookkeeping firm that gets about 40 web inquiries a month. An [n8n](https://ynteractive.com/content/tool/n8n) form catches each inquiry, GPT-5-MINI (on n8n's free OpenAI credits, so no API key) labels it Tax, Bookkeeping, Payroll or Other, marks it urgent or not and drafts a reply, and an If rule sends the urgent ones down their own branch. Every screen in the practice is a real n8n screen from our test run on 20 October 2026.

## At a glance

| Question | Answer |
| --- | --- |
| What you build | AI workflow automation for beginners: a form catches each client inquiry, an AI step sorts it and drafts the reply, and an If rule flags the urgent ones. Real n8n, free OpenAI credits, no keys. |
| Tools | n8n |
| Time | About 12 minutes, 26 steps in 5 parts |
| Level | Beginner, no coding needed |
| Cost | Free |
| Ways to learn it | [Practice it step by step](https://ynteractive.com/modules/n8n-ai-workflow-automation) |

### The 5 parts, in short

1. The business case: What inquiries cost today, The three parts of an AI workflow, Read the prompt first.
2. The trigger: a form that catches every inquiry: Start a new workflow, Pick n8n Form, On new n8n Form event, Name the form, and 5 more steps.
3. The AI step: read, sort and draft: Add the next step, Pick OpenAI, Choose a model, Write the prompt, and 2 more steps.
4. The rule: flag the urgent ones: Add a rule, Pick If, Use the AI answer, Pick contains, and 2 more steps.
5. What it saves: What this saves, Up next.

**Start here first:** [n8n: What Is n8n? Build Your First Workflow](https://ynteractive.com/content/n8n-tutorial-for-beginners-first-workflow) (module 1 of n8n Automation Toolkit)

**In the course:** Part 9 · n8n Automation Toolkit (Module 99 of the [full course](https://ynteractive.com/content/course))

**Part of:** [Intro to AI Automation](https://ynteractive.com/content/paths/intro-to-ai-automation) (step 4 of 6). Next up: [n8n vs Make: Pick the Right Automation Tool for Your Team in 10 Minutes](https://ynteractive.com/content/n8n-vs-make-which-should-my-team-use)

**Part of:** [AI for Accounting & Bookkeeping Firms](https://ynteractive.com/content/paths/ai-for-accounting-firms) (step 34 of 42). Next up: [n8n + Felo: A Monday Research Brief With a Source for Every Answer](https://ynteractive.com/content/n8n-felo-api-weekly-research-brief)

**Part of:** [Email on Autopilot](https://ynteractive.com/content/paths/email-on-autopilot) (step 15 of 18)

**Part of:** [Business Automations with n8n](https://ynteractive.com/content/paths/business-automations-n8n) (step 19 of 23). Next up: [n8n + Signatoro: AI Drafts Every Reply, Signatoro Signs It](https://ynteractive.com/content/n8n-signatoro-ai-email-reply-signature)

**Part of:** [n8n Jump Start](https://ynteractive.com/content/paths/n8n-jump-start) (step 23 of 27). Next up: [n8n + Signatoro: AI Drafts Every Reply, Signatoro Signs It](https://ynteractive.com/content/n8n-signatoro-ai-email-reply-signature)

**Part of:** [AI Agents 101](https://ynteractive.com/content/paths/ai-agents-101) (step 15 of 18)

**Part of:** [AI Back Office for Small Business](https://ynteractive.com/content/paths/ai-back-office) (step 20 of 22)

**Part of:** [n8n for Beginners: Your First Automations](https://ynteractive.com/content/paths/n8n-beginner) (step 4 of 12). Next up: [n8n: Items, JSON and Expressions, Explained by Doing](https://ynteractive.com/content/n8n-items-json-expressions-tutorial)

## The workflow you build

Three nodes, no other apps and no keys. Labels match n8n Cloud in October 2026. Download the prompt from the lesson.

| Node | What it does | What came out in our test |
| --- | --- | --- |
| On form submission (n8n Form) | Hosts a form with Your name and What do you need help with? | 1 item: Priya Shah, Shah Dental Studio, "Our payroll run failed this morning..." |
| OpenAI: Message a model | GPT-5-MINI reads the message and returns category, urgent, summary and reply as JSON | category Payroll, urgent true, a one-line summary and a draft reply promising a call today |
| If | text contains "urgent": true | True Branch (1 item) |

## What AI workflow automation is (and is not)

Plain automation moves data from one app to another on fixed rules: a form row goes into a sheet. AI workflow automation adds a step that handles the messy, human part: reading a free-text message, deciding what it is about, and writing a reply. The workflow still runs on rules; the AI only fills in the part that needs judgement. To see a chat, an automation and an agent handle the same job side by side, see [How to Get ChatGPT in Agent Mode: AI Agent vs Chatbot vs Automation](https://ynteractive.com/content/ai-agent-vs-chatbot-vs-automation).

It is not an [AI agent](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets). An agent decides its own next steps and picks tools. To build your first one, see [How to Create an AI Agent in n8n](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets). A workflow always runs the same path, which makes it easier to test, cheaper to run and safer to give to a small team.

## The business case

Clearview Bookkeeping (made up) gets about 40 inquiries a month through its website. Reading, sorting and writing a first reply takes about 5 minutes each, about 3.5 hours a month, and one or two urgent payroll problems a month still wait until the next morning. The workflow does the reading and the first draft in seconds and flags the urgent ones straight away. A person still checks and sends every reply. Swap in your own numbers.

## Trigger, AI step, rule: how the build goes

Create a workflow, click Add first step..., search form and pick n8n Form, then On new n8n Form event. Prefer to start from a ready-made workflow? See [How to Add an n8n Template](https://ynteractive.com/content/find-and-use-n8n-templates). Give the form a title and two elements, click Execute step and submit a test inquiry in the tab n8n opens: OUTPUT shows 1 item.

Click the + after the trigger, search OpenAI (it shows Free credits) and pick Message a model. Keep the credential n8n free OpenAI API credits, choose GPT-5-MINI, write the prompt and drag the message field into it. Ask for JSON with four named keys. Execute step: in our run it came back as Payroll, urgent true, with a summary and a reply.

Click the + after the AI step, add If, drag the AI text into value1, choose String, contains and type "urgent": true. Execute step: the inquiry lands in True Branch. For three or more routes and a Fallback output, see [n8n Switch Node Fallback Output, Plus the If Node: Route Items by Rules](https://ynteractive.com/content/n8n-if-and-switch-node-tutorial).

## Why ask the AI for a fixed shape

A rule can only test what it can find. "urgent": true is easy to check; "this seems quite pressing" is not. Name every key, list the allowed values and say JSON only, then test with a real example before you rely on it. Read the draft replies for the first few weeks: the AI is right most of the time, not every time.

## Links

- [n8n](https://n8n.partnerlinks.io/2a7wq6ej1z0t) (affiliate link): the workflow tool this lesson uses (free trial, no credit card).
- [n8n docs: OpenAI node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.openai/): every OpenAI operation, including Message a model.
- [n8n docs: If node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.if/): conditions, types and branches.

Disclosure: links marked "affiliate link" are partner links. If you sign up through one, Stepthrough may earn a commission at no extra cost to you. The lesson is free either way and does not depend on it.

## Try it yourself, free

Reading the steps is a start. Doing them is how it sticks. The interactive module walks you through every click in a practice copy of n8n, checks each step, and never touches your real accounts.

[Start “How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AI”](https://ynteractive.com/modules/n8n-ai-workflow-automation)

## Step by step: How to Do n8n Automation for Beginners: Sort Inquiries and Draft Replies with AI

All 26 steps of the interactive module, in order. In the module you watch each one, then do it yourself in a practice copy that checks your work.

### 1. The business case

1. **What inquiries cost today.** Clearview Bookkeeping gets about **40 web inquiries a month**. Dana reads each one, decides what it is and how urgent, and writes a first reply: about **5 minutes each**, or **3.5 hours a month**. Worse, an urgent payroll problem can sit until the next morning. Click the **monthly** total.
   Clearview gets forty web inquiries a month. Five minutes each to read, sort and answer. And urgent ones can wait a day.
2. **The three parts of an AI workflow.** An **AI workflow automation** has three parts: a **trigger** that starts it (a form is sent), an **AI step** that does the reading and writing, and a **rule** that decides what happens next. You build all three in n8n, in one workflow. Click the **workflow** card.
   An AI workflow has three parts. A trigger. An AI step. And a rule.
3. **Read the prompt first.** This is the prompt the AI step will use. It asks for four things back: a **category**, **urgent** true or false, a one-line **summary** and a short **reply**. Download a copy on this page, then click the **prompt**.
   This is the prompt. It asks for a category, urgent yes or no, a summary and a reply.

### 2. The trigger: a form that catches every inquiry

4. **Start a new workflow.** In n8n, click **Create workflow** and give it a name. On the empty canvas, click **Add first step...**
   Create a new workflow.
5. **Pick n8n Form.** n8n asks **What triggers this workflow?** Type **form** in the search box and click **n8n Form**. It makes a web form for you, so you need no other app.
   Search for form. It builds the web form for you.
6. **On new n8n Form event.** Under **Triggers**, click **On new n8n Form event**.
7. **Name the form.** The **On form submission** panel opens. Paste the title into **Form Title**. (We also typed a one-line description: "Tell us what you need. We reply within one business day.")
8. **Add two questions.** Click **Add Form Element** twice. Make the first one a **Text Input** labelled **Your name**, and the second a **Textarea** labelled **What do you need help with?** (Element Type, then Textarea).
   Add two form elements. Your name. And what do you need help with, as a text area.
9. **Test the form.** Both questions are in. Click **Execute step**. n8n opens the test version of your form in a new tab and waits for an answer.
   The test form opens in a new tab.
10. **n8n is listening.** n8n now shows **Listening for a test form submission**. Switch to the new tab it opened. Click the **message**.
    n8n is listening for a test answer. Go to the new tab.
11. **Send a test inquiry.** Fill the form as a client would. We used a made-up dental office: **Priya Shah, Shah Dental Studio**, "Our payroll run failed this morning and my 6 staff get paid Friday. Can someone call me today? 555-0142". Click **Submit**.
    Fill it in as a client would. A payroll problem, due Friday.
12. **The inquiry arrived.** Back in n8n, **OUTPUT** shows **1 item**: the name and the message, exactly as typed. That is the trigger working. Click the **output**.
    Back in n8n, the output shows one item. The trigger works.

### 3. The AI step: read, sort and draft

13. **Add the next step.** Close the panel. On the canvas, click the **+** after **On form submission**.
    Close the panel.
14. **Pick OpenAI.** Search **OpenAI** and click **OpenAI**. The green **Free credits** label means a new n8n account can use it without an OpenAI key. Then pick the action **Message a model**.
    Search OpenAI and click it. Free credits means no key needed to start. Then pick Message a model.
15. **Choose a model.** Check that **Credential** says **n8n free OpenAI API credits**. Open **Model** and click **GPT-5-MINI**: fast, cheap and good enough to sort messages.
    Use the n8n free credits. Pick GPT five mini.
16. **Write the prompt.** In **Prompt**, type the start of the prompt, then **drag** the field **What do you need help with?** from INPUT into the box, so each inquiry is read automatically. Finish with the four keys from the prompt sheet. Click the **Prompt** box.
    Then add the four things you want back.
17. **Run the AI step.** Click **Execute step**. It sends Priya's message to the model and waits a few seconds.
18. **Read what the AI did.** The answer: **category Payroll**, **urgent true**, a one-line **summary**, and a **reply** that promises a call today and asks for the error message. Five minutes of reading and writing, done in seconds. Click the **text**.
    Payroll. Urgent. A one line summary. And a reply that promises a call today.

### 4. The rule: flag the urgent ones

19. **Add a rule.** Close the panel. Click the **+** after **Message a model**.
20. **Pick If.** Search **If** and click **If**: "Route items to different branches (true/false)".
    Search If.
21. **Use the AI answer.** Drag **text** (the AI answer) from INPUT into **value1**. Then open the **is equal to** menu. Click **text**.
22. **Pick contains.** Under **String**, click **contains**.
23. **Check the urgent branch.** Type **"urgent": true** in **value2** (with the quotes), then click **Execute step**. Priya's inquiry lands in **True Branch (1 item)**. Click **True Branch**.
    Execute the step. Priya's message lands in the true branch.
24. **Your AI workflow.** Close the panel. The whole workflow ran: **form**, then **AI**, then **If**, with **1 item** on the **true** branch. Next you would connect the true branch to a Slack or text alert and the false branch to an email reply. Click **true**.
    Form. AI. Rule. One item on the true branch. Urgent ones can now alert you.

### 5. What it saves

25. **What this saves.** About **3.5 hours a month** of reading and first drafts, and no urgent payroll problem waits overnight. The AI drafts; Dana still sends. Click **What you have now**.
    Three and a half hours a month. And no urgent client waits overnight.
26. **Up next.** Next: send the drafted reply by email, or post urgent ones to Slack, with the nodes you already know. Click **Up next**.
    Next, send the reply and alert the team.

## Frequently asked questions

**How do I build a workflow with n8n?**

Create a workflow, click Add first step... and pick a trigger, such as n8n Form. Click the + after each step to add the next one, and click Execute step to check the OUTPUT before you move on. The workflow in this lesson has three nodes: a form, an OpenAI step and an If.

**How do I use n8n to automate a task?**

Pick one repeat job with a clear start, such as a new web inquiry, and make that the trigger. Add the steps a person would do, let an AI step handle only the reading and drafting, and add a rule for what happens next. Have a person check the drafts for the first few weeks.

**What is AI workflow automation?**

A workflow that runs by itself with an AI step in it. A trigger starts it, the AI step reads or writes (for example, sorting a message and drafting a reply) and rules decide what happens next.

**Do I need an OpenAI API key to try this in n8n?**

Not to start. In October 2026 new n8n Cloud accounts showed a Free credits label on the OpenAI node and a credential called n8n free OpenAI API credits. When those run out, add your own OpenAI key.

**What is the difference between an AI workflow and an AI agent?**

A workflow always follows the same path you drew. An agent decides its own next steps and which tools to use. Start with a workflow: it is easier to test and cheaper to run.

**Is AI workflow automation safe for client messages?**

Keep a person in the loop: let the AI label and draft, and have someone check before anything is sent. Do not send card numbers or passwords through the AI step, and check your provider's data settings.

[Start this module free](https://ynteractive.com/modules/n8n-ai-workflow-automation)

- Previous in n8n Automation Toolkit: [n8n: What Is n8n? Build Your First Workflow](https://ynteractive.com/content/n8n-tutorial-for-beginners-first-workflow)
- Next in n8n Automation Toolkit: [n8n: Items, JSON and Expressions, Explained by Doing](https://ynteractive.com/content/n8n-items-json-expressions-tutorial)

## More in n8n Automation Toolkit

- [n8n: Run a Workflow on a Schedule (Every Monday at 8am)](https://ynteractive.com/content/n8n-schedule-trigger-tutorial): Use the n8n Schedule Trigger to run a workflow by itself: every Monday at 8am, a timesheet reminder. Set the interval, test it now, and check the time zone.
- [n8n: Send Form Answers Straight to Google Sheets](https://ynteractive.com/content/n8n-form-to-google-sheets): Build a consultation request form in n8n (required fields, email, dropdown), test it, and add every answer as a new row in Google Sheets. No webhook, no form tool to…
- [n8n: Summarize Customer Emails with OpenAI](https://ynteractive.com/content/n8n-openai-summarize-emails): Your first AI step in n8n: send each customer email to OpenAI with one prompt and get a one-line summary plus the next step. No agent needed, about a cent of API use.
- [n8n: Reply to a Web Form Instantly with Respond to Webhook](https://ynteractive.com/content/n8n-respond-to-webhook-node): Use the n8n Respond to Webhook node to answer a website form in the same second: catch the request, build a confirmation with Edit Fields, and send it back with a 200.
- [n8n: Keep Only the Rows That Matter with Filter and Edit Fields](https://ynteractive.com/content/n8n-filter-node-edit-fields-set): Use the n8n Filter node to keep only the items that pass your rules, then Edit Fields (Set) to keep three clean fields: a lease list becomes a renewal to-do list.
- [n8n: Run JavaScript or Python in the Code Node (Total Hours by Client)](https://ynteractive.com/content/n8n-code-node-javascript-python): Use the n8n Code node to do what no ready-made node does: total timesheet hours per client in eight lines of JavaScript, then run the same job in Python.

[All 28 modules in n8n Automation Toolkit](https://ynteractive.com/content/course/n8n-automation-toolkit)

## More n8n tutorials

- [How to Create an AI Agent in n8n That Saves Ideas to Google Sheets](https://ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets): Build an AI agent for BrightPath Marketing that generates social media post ideas and saves them to Google Sheets — chat trigger, AI Agent, system prompt, model…
- [How to Build in Lovable: A Web App with an n8n AI Backend](https://ynteractive.com/content/lovable-n8n-web-app-ai-backend): Build a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together.
- [How to Do OCR in n8n: Read Receipt Photos into Google Sheets with AI](https://ynteractive.com/content/ai-receipt-extractor-n8n-google-sheets): Drop a photo of a receipt into an n8n chat. An AI agent reads it, pulls out the date, vendor and amount, picks a category, and adds a row to Google Sheets.
- [n8n AI Email Responder: Draft Gmail Replies Automatically](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n): Build an n8n agent that watches your Gmail, reads each new customer email, and writes a reply as a draft in the same thread, ready for you to check and send.
- [How to Make an n8n Workflow That Emails Each Tech Their Jobs from Sheets](https://ynteractive.com/content/n8n-daily-job-alerts-google-sheets-gmail): Every morning at 7, n8n reads a plumbing company's jobs sheet, skips anything not assigned yet, and emails each job to the tech it's assigned to — customer, address…
- [Gmail AI Triage: Auto-Label Every Email and Draft Replies](https://ynteractive.com/content/gmail-ai-triage-labels-drafts-n8n): Build an n8n workflow that reads each new email, sorts it as a lead, a client or an invoice with a Text Classifier, adds the matching Gmail label, and drafts a reply to…

## From the blog


[All blog posts](https://ynteractive.com/content/blog)

## Terms in this lesson

Plain-English definitions, each with an example from a free lesson.

Hyperautomation · Intent classification (intent detection) · Text Classifier (n8n) · [Workflow automation](https://ynteractive.com/content/glossary) · [Automation](https://ynteractive.com/content/glossary/automation) · n8n Form Trigger

[The full AI glossary](https://ynteractive.com/content/glossary)

## Browse related tutorials

[n8n Automation Toolkit (28)](https://ynteractive.com/content/course/n8n-automation-toolkit) · [n8n tutorials (59)](https://ynteractive.com/content/tool/n8n)
