Tech is political: The people under attack in Palestine 🇵🇸, Iran 🇮🇷, and Lebanon 🇱🇧 are people like us. They’re our brothers and sisters, too. Read up on their history, scrutinize what you’re told, and demand that they be respected and included. Hide

Frontend Dogma

Building an Automated Workflow Platform With n8n

on , tagged , , (share this post, e.g., on Mastodon or on Bluesky)

1. Introduction to n8n

n8n is a node-based, visual workflow automation tool that allows you to connect different services and applications via drag-and-drop. It supports 200+ integrations, including various AI services, databases, APIs, and more.

Key features of n8n:

2. n8n Use Cases

ScenarioTraditional Approachn8n Solution
Receive form submissions, send notifications, and store dataManual operationn8n automates the process
Daily scheduled API data fetchingWrite scriptsn8n timer + HTTP request
Automatically push new project issues to a group chatManual transfern8n listens to webhooks
Multi-platform data synchronization (e.g., CRM, ERP)Manual or expensive custom developmentn8n visual integration
Implement intelligent workflows with AI APIsHigh-barrier developmentn8n integrates with OpenAI, etc.

3. Installing and Deploying n8n

Pull the image:

docker pull n8nio/n8n:1.108.1

Run the container:

// Create directory
cd /Users/admin/program/docker/instance/n8n
mkdir -p ./n8n

// Run
docker run -d -p 5678:5678 --name n8n \
-v $PWD/n8n:/home/node/.n8n \
n8nio/n8n:1.108.1

4. Accessing the n8n Interface

After installation, open your browser and visit http://localhost:5678. You will see the n8n login interface.

On your first visit, you will need to:

5. Creating Your First AI Workflow

Let’s create a simple AI workflow to experience n8n’s basic functionality.

Step 1: Create a Workflow

After logging in to n8n, click New Workflow to create a new workflow. Give it a name, such as “AI Workflow.”

Step 2: Workflow Orchestration

Click the + button on the canvas and select On chat message, then click Back to canvas. You should now see a new node in the center of the canvas:

Click the + on the right side of the node and select Ollama Chat Model. Click Select Credential, and set the Ollama Base URL to: http://localhost:11434.
(For Docker deployments, use: http://host.docker.internal:11434)

Next, click Save. You should see a green message: “Connection tested successfully.”

[No image text provided by the source.]

Step 3: Run the Workflow

Click Chat at the bottom and enter “Hello.” The workflow will run automatically and output the response.

With this, the n8n setup and your first AI workflow are complete. You can now explore more complex use cases.

(This post is a machine-made, human-reviewed, and authorized translation of xuxueli.com/­blog/­?blog=ai/­n8n-workflow.)