Building a Simple AI Agent with n8n

English Summary

1. Getting Started
  • On the homepage, click "Start From Scratch"
  • Click "Add First Step"
  • Choose "On-Chat Message" for the AI chat window
  • Click "Test Chat" to establish the starting point
2. Adding AI Capability
  • Click the "+" button
  • Select "AI" then "AI Agent"
  • Click "Test Step"
3. Language Model Setup
  • Click "Check Model"
  • Select "+" and choose Ollama
  • Set up authentication
  • Replace "Localhost" with your computer's IP address (found using "ipconfig" in command prompt)
  • Save/Retry until "Connection Test Success" appears
  • Select your downloaded model (example uses Qwen 2.5 7b)
4. Memory Configuration
  • Click "+" and select "Simple Memory"
  • Use default M8n memory mode without authentication
  • Click "AI Agent" and "Test Step"
5. Testing Your Agent
  • Click "Test Step"
  • Enter a test question like "What is generative AI?"
  • View execution steps on the right panel
6. Sharing with Users
  • Double-click the starting point
  • Enable "Make Share Public"
  • Copy the hyperlink and share with others
Note: After setting up, users can access your AI Agent through the shared link and start asking questions immediately.

中文繁體摘要

1. 開始設置
  • 在首頁點選「Start From Scratch」
  • 點選「Add First Step」
  • 選擇「On-Chat Message」作為AI聊天視窗
  • 點選「Test Chat」建立起始點
2. 添加AI功能
  • 點選「+」按鈕
  • 選擇「AI」然後「AI Agent」
  • 點選「Test Step」
3. 語言模型設置
  • 點選「Check Model」
  • 選擇「+」並選擇Ollama
  • 設置認證
  • 將「Localhost」替換為電腦IP地址(使用命令提示字元中的「ipconfig」查找)
  • 保存/重試直到出現「Connection Test Success」
  • 選擇已下載的模型(示例使用千問2.5 7b)
4. 記憶功能配置
  • 點選「+」並選擇「Simple Memory」
  • 使用預設的M8n記憶模式,無需認證
  • 點選「AI Agent」和「Test Step」
5. 測試代理
  • 點選「Test Step」
  • 輸入測試問題,如「什麼是生成式AI?」
  • 在右側面板查看執行步驟
6. 與用戶共享
  • 雙擊起始點
  • 啟用「Make Share Public」
  • 複製超連結並與他人共享
注意: 設置完成後,用戶可以通過共享連結訪問您的AI代理,並立即開始提問。