Skip to content
GitHub

n8n တွင် AI Nodes အသုံးပြုနည်း

n8n 1.0+ မှ AI / LangChain Nodes တွေကို Built-in ပေးထားပါတယ်။ ဒီ Nodes တွေကိုသုံးပြီး Code မရေးဘဲ AI-powered Automation Workflow တွေ ဆောက်နိုင်ပါတယ်။

n8n တွင် ရရှိနိုင်သော AI Nodes:

CategoryNodes
Chat ModelsOpenAI GPT-4o, Anthropic Claude, Google Gemini, Ollama
ChainsBasic LLM Chain, Summarize Chain, Q&A Chain
AgentsReAct Agent, Plan & Execute Agent
MemoryWindow Buffer Memory, Summary Memory
ToolsCalculator, SerpAPI Search, Wikipedia, Code Execution
EmbeddingsOpenAI Embeddings, Ollama Embeddings
Vector StoresPinecone, Supabase Vector, In-Memory

Basic LLM Chain — ရိုးရှင်းဆုံး AI Call

Section titled “Basic LLM Chain — ရိုးရှင်းဆုံး AI Call”

Basic LLM Chain သည် Prompt တစ်ခုကိုပေးပြီး AI Response ကို ရယူသည်:

Trigger / Input
Basic LLM Chain Prompt + Model
Use AI Response

ရိုးရှင်းဆုံး AI Call Pattern

Canvas မှ “Basic LLM Chain” Node ကို ထည့်ပါ:

Basic LLM Chain Node:
Chat Model: [OpenAI GPT-4o-mini] ← Sub-node ဖြင့် ချိတ်ဆက်
Prompt:
"""
You are a helpful assistant.
Summarize the following text in 3 bullet points in Myanmar language:
{{ $json.text }}
"""

Chat Model ကို Node ၏ Input Socket မှ Sub-node ပုံစံ ချိတ်ဆက်ရသည်:

[Basic LLM Chain]
[OpenAI Chat Model] ← Sub-node (Model Provider)

AI Response ကို ဖတ်ရာတွင်

Section titled “AI Response ကို ဖတ်ရာတွင်”

Basic LLM Chain ၏ Output:

{
"response": {
"text": "• ပထမ အချက်...\n• ဒုတိယ အချက်...\n• တတိယ အချက်..."
}
}

Expression ဖြင့် Access: {{ $json.response.text }}

Chat Models ချိတ်ဆက်နည်း

Section titled “Chat Models ချိတ်ဆက်နည်း”
  1. OpenAI API Key ကို n8n Credential မှာ ထည့်ပါ
  2. Canvas မှ “OpenAI Chat Model” ကို Basic LLM Chain ၏ Sub-node ဖြင့် ချိတ်ဆက်ပါ
OpenAI Chat Model:
Credential: [OpenAI API]
Model: gpt-4o-mini
Temperature: 0.7 ← 0 = ကျပ်ကျပ်, 1 = Creative
Max Tokens: 1000
Anthropic Chat Model:
Credential: [Anthropic API]
Model: claude-haiku-4-5-20251001
Temperature: 0.5

လက်တွေ့ Project: Email Auto-Summarizer

Section titled “လက်တွေ့ Project: Email Auto-Summarizer”

Email ဝင်လာတိုင်း AI ဖြင့် Summary ဆွဲပြီး Slack ပို့သည်:

Gmail Trigger New Email
Basic LLM Chain Claude: Summarize
Slack Post Summary

Email → AI Summary → Slack — အဓိကအချက်တွေကို Auto-extract

Prompt Template:
"""
You are an email assistant for a Myanmar developer.
Summarize this email concisely in Myanmar language.
Extract: sender intent, action needed, urgency level (low/medium/high).
From: {{ $json.from[0].address }}
Subject: {{ $json.subject }}
Body: {{ $json.text.slice(0, 3000) }}
Response format:
📋 အဓိကအကြောင်းအရာ: ...
✅ လုပ်ဆောင်ရမည့်အချက်: ...
⚡ အရေးပေါ်မှု: [low/medium/high]
"""

Customer Feedback ကို AI ဖြင့် Positive/Negative ခွဲပြီး Priority ဆောင်သည်:

Webhook: Customer Feedback
AI Sentiment: Negative?
😠 Negative
Slack: #urgent — Respond now
Create Jira Ticket
😊 Positive
Thank You Email
Log to Sheets
// Code Node — Parse AI Sentiment Response
const aiResponse = $json.response.text.toLowerCase();
const sentiment = aiResponse.includes('negative') || aiResponse.includes('angry')
? 'negative'
: aiResponse.includes('positive') || aiResponse.includes('happy')
? 'positive'
: 'neutral';
return [{ json: { ...$json, sentiment, needsUrgentResponse: sentiment === 'negative' } }];

Multi-language Support ကို AI ဖြင့် Auto-translate:

နောက်သင်ခန်းစာမှာ AI Agent — Tool များကို ကိုင်တွယ်နိုင်သော n8n AI Agent ဆောက်နည်း လေ့လာမည်!