iT邦幫忙

2025 iThome 鐵人賽

DAY 26
0
生成式 AI

我的 AI 學習之路:30天 Gemma 與 Gemini系列 第 26

我的 AI 學習之路:第26天 Gemma 與 Gemini - Gemini 與 n8n

  • 分享至 

  • xImage
  •  

什麼是n8n

n8n 是一個 開源的 workflow automation(自動化工作流程)平台,它能讓你將不同的應用程式、服務和 API 串聯起來,建立自動化的流程。它很像 Zapier 或 IFTTT 這類工具,但 n8n 最主要的優勢在於它是開源的,而且你可以自行託管(self-hosted)。這意味著你能完全掌控自己的數據,並且不用受限於雲端服務的訂閱費用。

n8n 能做什麼?

- 跨平台自動化
  Gmail 收到附件 → 自動存到 Google Drive → 傳通知到 Slack

- API 整合
  幾乎所有有 API 的服務(如 Notion、Airtable、Telegram、OpenAI、Stripe)都能整合。

- 資料處理
  轉換 JSON / CSV , 過濾、排序、合併資料

- AI 整合
  可以接 Gemini、Hugging Face 等模型,把 LLM 納入 workflow。

安裝 n8n

安裝 n8n 主要有兩種方式:使用 Docker 或 npm。這兩種方法都非常簡單,但 Docker 是官方推薦的,因為它能確保環境的獨立性,避免與你系統中其他軟體產生衝突。

Docker

docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n

本機npm

npm install n8n -g

登入後
https://ithelp.ithome.com.tw/upload/images/20250927/20121643Gb6oyRatd8.png

實作範例 gemini 對話機器人

https://ithelp.ithome.com.tw/upload/images/20250927/20121643vPFnYGoaC9.png

1 加入一個 AI Agent
2 加入 Google Gemini Chat Model

  • 輸入 Gemini Api Key
    https://ithelp.ithome.com.tw/upload/images/20250927/20121643NoTlohEUjS.png

  • 選擇模型 Gemini 2.5 / Gemma 3

https://ithelp.ithome.com.tw/upload/images/20250927/20121643igSkDwhC5x.png

開始對話

https://ithelp.ithome.com.tw/upload/images/20250927/20121643HrhV6HkFSU.png

總結

n8n 自動化工作流程 平台 ,可以很快的建立工作流,建立一個gemini 的聊天機器人的流程
是不是很棒很方便呢?

上一篇
我的 AI 學習之路:第25天 Gemma 與 Gemini - Gemini Cli 寫WordPress 外掛
下一篇
我的 AI 學習之路:第27天 Gemma 與 Gemini - Gemini 與 make.com
系列文
我的 AI 學習之路:30天 Gemma 與 Gemini30
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言