Skip to content
GitHub

API Integration လက်တွေ့

n8n ၏ Most-Used 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 RowRow ကို Update လုပ်သည်
Delete RowRow ကို ဖျက်သည်
ClearSheet ကို ရှင်းလင်းသည်

Google Sheets — Append Row:

  • Credential: [Google Sheets OAuth2]
  • Resource: Spreadsheet
  • Operation: Append Row
  • Spreadsheet: [Select from 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: [Select “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 ထဲ ထည့်ပြီး Smart 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 — 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 Automation:

Airtable Common Use Cases:

  • Product inventory management
  • Customer support ticket tracking
  • Content publishing calendar
  • Project task management
Airtable Node:
Base: [Select your 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”

New Customer Sign-up တစ်ခုဝင်လာသောအခါ ၄ ခု တပြိုင်တည်း Run:

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

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

Workflow Execution Time (approx):

  • Webhook receive: ~10ms
  • Set/Code Node: ~5ms
  • Gmail send: ~500ms
  • Notion create: ~300ms
  • Slack post: ~200ms
  • Airtable write: ~250ms
  • Total (parallel): ~500ms (slowest node သာ)
  • Total (sequential): ~1.3s

n8n သည် Default ဖြင့် Node တွေကို Sequential ဖြင့် Run သော်လည်း Parallel Branch တွေကို Concurrent ဖြင့် Run သည်။

နောက်သင်ခန်းစာမှာ Error Handling — Workflow Fail ဖြစ်ရင် ဘယ်လို ကိုင်တွယ်မလဲ ဆက်လက်လေ့လာမည်!