Out now / Tsinghua University Press

n8n: From Basics to Practice
Connect AI to your workflow.

From your first node to automation that works.
Put AI workflows and agents to work through 9 practical projects.

All workflow files included. Scan the code in your book to access them.

One book. Bring AI into your everyday work.Tsinghua University Press · Out now
Foundations

Get your first workflow running.

01
Set up your environmentStart with installation and configuration
02
Understand nodes and dataSee the inputs and outputs of each step
03
Write effective promptsHelp the model understand your task
The yellow cover of n8n: From Basics to Practice, published by Tsinghua University Press
Start with a node.
Build a workflow.
Canvas · Triggers · Data flows
Start with one action.
Make it reusable.
Expressions · Credentials · Prompts

Chapters 1–6 · Foundations

Get your first workflow running.

From setup and the canvas to nodes, data flows and prompts, learn the essentials one step at a time.

Explore the foundations
15chapters

A path from first steps to practical automation

6foundation chapters

Setup, nodes, data flows and prompts

9projects

Apply what you learn to real tasks

Build your foundation.
Then let workflows do the work.

Who this book is for

Go beyond using AI.
Make it get things done.

Connect models, tools and data.
Give repetitive tasks a clear path from start to finish.

New to n8n? Start here.

Start with setup and the canvas, then learn nodes, expressions and data flows in a clear sequence, without jumping between scattered tutorials.

For creators and operators

Connect research, writing, images, short videos and information gathering. Build automations that support your everyday work.

For people building with AI

Move from knowledge-base Q&A to tool use and security controls. Learn how agents can work with your existing business systems.

Learn by connecting

9 practical projects.
Find one that fits your work.

An input. A process. A useful result.
Every project chapter starts with a task to solve.

Workflow overviewChapter 07
Chapter workflow illustration

Turn your knowledge base into customer support

Build document ingestion and support workflows, connect Feishu, and let AI answer questions using your own materials.

AI customer support · Knowledge base · FeishuView chapter ↗
Workflow overviewChapter 08
Chapter workflow illustration

Find opportunities in Reddit discussions

Collect posts and comments, use AI to identify real needs, and save promising leads for further research.

Reddit · Needs analysis · Data storageView chapter ↗
Workflow overviewChapter 09
Chapter workflow illustration

Extract content. Find a fresh angle.

Connect Xiaohongshu content retrieval, video transcription and rewriting in a single workflow.

Xiaohongshu · Content extraction · Content rewritingView chapter ↗
Workflow overviewChapter 10
Chapter workflow illustration

Turn ideas into Xiaohongshu posts

Combine writing and image generation, connect tools through MCP, and build a complete content production workflow.

Text & images · MCP · AI agentsView chapter ↗
Workflow overviewChapter 11
Chapter workflow illustration

Organize investment information

Collect news and market data, prepare context, and use AI to assist with quantitative investment research.

Quantitative investing · News analysis · Data processingView chapter ↗
Workflow overviewChapter 12
Chapter workflow illustration

Turn trending topics into reports

Bring together trending lists, remove duplicates, compare past data and analyze sentiment. Send the results to Feishu.

Trending topics · Sentiment analysis · FeishuView chapter ↗
Workflow overviewChapter 13
Chapter workflow illustration

From trending topics to WeChat drafts

Monitor content, gather trending topics and draft articles with AI. Use a main workflow and sub-workflows to deliver them to WeChat Official Account drafts.

WeChat Official Accounts · Topic discovery · Draft publishingView chapter ↗
Workflow overviewChapter 14
Chapter workflow illustration

Generate short videos in batches

Connect prompt creation, Seedance video generation and looped calls, then collect and download the results.

Seedance · Video generation · Batch processingView chapter ↗
Workflow overviewChapter 15
Chapter workflow illustration

Give agents a safer way to act

Connect n8n with OpenClaw and put webhooks, credential isolation and human approval into practice.

OpenClaw · Security controls · Human approvalView chapter ↗

Contents

A complete learning path.
More than a collection of tips.

Start with 6 foundation chapters, then build through 9 projects.
Open a chapter to explore what you will learn.

PART 01 Foundations Chapters 1–6

01Introduction to n8n
  1. 1.1 Welcome to the agent era: automation as your new superpower
  2. 1.2 Workflows and agents: your partners in getting things done
  3. 1.3 Why n8n: an execution and control layer for AI agents
  4. 1.4 Core ideas and key features of n8n 2.0
  5. 1.5 The n8n philosophy and ecosystem
  6. 1.6 Technical architecture: a closer look at the design
  7. 1.7 Community, templates and learning paths
  8. 1.8 An overview of business use cases
02Setting up n8n
  1. 2.1 Community and commercial editions
  2. 2.2 Using n8n Cloud
  3. 2.3 Deploying the Community edition
  4. 2.4 Configuring the Chinese interface
  5. 2.5 Configuring variables
  6. 2.6 Permissions, paths and data storage
  7. 2.7 Getting started with n8n development
03Core concepts
  1. 3.1 Variables and expressions
  2. 3.2 Data flow logic
  3. 3.3 Credentials and security
  4. 3.4 Thinking in modules
  5. 3.5 Scheduling and execution
04The canvas and workflow management
  1. 4.1 Working with the canvas
  2. 4.2 Managing the workflow lifecycle
  3. 4.3 Debugging and monitoring
05Nodes and triggers in depth
  1. 5.1 Common nodes explained
  2. 5.2 Triggers in depth
  3. 5.3 Data persistence with Data Tables
06Writing and improving prompts
  1. 6.1 Prompt types from an n8n perspective
  2. 6.2 Four methods for writing effective prompts
  3. 6.3 Structured prompts
  4. 6.4 Prompt patterns in n8n
  5. 6.5 System prompts and user prompts
  6. 6.6 Using AI to improve prompts
  7. 6.7 Practice: building a compliment assistant

PART 02 Projects Chapters 7–15

07AI customer support
  1. 7.1 Project background and goals
  2. 7.2 Building a workflow to upload documents to a knowledge base
  3. 7.3 Building the support workflow and configuring its AI modules
  4. 7.4 Creating a Feishu application
  5. 7.5 Configuring Feishu message triggers and replies
  6. 7.6 Extensions and improvements
08Finding business opportunities on Reddit
  1. 8.1 Workflow design
  2. 8.2 Preparation: creating a data table and installing the Apify node
  3. 8.3 Configuring Reddit RSS collection
  4. 8.4 Configuring deep scraping and data storage
  5. 8.5 Configuring AI opportunity analysis and result processing
  6. 8.6 Review and summary
09Extracting and rewriting Xiaohongshu content
  1. 9.1 Workflow design
  2. 9.2 Installing XHS-Downloader
  3. 9.3 Retrieving Xiaohongshu video details without logging in
  4. 9.4 Configuring Gemini to extract video scripts
  5. 9.5 Building an AI content creation node
  6. 9.6 Configuring Webhook notifications
  7. 9.7 Review and summary
10A Xiaohongshu knowledge-content pipeline
  1. 10.1 Workflow design
  2. 10.2 Installing xiaohongshu-mcp
  3. 10.3 Configuring an AI Agent to create image prompts
  4. 10.4 Configuring Nano Banana Pro image generation
  5. 10.5 Configuring an AI Agent to write copy
  6. 10.6 Publishing automatically with xiaohongshu-mcp
  7. 10.7 Completing the notification setup
  8. 10.8 Testing and publishing the complete workflow
  9. 10.9 Review and summary
11Quantitative investment workflows
  1. 11.1 Workflow design and background
  2. 11.2 Configuring a Data Table
  3. 11.3 Building a workflow to add companies to a watchlist
  4. 11.4 Deploying aktools
  5. 11.5 Configuring news collection
  6. 11.6 Configuring an AI Agent to assess news relevance
  7. 11.7 Retrieving daily trading data with aktools
  8. 11.8 Calculating technical indicators and analyzing data
  9. 11.9 Saving analysis results and sending notifications
  10. 11.10 Review and summary
12Automated cross-platform trend and sentiment analysis
  1. 12.1 Workflow design and background
  2. 12.2 Deploying the DailyHotApi trend aggregation service
  3. 12.3 Configuring the trigger and collecting cross-platform trends
  4. 12.4 Merging trend data and filtering valid responses
  5. 12.5 Configuring vector storage and deduplication
  6. 12.6 Building a structured history store and daily comparisons
  7. 12.7 Configuring an AI Agent for sentiment analysis
  8. 12.8 Sending analysis results to Feishu
  9. 12.9 Review and summary
13Trending topics and WeChat draft publishing
  1. 13.1 Project background and main/sub-workflow architecture
  2. 13.2 Preparation: WeChat community nodes and a Data Table
  3. 13.3 Monitoring WeChat Official Account posts
  4. 13.4 Cleaning, deduplicating and storing data
  5. 13.5 Analyzing trends with AI and selecting top topics
  6. 13.6 Combining trending content into AI-assisted drafts
  7. 13.7 Configuring pre-publication notifications and sub-workflows
  8. 13.8 Building the sub-workflow: publishing WeChat drafts and confirming success
  9. 13.9 Review and summary
14Batch short-video generation with Seedance
  1. 14.1 Workflow design and background
  2. 14.2 Configuring Gemini and Replicate API keys
  3. 14.3 Setting up the trigger and two-stage prompt generation
  4. 14.4 Building a Seedance 2.0 video generation sub-workflow
  5. 14.5 Calling the sub-workflow in a loop
  6. 14.6 Collecting video URLs and joining clips
  7. 14.7 Downloading and saving the final results locally
  8. 14.8 Review and summary
15Secure, controlled automation with n8n and OpenClaw
  1. 15.1 Design and background
  2. 15.2 Inside OpenClaw: building the agent’s brain
  3. 15.3 Core integration patterns
  4. 15.4 Practice: building a Webhook-triggered workflow
  5. 15.5 Practice: credential isolation and security workflows
  6. 15.6 Review and summary

This is a guide to the contents. Chapter titles and organization may differ from the published book.

Take a look inside

See what you can build.
Follow each step along the way.

View the full overview
Setting up AI nodesEnlarge ↗

Setting up AI nodes

From adding an AI Agent to connecting a model and credentials.

Workflows, step by stepEnlarge ↗

Workflows, step by step

Follow the node settings to understand how data moves.

Inside the printed bookEnlarge ↗

Inside the printed book

Browse real pages to explore the content and layout.

Included with the book

Every workflow.
Source files included.

Organized by chapter, the files accompany the explanations in the book. Open a workflow, explore its connections, then adapt it and try it yourself.

  • Explore each case with its nodes and connections intact.
  • Follow the setup steps, then make the workflow your own.
Scan the code in your book to access the files
Find a retailer
Companion resource folders, including a README.md and case files organized by chapterEnlarge
A preview of the resource foldersOrganized by chapter · Learn alongside the book

FAQ

Before you begin.
A few things to know.

Find a book that fits you.
Start with a problem you want to solve.

Can I start without programming experience?

Yes. Begin with the foundations: setup, the canvas and node configuration, then move into the projects. Some cases use APIs (application programming interfaces), expressions and a little code. Learn as you go; you do not need to master everything before you start.

What does the book cover?

The book explores low-code AI workflows, agents and business automation with n8n. Six chapters build the foundations, followed by nine projects covering AI support, content production, opportunity research, trend analysis and more.

Which AI agent projects are included?

Projects include knowledge-base customer support, business opportunity analysis, text and image production, sentiment analysis, and secure integration between n8n and OpenClaw. Each connects prompts, tools and data flows to a practical task.

What tools do I need to follow along?

You need an environment that can run n8n, plus accounts or API credentials for the services used in your chosen chapters. Some models and third-party services may charge separately. Refer to the relevant chapter and service documentation for requirements.

Is this a printed book or an online course?

This is the printed book n8n: From Basics to Practice, published by Tsinghua University Press. This website introduces the contents, offers page previews and links to retailers.

Where can I buy it, and how much does it cost?

Use the Dangdang, JD.com or Xiaohongshu links on this site to visit the product pages. Prices, offers, stock, delivery and after-sales terms depend on the retailer’s current listing.

Your next step starts here

Connect your ideas.
Get your workflows running.

n8n: From Basics to Practice
Tsinghua University Press

All workflow files included. Scan the code in your book to access them.

Where to buy

DangdangView the book on DangdangJD.comView the book on JD.comXiaohongshuView the book on Xiaohongshu

Retailer links open in a new tab.
Check each retailer for current pricing, offers, availability and delivery.

n8n: From Basics to PracticeFrom your first node to real-world automationGet the book ↗

Book overview and page previews

Setting up AI nodes