Skip to content
GitHub

API Integration လက်တွေ့

n8n မှာ လူသုံးအများဆုံး Integrations တွေကတော့ -

  • Data Storage — Google Sheets, Airtable, Notion Database
  • Communication — Slack, Discord, Telegram, Email
  • E-commerce — Shopify, WooCommerce, Stripe
  • Development — GitHub, Jira, Linear, Webhooks
  • AI — OpenAI, Anthropic Claude, Hugging Face

Google Sheets ကို Database လိုမျိုး သုံးပြီး n8n နဲ့ အလွယ်တကူ ချိတ်ဆက်လို့ ရပါတယ် -

Webhook: Form
Set: Format
Google Sheets Append Row
Operationရည်ရွယ်ချက်
Append RowSheet ရဲ့ နောက်ဆုံး Row မှာ Data အသစ် ထည့်ဖို့
Read RowsSheet ထဲက Data တွေကို ဖတ်ဖို့
Update Rowရှိပြီးသား Row ကို ပြင်ဖို့
Delete RowRow တစ်ခုကို ဖျက်ဖို့
ClearSheet တစ်ခုလုံးကို ရှင်းလင်းဖို့

Google Sheets — Append Row လုပ်မယ်ဆိုရင် -

  • Credential: [Google Sheets OAuth2]
  • Resource: Spreadsheet
  • Operation: Append Row
  • Spreadsheet: [Google Drive ကနေ ရွေးပါ]
  • Sheet Name: Sheet1

Columns တွေမှာ ထည့်မယ့် Data -

ColumnValue
Timestamp{{ $now.toISO() }}
Name{{ $json.name }}
Email{{ $json.email }}
Message{{ $json.message }}

Notion Database ကို CRM, Project Tracker, Content Calendar အစရှိသဖြင့် n8n နဲ့ အလွယ်တကူ Automate လုပ်နိုင်ပါတယ် -

Form Webhook
Notion Create Page in Leads DB
Slack #sales channel notify

Notion — Create a Page ဆိုရင် -

  • Resource: Database Page
  • Operation: Create
  • Database: [“Leads” database ကို ရွေးပါ]

Properties တွေမှာ -

PropertyValue
Name (Title){{ $json.name }}
Email{{ $json.email }}
StatusNew Lead
SourceWebsite Form
Date{{ $now.toISO() }}

AI Integration — OpenAI/Claude ချိတ်ဆက်ခြင်း

Section titled “AI Integration — OpenAI/Claude ချိတ်ဆက်ခြင်း”

n8n မှာ AI ကိုပါ Workflow ထဲ ထည့်ပြီး ပိုစမတ်ကျတဲ့ Automation တွေ ဆောက်နိုင်ပါတယ် -

Gmail Trigger New Email
OpenAI Summarize Email
Slack Post Summary in #inbox
OpenAI - Message a Model:
Credential: [OpenAI API Credential]
Resource: Chat
Operation: Message a Model
Model: gpt-4o-mini
Messages:
System: "You are an email assistant. Summarize
the email in 2-3 bullet points in
Myanmar language."
User: "Email Subject: {{ $json.subject }}
Email Body: {{ $json.text }}"

Output ကို Slack ထဲ ပို့မယ်ဆိုရင် -

Slack Message:
📧 *{{ $('Gmail').item.json.subject }}*
From: {{ $('Gmail').item.json.from[0].address }}
*AI Summary:*
{{ $json.message.content }}

n8n မှာ Built-in Node မပါတဲ့ တခြား API တွေအတွက်ဆိုရင် HTTP Request Node ကို သုံးနိုင်ပါတယ် -

// HTTP Request Node — Custom Payment API
{
"method": "POST",
"url": "https://api.mypayment.com/v1/charge",
"headers": {
"Authorization": "Bearer {{ $credentials.apiKey }}",
"Content-Type": "application/json"
},
"body": {
"amount": "{{ $json.amount }}",
"currency": "MMK",
"phone": "{{ $json.phone }}",
"description": "Order #{{ $json.orderId }}"
}
}

Response ကို ကိုင်တွယ်ခြင်း

Section titled “Response ကို ကိုင်တွယ်ခြင်း”
// Code Node — Payment Response Handle
const response = $input.first().json;
if (response.status === 'success') {
return [{
json: {
success: true,
transactionId: response.transaction_id,
message: `Payment of ${response.amount} MMK succeeded`
}
}];
} else {
throw new Error(`Payment failed: ${response.error_message}`);
}

Airtable ကို Low-code Database အနေနဲ့ သုံးပြီးတော့လည်း n8n နဲ့ ချိတ်လို့ ရပါတယ် -

Airtable ကို အများဆုံး သုံးလေ့ရှိတာက -

  • Product inventory management
  • Customer support ticket tracking
  • Content publishing calendar
  • Project task management
Airtable Node:
Base: [သင့် Airtable Base ကို ရွေးပါ]
Table: Customers
Operation: Create Record
Fields:
Name → {{ $json.name }}
Email → {{ $json.email }}
Plan → Free
SignedUp → {{ $now.toFormat('yyyy-MM-dd') }}

Complete Integration Example: Customer Onboarding

Section titled “Complete Integration Example: Customer Onboarding”

Customer အသစ် တစ်ယောက် Sign-up ဝင်လာတဲ့အခါ အလုပ် (၄) ခုကို တစ်ပြိုင်နက်တည်း Run ပါမယ် -

Timing ဆိုင်ရာ အကြံပြုချက်

Section titled “Timing ဆိုင်ရာ အကြံပြုချက်”

Workflow တစ်ခုလုံး Run ဖို့ ကြာချိန် (ခန့်မှန်းချက်) -

  • Webhook receive: ~10ms
  • Set/Code Node: ~5ms
  • Gmail send: ~500ms
  • Notion create: ~300ms
  • Slack post: ~200ms
  • Airtable write: ~250ms
  • Total (parallel): ~500ms (အနှေးဆုံး Node အတိုင်းပဲ ကြာမှာပါ)
  • Total (sequential): ~1.3s (တစ်ခုပြီးမှ တစ်ခုလုပ်ရင် ကြာမယ့်အချိန်)

n8n က ပုံမှန်ဆိုရင် Node တွေကို Sequential (တစ်ခုပြီးမှ တစ်ခု) Run ပေမဲ့၊ Parallel Branch တွေ ခွဲလိုက်ရင်တော့ Concurrent (တစ်ပြိုင်နက်တည်း) Run ပေးသွားမှာပါ။

နောက်သင်ခန်းစာမှာ Database Operations ကို ဆက်ပြီး လေ့လာကြပါမယ် ခင်ဗျာ။