n8n 工作流自動化實作摘要 | n8n Workflow Automation Implementation Summary

安裝流程概述

本文詳細介紹了如何安裝和設置 n8n 工作流自動化平台,包括安裝 Docker、部署 n8n 平台及設置本地大語言模型。

Installation Process Overview

This article details how to install and set up the n8n workflow automation platform, including Docker installation, n8n deployment, and local large language model setup.

安裝步驟 | Installation Steps

  1. 安裝 Docker

    前往 Docker 官網下載 Docker Desktop,根據您的作業系統選擇合適的版本,並按照安裝指示完成安裝。

    Install Docker

    Visit the Docker website to download Docker Desktop, choose the appropriate version for your operating system, and follow the installation instructions.

  2. 部署 n8n 平台

    開啟命令提示字元,執行以下命令:

    docker volume create n8n_data

    然後執行 Docker Run 命令來拉取並啟動 n8n 映像檔。

    Deploy n8n Platform

    Open the command prompt and execute the following command:

    docker volume create n8n_data

    Then run the Docker Run command to pull and start the n8n image.

  3. 安裝 Ollama

    從 Ollama 官網下載並安裝 Ollama,這是一個本地大語言模型管理平台。

    Install Ollama

    Download and install Ollama from the official website, which is a local large language model management platform.

  4. 下載語言模型

    在命令提示字元中執行:

    ollama pull qwen2.5:7b

    下載千問 2.5 模型作為 AI Agent 的基礎模型。

    Download Language Model

    Execute in the command prompt:

    ollama pull qwen2.5:7b

    Download the Qwen 2.5 model as the foundation model for your AI Agent.

  5. 確認模型安裝

    使用 ollama list 命令確認模型已成功安裝。

    Verify Model Installation

    Use the ollama list command to confirm that the model has been successfully installed.

  6. 設定 n8n 帳戶

    訪問 n8n 網頁介面,創建管理員帳戶(需使用有效電子郵件以接收授權密鑰)。

    接收授權密鑰後,在設定中激活授權。

    Set up n8n Account

    Access the n8n web interface, create an admin account (using a valid email to receive the license key).

    After receiving the license key, activate it in the settings.

注意事項 | Important Notes

  • 執行 Docker 相關命令時,需確保 Docker Desktop 已啟動
  • 設定 n8n 帳戶時,必須使用有效的電子郵件地址接收授權密鑰
  • 本地語言模型可用於開發 AI Agent 和自動化工作流
  • Ensure Docker Desktop is running when executing Docker-related commands
  • When setting up an n8n account, a valid email address is required to receive the license key
  • The local language model can be used for developing AI Agents and automated workflows