Heidelberg AICurriculum
Track 11 · Advanced
11.4

n8n Workflow advanced

Build real scientific tools — n8n as your lab bench

5 lessons 2026-08-06 AI-generated

1Overview

Five sessions on building real scientific AI tools in n8n — scientific database APIs, error handling, a tool-using research assistant, a five-stage literature pipeline, and your own domain-tuned review pipeline. By the end you can ship a small but useful research tool.

Five sessions that turn n8n from a demo into a lab bench. You query scientific APIs directly — PubMed esearch and efetch — then make the pipeline survive their failures instead of crashing on them, compose a research assistant out of search plus paper details plus synthesis, and run a five-stage pipeline that extracts structured data from abstracts. The last session points the whole thing at a question from your own field. → It assumes the basics chapter: a trigger, a model node and an IF branch are not re-explained.

1.1After this chapter you can
Query PubMed (esearch + efetch) and other scientific APIs from n8n
Build a pipeline that handles API failures without crashing
Compose a research assistant from PubMed search + paper details + AI synthesis
Run a five-stage pipeline that extracts structured data from abstracts
Tune a literature review pipeline to a question from your own field

2Lessons 5

2.1 Query PubMed with natural language in n8n

PubMed's API is free and needs no authentication, allowing natural‑language queries to retrieve and summarise paper abstracts within n8n.

Do this first Ask the lab via Mattermost·Route and transform text with AI

Run a workflow that retrieves and summarises scientific papers without needing credentials

TryFind papers about CRISPR base editing from 2024

In n8n, open the imported workflow and click the Chat panel, then type the prompt exactly as shown. Watch the Execution Log on the right—each node will populate with API responses before the AI’s summary appears.

  1. Download Session 5 — Pulling data from scientific databases from the Downloads page
  2. In n8n, click Import from file to load the downloaded workflow and open the chat panel
  3. Enter a natural‑language query such as “Find papers about CRISPR base editing from 2024” in the chat input
  4. After the AI response appears, type another prompt like “What are the main limitations mentioned in those papers?”
  5. Start a new search by typing “Find me papers about mRNA vaccine immunogenicity”
  6. Open the execution log on the right and click each node to view its output at every stage
The workflow the real, live n8n canvas — click to pan & zoom, or copy it onto your own
Loading the live workflow…
  • You'll see AI‑summarised lists of papers appear for each query and the execution log shows output from every node
  • Takeaway plain‑language prompts can drive PubMed searches and AI summarisation within a single n8n workflow
  • Check What result does the workflow produce after you type a natural‑language query into the chat panel and how is it displayed in the execution log?

2.2 Make pipelines branch on input and handle errors

The workflow checks for a PubMed ID, routes accordingly, and captures HTTP errors without stopping the run.

Do this first Route and transform text with AI·Query PubMed with natural language in n8n

Trigger all decision branches and see how failures are caught

TrySummarise paper 38167000 What is the latest in cancer immunotherapy? Summarise 99999999

Paste the three lines into the n8n chat panel after importing the workflow. After each entry watch the execution log to see which path lights up green, and finally click the Fetch Paper node to verify the error connector turns red.

  1. Download the session file from Downloads (curriculum.32dots.de/share)
  2. In n8n, select Import from file and load the downloaded workflow
  3. Open the chat panel, type a valid PMID such as 38167000 and run it
  4. Observe the execution log to see which path is highlighted green
  5. Type a query without a PMID like “What is the latest in cancer immunotherapy?” and run it
  6. Type an invalid PMID such as 99999999 and run it
  7. In the execution log, click the Fetch Paper node and note the red error connector
The workflow the real, live n8n canvas — click to pan & zoom, or copy it onto your own
Loading the live workflow…
  • You'll see All three execution paths light up in the log, showing which node and branch ran each time
  • Takeaway Pipelines can automatically choose a path based on data presence and capture HTTP errors without stopping the whole workflow
  • Check How can you tell from the execution log that an HTTP error was captured by the error connector without halting the entire pipeline?

2.3 Generate a synthesized research summary with n8n

A research‑assistant workflow that searches PubMed, retrieves metadata and uses AI to synthesise a concise answer citing specific papers.

Do this first Query PubMed with natural language in n8n·Make pipelines branch on input and handle errors

Ask a scientific question and receive a concise answer that cites specific papers

TryWhat are the current approaches to CAR‑T cell therapy in solid tumors?

Paste this text into the Chat panel of the imported ‘Session 7 — Research assistant’ workflow in n8n, then hit Enter. Watch the execution log progress through Plan Search → PubMed Search → Extract IDs → Paper Details → Format → AI Synthesizer for the synthesized answer.

  1. Download the workflow file from Downloads at curriculum.32dots.de/share
  2. In n8n, click Import from file, load the workflow and open the chat panel
  3. Enter a research question such as “What are the current approaches to CAR‑T cell therapy in solid tumours?” and press Enter
  4. Watch the execution log display the nodes Plan Search → PubMed Search → Extract IDs → Paper Details → Format → AI Synthesiser
  5. Enter a follow‑up question like “Which of those approaches is furthest along in clinical trials?” and submit
  6. Enter another query such as “What are the common limitations mentioned across these papers?” and submit
  7. Open the Format Paper List node to inspect the generated list of papers
The workflow the real, live n8n canvas — click to pan & zoom, or copy it onto your own
Loading the live workflow…
  • You'll see A synthesised response referencing PMIDs appears, followed by a coherent follow‑up using the same papers
  • Takeaway n8n can chain PubMed searches to an AI synthesiser delivering structured paper lists and summarised answers
  • Check In what way does the workflow allow you to ask follow‑up questions and receive answers that reference the same set of retrieved papers?

2.4 Run a multi‑stage literature pipeline

A multi‑stage pipeline that turns a plain‑language query into a formatted Markdown comparison table of papers, including title, year, method, key finding and limitation.

Do this first Query PubMed with natural language in n8n·Make pipelines branch on input and handle errors

Generate a formatted Markdown comparison table from a plain‑language query using the n8n workflow

TrymTOR inhibitor resistance mechanisms in breast cancer

After importing the workflow (⋯ → Import from file) open the Chat panel in n8n and paste the prompt there. Then hit Enter and watch the execution log on the right as each node lights up, ending with a Markdown table in the response.

  1. Download the ‘Session 8 — Multi‑stage literature pipeline’ file from the curriculum site
  2. In n8n, click Import from file and select the downloaded workflow
  3. Open the Chat Panel, type your research query and submit
  4. Observe the execution log as each node lights up while the five‑stage pipeline runs
  5. Click the Stage 3 — AI Extract node in the log to view its raw JSON output
The workflow the real, live n8n canvas — click to pan & zoom, or copy it onto your own
Loading the live workflow…
  • You'll see A comparison table with several papers appears and you can identify Stage 3 (AI extraction) in the execution log
  • Takeaway Chaining PubMed search, AI extraction and structuring lets n8n turn a simple query into a ready‑to‑use literature summary
  • Check Which specific node’s raw JSON output is inspected to verify the data before it is transformed into the final Markdown comparison table?

2.5 Run your own literature review pipeline

You reuse the multi‑stage literature pipeline, customizing the PubMed query to your own field and evaluating the AI‑generated extraction for accuracy.

Do this first Query PubMed with natural language in n8n·Run a multi‑stage literature pipeline

Generate a customised literature‑review workflow for a specific scientific question

TryIn n8n, open the imported "Session 8 — Multi-stage literature pipeline" workflow, set the PubMed query node to your chosen question (e.g., "CRISPR screens in primary T cells") with retmax=8, then click **Execute Workflow** and after it finishes, use **Export > CSV** on the AI extraction node’s output table.

Paste this into the n8n editor screen: edit the query field, run the workflow, and export the results. Verify that the exported CSV shows columns for method, sample size, key finding, and limitation before proceeding.

  1. Go to Downloads and re‑import the file “Session 8 — Multi‑stage literature pipeline” into n8n
  2. Open the first node and replace the PubMed query with your chosen question, keeping retmax at 8
  3. Execute the workflow by clicking Run
  4. Inspect the output table that lists method, sample size, key finding and limitation for each paper
  5. Read three rows and record at least one instance where the AI mis‑identified a method, missed a limitation or fabricated a number
  • You'll see A table of extracted study details where you can identify one correct, one incorrect and one uncertain entry
  • Takeaway AI can auto‑extract study metadata but every result needs manual verification
  • Check When reviewing the generated table, what indicators should you record to assess whether the AI correctly extracted methods, limitations, or introduced errors?

3Templates 13 from n8n.io

Real workflows other people built and published, each with its live canvas. Open one, read the nodes, copy what you need.

RAG — know your documents

3

Basic RAG chat

n8n.io ↗

What it does. Two flows in one: (1) ingest documents into a vector store, (2) chat over them. The agent retrieves the top matching chunks and the model answers only from those.

When you'd use it. Your lab's SOPs, a folder of protocols, recent meeting notes — anything you want the AI to answer grounded in, not guess about. The 'hello world' of RAG.

🧵
Simple Memory — session key gotcha

The Simple Memory node needs a session key to separate different users' chat histories. When the Chat Trigger connects directly to the Agent you can leave the key mode on Connected Chat Trigger Node and n8n fills it in automatically. The moment you add any node between the Chat Trigger and the Agent (a Set node, a router, a webhook pre-processor), that auto-detection breaks — you must switch to Define below and enter: ={{ $('When chat message received').first().json.sessionId }}. This was the exact bug that broke Session 2 (cos2 voice-to-lab-ai) — intermediate nodes between trigger and memory made the key come through empty.

Preview the workflow 12 nodes
Open on n8n.io →

PDF-based RAG with OpenAI + Pinecone + Cohere reranking

n8n.io ↗

What it does. Upload PDFs through a form → chunk → embed → Pinecone. Chat side adds a Cohere reranker so the three chunks the model actually reads are the three best of twenty candidates, not just the three highest-scoring embeddings.

When you'd use it. Reading 30+ papers for a review and you want to chat over them. Reranking is the quiet step that separates 'cute demo' from 'I'd actually quote this in my thesis'.

Preview the workflow 11 nodes
Open on n8n.io →

Local chatbot with RAG (Ollama + Qdrant)

n8n.io ↗

What it does. Same RAG pattern, but the chat model runs on Ollama and the vectors sit in Qdrant — all on your own machine. No API keys, no cloud, no data leaving the building.

When you'd use it. When the documents contain unpublished data, patient information, or anything that can't leave institute hardware. Slower than the cloud version; zero data-leaving risk.

🧵
Simple Memory — session key gotcha

The Simple Memory node needs a session key to separate different users' chat histories. When the Chat Trigger connects directly to the Agent you can leave the key mode on Connected Chat Trigger Node and n8n fills it in automatically. The moment you add any node between the Chat Trigger and the Agent (a Set node, a router, a webhook pre-processor), that auto-detection breaks — you must switch to Define below and enter: ={{ $('When chat message received').first().json.sessionId }}. This was the exact bug that broke Session 2 (cos2 voice-to-lab-ai) — intermediate nodes between trigger and memory made the key come through empty.

Preview the workflow 11 nodes
Open on n8n.io →

Knowledge graph & GraphRAG

3

YouTube channel → Neo4j knowledge graph (GraphRAG)

n8n.io ↗

What it does. Scrapes a whole YouTube channel via Apify, runs each transcript through an LLM to pull out entities and relationships, and MERGEs them into a Neo4j graph. A chat agent then answers questions against the graph instead of against a pile of text — "which videos talk about automation AND mention n8n?" is a graph query, not a keyword search.

When you'd use it. The clearest end-to-end GraphRAG example we found: ingest → entity extraction → graph write → query. Read it for the pattern, then point the ingestion end at your own corpus. Neo4j Aura's free tier holds ~200k nodes, which is plenty to try it.

Preview the workflow 19 nodes
Open on n8n.io →

Chat with your PDFs via GraphRAG (no vector store)

n8n.io ↗

What it does. Ingests documents into a graph instead of a vector store. The agent traverses the graph at query time — following entity → relation → entity hops — so answers can chain facts across papers, not just retrieve one chunk.

When you'd use it. When 'show me the chunk that mentions X' isn't enough and you need 'what connects X to Y'. Shines for mechanism-of-action questions, pathway walks, 'who cites whom'.

🧵
Simple Memory — session key gotcha

The Simple Memory node needs a session key to separate different users' chat histories. When the Chat Trigger connects directly to the Agent you can leave the key mode on Connected Chat Trigger Node and n8n fills it in automatically. The moment you add any node between the Chat Trigger and the Agent (a Set node, a router, a webhook pre-processor), that auto-detection breaks — you must switch to Define below and enter: ={{ $('When chat message received').first().json.sessionId }}. This was the exact bug that broke Session 2 (cos2 voice-to-lab-ai) — intermediate nodes between trigger and memory made the key come through empty.

Preview the workflow 16 nodes
Open on n8n.io →

Custom reasoning agent with GraphRAG + ontology

n8n.io ↗

What it does. Same idea as GraphRAG, but the graph is shaped by a hand-written ontology (your domain's types + allowed relations). The agent reasons inside those rules, which stops it from inventing relationships the domain doesn't permit.

When you'd use it. Any domain with a real schema — medical, legal, regulatory, experimental protocols. When 'close enough' isn't good enough and the agent must respect that Gene → encodes → Protein but never Gene → authored-by → Protein.

Preview the workflow 5 nodes
Open on n8n.io →

Document parsing & OCR

3

AI research agents with Mistral OCR

n8n.io ↗

What it does. Mistral's OCR turns scanned PDFs (figures, tables, handwritten scans) into clean structured text. An AI research agent then reads the output and writes a synthesis. Handles what plain PDF-text extraction quietly fails on.

When you'd use it. Old scanned papers, historical lab notebooks, conference posters, anything where the PDF is actually an image. Also when tables matter — Mistral OCR preserves structure plain extraction wipes out.

Preview the workflow 23 nodes
Open on n8n.io →

Parse PDF/DOCX from Drive → OCR → Slack

n8n.io ↗

What it does. Watches a Drive folder, extracts text + tables from every new PDF or DOCX, runs OCR on the scanned ones, and pings Slack with a summary. One pipeline that handles both native and scanned documents.

When you'd use it. A shared 'to-read' folder for the lab — new papers, SOPs, meeting notes — where you want a one-line summary in Slack so nothing slips. Same shape works for Mattermost.

Preview the workflow 33 nodes
Open on n8n.io →

Research URL → analysed, validated, documented

n8n.io ↗

What it does. Submit a paper or article URL in a form; the workflow scrapes it, runs a research-analysis agent over the text, passes the output through a second validation agent, and writes a formatted research document plus a log row in Google Sheets.

When you'd use it. The interesting part is the second agent: one writes, another checks the first one's work before anything is filed. That generator/reviewer split is the single most useful habit to steal from this template. Note it uses community nodes — self-hosted n8n only, which is what you are running.

🧵
Simple Memory — session key gotcha

The Simple Memory node needs a session key to separate different users' chat histories. When the Chat Trigger connects directly to the Agent you can leave the key mode on Connected Chat Trigger Node and n8n fills it in automatically. The moment you add any node between the Chat Trigger and the Agent (a Set node, a router, a webhook pre-processor), that auto-detection breaks — you must switch to Define below and enter: ={{ $('When chat message received').first().json.sessionId }}. This was the exact bug that broke Session 2 (cos2 voice-to-lab-ai) — intermediate nodes between trigger and memory made the key come through empty.

Preview the workflow 20 nodes
Open on n8n.io →

Scientific research pipelines

4

Systematic literature review (PRISMA-style, with an audit trail)

n8n.io ↗

What it does. Pulls papers from a Google Drive folder, extracts the text, and has LLM agents score each one against explicit inclusion/exclusion criteria. Included papers go to a Qdrant vector store with Gemini embeddings; excluded ones go to a separate folder. Every decision, with its justification, is logged to Airtable.

When you'd use it. When the review has to be defensible, not just fast — the Airtable log is what turns "the AI picked these" into a PRISMA-compliant audit trail you can put in a methods section. The closest thing in this list to lessons 08 and 09.

Preview the workflow 31 nodes
Open on n8n.io →

arXiv paper summarisation

n8n.io ↗

What it does. Give it an arXiv ID or URL → downloads the PDF → an AI Agent writes a tight structured summary (contribution, method, results, limits). Handles the maths-heavy pre-prints arXiv is full of.

When you'd use it. Keeping up with a fast-moving ML / stats / comp-bio area where ten new pre-prints land every Friday. Paired with a schedule trigger + a Mattermost post, this is your personal 'paper of the day' bot.

Preview the workflow 12 nodes
Open on n8n.io →

Daily RAG paper hub: arXiv → Notion

n8n.io ↗

What it does. Every morning: pulls new arXiv papers on your topics, embeds them into a small RAG store, and writes one Notion page per paper with summary + key quotes + 'why you'd care'. Your RAG index grows on its own.

When you'd use it. When you want a durable, searchable archive of what you're reading — not just a firehose. A month in, you can chat over every paper you've ever opened, grounded in the exact text.

Preview the workflow 17 nodes
Open on n8n.io →

Open deep-research autonomous agent

n8n.io ↗

What it does. Give it a question; the agent plans, searches, reads, re-queries, and iterates until it has a multi-page, cited answer. Same shape as the paid 'deep research' products — but running in your own n8n.

When you'd use it. The open-ended questions that take a human half a day — 'what's the current consensus on X', 'who are the serious labs working on Y', 'what are the three strongest arguments against Z'. Run it overnight; read the report in the morning.

🧵
Simple Memory — session key gotcha

The Simple Memory node needs a session key to separate different users' chat histories. When the Chat Trigger connects directly to the Agent you can leave the key mode on Connected Chat Trigger Node and n8n fills it in automatically. The moment you add any node between the Chat Trigger and the Agent (a Set node, a router, a webhook pre-processor), that auto-detection breaks — you must switch to Define below and enter: ={{ $('When chat message received').first().json.sessionId }}. This was the exact bug that broke Session 2 (cos2 voice-to-lab-ai) — intermediate nodes between trigger and memory made the key come through empty.

Preview the workflow 14 nodes
Open on n8n.io →

4Downloads 4 files

Download the file, then in n8n: ⋯ → Import from file.

Advanced

5You’ll know it worked 47 checkable outcomes in this chapter

  • Lab members receive a Slack message each Monday with 10 summarized abstracts
  • A Markdown table appears with at least 3-4 papers, showing title, year, method, key finding, and limitation
  • Rows without any of the specified keywords are absent from the final table
  • After submitting the form, open the sheet and see a new row with the submitted values.
  • The Read node returns the row that was just inserted.
  • The node’s output field contains the AI‑generated reply
  • Labels appear on new emails in your Gmail inbox as defined
  • Visitors receive a confirmation email and the appointment appears in your calendar

47 outcomes in all — one per recipe below.

6FAQ, Tips & How-to 64

one problem, one solution, one action

Research & data tools2

How-to n8n Scientist +1

Need a weekly list of fresh PubMed papers

The lab gets a curated 10-paper reading list in Slack before the weekly meeting — no manual search needed.

~15 min · low code AI-generated
How-to n8n Physician

Want a weekly list of new specialty research

The physician gets a curated weekly reading list in their inbox instead of relying on catching relevant new studies between conferences.

~15 min · low code AI-generated
How-to n8n Everyone

Different source formats (e.g., Wikipedia vs. PubMed) affect how well the model can answer, revealing strengths and limits of the fetch-and-stuff method

Lesson → AI-generated
How-to n8n Everyone

Ask a research question in plain English

You can ask a research question in plain English and receive AI-summarised abstracts from PubMed

Lesson → AI-generated
How-to n8n Everyone

Want to pull PMID list from PubMed search results

You can capture the list of PMIDs from the first API call to feed subsequent requests

Lesson → AI-generated
How-to n8n Everyone

Need citation counts for PubMed papers

You can enrich PubMed results with citation counts by calling the Semantic Scholar API for each PMID

Lesson → AI-generated
How-to n8n Everyone

Need citation count and PMID from an API response

A Set node lets you rename and store the fields you need for later use

Lesson → AI-generated
How-to n8n Everyone

Need citation numbers in AI prompt

Modifying the Prepare Context Set node to add citation data ensures the LLM mentions it in its summary

Lesson → AI-generated
How-to n8n Everyone

Separate PubMed IDs from plain text

You can separate valid PMID inputs from free-text queries in one step

Lesson → AI-generated
How-to n8n Everyone

PubMed request returns 404

Unexpected failures can be handled without breaking the whole workflow

Lesson → AI-generated
How-to n8n Everyone

The visual log shows exactly which nodes ran and whether they succeeded or errored

Lesson → AI-generated
How-to n8n Everyone

Want to label each workflow branch with its outcome

You can tag each execution branch with a clear outcome for later aggregation

Lesson → AI-generated
How-to n8n Everyone

Want one node to receive data no matter which path runs

A single downstream node can receive data regardless of which branch fired

Lesson → AI-generated
How-to n8n Everyone

Need to explain workflow paths

Adding notes keeps future maintainers aware of each path's purpose

Lesson → AI-generated
How-to n8n Everyone

I have a research question

Sending a natural-language query starts the chain of nodes that fetches papers and synthesises an answer

Lesson → AI-generated
How-to n8n Everyone

Need a single keyword for a follow‑up PubMed search

An AI Agent can parse the first synthesis and output only the most important keyword for a second PubMed query

Lesson → AI-generated
How-to n8n Everyone

Want a PubMed search link from a keyword

A Code node can programmatically create the correct eSearch endpoint using the keyword

Lesson → AI-generated
How-to n8n Everyone

I need additional PubMed articles

Repeating the PubMed nodes with a new URL pulls additional papers that complement the first set

Lesson → AI-generated
How-to n8n Everyone

Combine original and second‑round papers

A Set node can merge two arrays of paper objects into one collection for final synthesis

Lesson → AI-generated
How-to n8n Everyone

A long list of papers from two rounds

Feeding the combined paper list to an AI Agent lets it produce a cohesive research landscape overview

Lesson → AI-generated
How-to n8n Everyone

Want a quick literature overview from a research question

You can automatically turn a research question into a formatted Markdown table of papers with key details

Lesson → AI-generated
How-to n8n Everyone

You can debug the AI extraction step by running it alone on a single abstract

Lesson → AI-generated
How-to n8n Everyone

Need citation numbers in my paper list

You can extend the literature pipeline to fetch citation counts from Semantic Scholar and display them in the final table

Lesson → AI-generated
How-to n8n Everyone

Paper missing citation data

When a paper has no citation data yet, the pipeline should still produce a table entry without breaking

Lesson → AI-generated
How-to n8n Everyone

Lost a saved workflow and want it back

You can quickly restore the demo workflow without rebuilding it

Lesson → AI-generated
How-to n8n Everyone

Need the workflow to look for just one research question

Tailoring the search term focuses the pipeline on papers you actually need

Lesson → AI-generated
How-to n8n Everyone

Pull key details from research papers

Running the workflow produces a table with method, sample size, key finding, and limitation for each paper

Lesson → AI-generated
How-to n8n Everyone

Getting rid of papers without domain keywords

Filtering out papers whose methods lack domain-specific keywords reduces irrelevant rows

Lesson → AI-generated
How-to n8n Everyone

Tiny studies polluting results

Dropping tiny studies prevents noisy data from contaminating the summary

Lesson → AI-generated
How-to n8n Everyone

Missing a data point in AI extraction

Adding a new extraction target (e.g., statistical test) enriches the structured output

Lesson → AI-generated
How-to n8n Everyone

Want a fast literature search without manual digging

Get a ranked reading list in minutes instead of hours of manual searching

~15 min · low code freeCodeCamp ↗ AI-generated
How-to n8n Everyone

Need a chatbot that gives only ranked lists

By attaching an OpenAI chat model to the AI Agent node and configuring system prompts with specific output formatting, you can force the LLM to return only the desired list items, reducing token usage.

How-to n8n Everyone

Chatbot forgets previous prompts

Adding Simple Memory to an AI Agent stores the last N interactions, allowing follow‑up questions to inherit prior context without re‑prompting the user.

How-to n8n Everyone

User fills out a sign‑up form

The "On Form Submission" trigger lets you build a web form directly in n8n, map fields to variables, and output structured JSON for downstream nodes.

How-to n8n Everyone

New user signs up on my form

Connecting a Google Sheets "Append Row" node to the form trigger writes each submission as a new spreadsheet row, enabling persistent storage without code.

How-to n8n Everyone

LLM spits out random text instead of a neat ranked list

Including one or two formatted examples inside the system prompt (one‑shot) guides the model to mimic the desired output style, striking a balance between zero‑shot and few‑shot prompting.

How-to n8n Everyone

Unsure which branch runs first in a multi‑branch workflow

n8n runs each branch sequentially based on canvas position: top‑most to bottom‑most, left‑most when heights match. Understanding this lets you design workflows without manually reordering execution.

n8n ↗ Lesson → AI-generated
How-to n8n Everyone

Need extra actions in my workflow without coding

Community nodes are third‑party packages that add new actions to n8n without writing code. Installing them from the npm registry lets you use pre‑built integrations like Amplify or MCP directly in your workflows.

Ryan & Matt Data Science ↗ Lesson → AI-generated
How-to Everyone

Need a personal n8n server

Running n8n in Docker gives you full control over updates, ports, and data storage while keeping the setup simple with a single compose file.

Ryan & Matt Data Science ↗ Lesson → AI-generated
How-to n8n Everyone

Want to handle each automation platform separately

A Manual Trigger lets you start a workflow on demand, while the SplitInBatches node can turn an input array into separate items for downstream processing.

Ryan & Matt Data Science ↗ Lesson → AI-generated
How-to n8n Everyone

Want to keep workflow info without extra spreadsheets

n8n Data Tables act like built‑in spreadsheets, allowing you to read/write rows directly from workflows, eliminating extra API calls to Google Sheets or Airtable.

Ryan & Matt Data Science ↗ Lesson → AI-generated
How-to n8n Everyone

Need an answer from a workflow via chat

The Chat Hub provides an internal LLM interface that can invoke n8n workflows through a chat trigger, enabling conversational automation.

Ryan & Matt Data Science ↗ Lesson → AI-generated
How-to n8n Everyone

Need an external app to kick off your automation

A webhook node creates a public URL that can be called by any service to start a workflow. It acts as the entry point, similar to a door opening when someone knocks.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Need only certain values from incoming data

The Edit Fields node lets you map, rename, and filter properties of the incoming JSON so downstream nodes receive only what they need.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Want to keep collected form entries in a spreadsheet

The Google Sheets node uses OAuth credentials to write rows into a sheet, turning n8n into a lightweight database for collected form entries.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

A user sends a Telegram command

The Telegram node can act as a trigger that fires whenever a user sends a message to your bot, enabling chat‑based automation.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Need a chatbot response in your workflow

The OpenAI node sends a prompt to GPT‑4 (or other models) and returns the generated text, allowing you to build conversational agents.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Bot forgets what you said before

By storing previous messages in an n8n “Set” or “Data Store” node, you can feed past context back into the OpenAI prompt, giving the bot memory.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Need a workflow to run on its own

Publishing a workflow activates its triggers and allows it to run without manual execution, turning your design into a live automation.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Want your workflow to start on its own at regular times

The Cron node lets you define time‑based schedules (e.g., every hour) so the workflow runs without external input.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

API call fails and the whole flow stops

Enabling ‘Continue On Fail’ on a node prevents the entire workflow from stopping when that node encounters an error, allowing later nodes to handle fallback logic.

YouTube ↗ Lesson → AI-generated
How-to Everyone

External service needs to hit my local n8n webhook

ngrok creates a secure tunnel from a public URL to your local n8n instance, enabling external services to call your locally hosted webhook.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

New emails stay unorganized

Uses n8n’s Gmail node to watch new emails, extracts keywords, and applies labels like accounting, personal, or meetings via the Gmail API. Works by matching subject/body patterns to predefined label rules.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

A lead submits your website form

Combines a Webhook trigger (for a quote form), a Twilio node to place a call, and a short delay so the call reaches you within seconds. The workflow bridges form data to a phone call automatically.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Need to copy Google Maps listings to a sheet and email them

Uses an HTTP Request node to query Google Maps search results, parses JSON with a Function node, writes rows to Google Sheets, then loops through each row with an Email Send node for cold outreach. Automates lead gathering from maps.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Can't sort through LinkedIn SEO postings

Leverages a Web Scraping node (or HTTP Request + HTML Extract) to search LinkedIn for SEO roles in Canada, stores results in Google Sheets, then runs a Function node that rates each posting on criteria (salary, seniority, remote). Provides a ranked list for focused applications.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Have a receipt photo and need each item listed

Connects an HTTP Trigger (or file upload node) to a OpenAI node that runs a prompt asking ChatGPT to list each line item. The result is parsed and written into Google Sheets, turning a photo of a receipt into structured data.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Want to add meetings or fire off emails with a chat message

Combines an Email Trigger, a Schedule Trigger, and OpenAI nodes to interpret natural‑language commands (e.g., “schedule meeting with John tomorrow at 3pm”), then uses Google Calendar and Gmail nodes to create events or send emails. Provides a conversational interface for daily tasks.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Website visitors can’t book meetings

Uses n8n’s Webhook node as an endpoint for a front‑end chat widget. The webhook forwards user messages to OpenAI, which returns suggested meeting times; those are then passed to Google Calendar to create events and to Gmail to send confirmations.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

Need an invoice from a chat message

Integrates a Webhook (receiving invoice details), an OpenAI node that formats the data into a PDF using a template, then uploads the PDF to Google Drive and emails it via Gmail. Automates end‑to‑end invoicing without manual paperwork.

Jono Catliff ↗ Lesson → AI-generated
How-to n8n Everyone

When a row in my Airtable base changes

By using n8n's Airtable node as a trigger you can poll a base at a set interval (e.g., every minute) and fire the workflow whenever a row’s ‘Last Modified’ field changes. This creates real‑time notifications without writing code.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Turn Airtable record data into a ready‑to‑send email

The Google Gemini node can be used as a Large Language Model step that receives data from Airtable and returns structured JSON containing an email subject and body. Using the “Structured Output” option forces Gemini to output a predictable schema, making it easy to map into later nodes.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Need to send personalized emails from a workflow

n8n’s Gmail node can send emails using OAuth credentials. By inserting expressions that reference the Gemini output, you can dynamically fill the email subject and HTML/text body, achieving fully automated personalized messages.

YouTube ↗ Lesson → AI-generated
How-to n8n Everyone

Airtable updates never trigger actions

A workflow remains inactive until it is published; publishing activates the polling interval for triggers like Airtable. Once live, n8n will repeatedly check the source and execute downstream nodes automatically.

YouTube ↗ Lesson → AI-generated

The same set on /recipes, filtered by tool and role.

7Videos 8

8FAQ 9

What is n8n and what can I use it for?

n8n is a visual workflow automation tool that connects different apps and services so they can pass information between each other automatically, without you writing code. You build automations by placing 'nodes' — each representing one app or action — on a canvas and drawing connections between them. A researcher could, for example, set up n8n to automatically collect papers from PubMed, summarize them with AI, and write the results to a Google Sheet — all triggered on a schedule.

Can I run a workflow on a schedule — for example, every day at 9 AM?

Yes. Use the Schedule Trigger node as the first node in your workflow. You can choose simple intervals (every X minutes, hours, or days) without any technical knowledge, or use a cron expression for precise schedules like 'every weekday at 9 AM'. The node also has a timezone setting so your schedule reflects your local time rather than the server's timezone.

How do I connect n8n to an app like Google Sheets or Gmail?

Each app integration in n8n requires a 'credential' — the login or access key that lets n8n talk to that service on your behalf. When you add a node for a service, n8n prompts you to add a credential. For Google services you click 'Connect my account' and log in via OAuth (the familiar 'Sign in with Google' popup). For other services you paste in an API key copied from that service's settings page. Credentials are stored securely and reused across all your workflows.

Are there ready-made workflows I can start from instead of building from scratch?

Yes — n8n has a public template library with thousands of community-built workflows covering a huge range of use cases. You can browse by category, preview what each workflow does, and load one directly into your editor with a single click. Templates are an excellent way to learn how experienced users structure their automations and a much faster starting point than building from scratch.

Do I need to know how to code to use n8n?

No — most workflows can be built entirely by clicking and dragging without writing a single line of code. However, n8n does have a steeper learning curve than some alternatives like Zapier: features such as expressions, error handling, and connecting AI tools require some patience and self-study. Non-coders who are willing to practice consistently report becoming comfortable with the interface after building a few simple workflows.

What is a node in n8n?

A node is a single building block in your workflow — it represents one action, service, or piece of logic. For example, a 'Gmail' node can send an email, a 'Google Sheets' node can write a row of data, and a 'Code' node lets advanced users add custom logic. Trigger nodes are a special type that start the whole workflow when a specific event happens (like a new file being uploaded or a schedule being reached).

How does n8n compare to Zapier or Make — which is easier for a complete beginner?

For someone with no technical background, Zapier is the easiest of the three: it uses a step-by-step wizard and requires no technical decisions. Make sits in the middle with a visual canvas. n8n has the steepest learning curve because it uses expressions, webhooks, and a more flexible but complex interface. That said, n8n is the most powerful and cheapest at scale, and its growing library of AI tools and templates is closing the gap.

What is a webhook and why does n8n use it?

A webhook is like a doorbell: instead of your workflow constantly checking whether something new has happened, an external app rings the bell (sends a message) the instant an event occurs. In n8n, the Webhook node gives your workflow a unique URL address; when another service sends data to that address, your workflow starts immediately. This is more efficient than scheduled polling and enables real-time responses — for example, triggering a workflow the moment someone submits a form.

How do I get my workflow to actually run automatically — it only works when I click 'Test'?

You need to activate the workflow. In the top-right corner of the editor there is an 'Inactive / Active' toggle switch. While it is set to Inactive, the workflow will not respond to real triggers — it only runs when you manually click Test. Switch the toggle to Active (it turns orange) and save, and your workflow will begin listening for events and running on its own.

9Glossary 20 terms

Show the 20 terms
n8n
Workflow
A saved sequence of connected steps (nodes) that n8n runs automatically to move or transform data between apps.
Node
A single building block in a workflow — each node performs one action, such as sending an email, filtering data, or calling an API.
Trigger node
A special node that sits at the start of a workflow and decides when it runs — for example, on a schedule, when a form is submitted, or when another app sends a signal.
Action node
A node that does something in an external service — such as creating a row in Google Sheets, sending a Slack message, or reading an email.
Core node
A built-in utility node that handles data processing or flow control without connecting to an external service — examples include IF, Filter, Merge, and Code.
Connection
The arrow drawn between two nodes on the canvas that tells n8n to pass data from one node to the next when the workflow runs.
Canvas
The visual drag-and-drop workspace inside n8n where you build a workflow by placing and connecting nodes.
Execution
One complete run of a workflow — n8n records what happened at each node so you can inspect inputs, outputs, and any errors afterward.
Credentials
Securely stored login details (such as API keys or passwords) that let n8n connect to an external service on your behalf without exposing secrets inside the workflow.
Webhook
A URL that n8n creates for you so that an outside app can instantly start your workflow by sending data to that address.
Expression
A small piece of JavaScript written inside double curly braces ({{ }}) that lets you pull in data from a previous node or do a quick calculation instead of typing a fixed value.
Item
A single unit of data travelling through a workflow — for example, one email, one spreadsheet row, or one API result.
Schedule trigger
A trigger node that starts a workflow automatically at a set time or repeating interval, similar to a calendar alarm.
IF node
A core node that checks a condition and sends each data item down one of two paths — True or False — so different actions can happen depending on the data.
Sub-workflow
A separate workflow that another workflow calls like a reusable function, helping you keep complex automations organised and avoid repeating the same steps.
Error handling
A set of features in n8n — including dedicated error workflows and the Stop And Error node — that let you define what should happen if a node fails instead of silently stopping.
Data mapping
The act of telling a node where to find its input by dragging a field from a previous node's output onto the current node's input — no code required.
Sticky note
A text annotation you can place anywhere on the canvas to explain what part of a workflow does, without affecting how it runs.
Template
A pre-built workflow shared by the n8n community that you can import and adapt instead of building from scratch.
Manual execution
Running a workflow by clicking the Execute button yourself, used for testing before you switch the workflow on for automatic production runs.

10See also

💬 Discuss this chapter

Ask, share, or report — over on the Heidelberg AI community forum.