n8n හි AI සමඟ Instagram comments සහ DMs වලට පිළිතුරු දෙන්න
n8n workflow එකක් පියවර තුනකින් AI සමඟ Instagram comments සහ DMs වලට පිළිතුරු දෙයි: easyCoexistence යවන සෑම comment එකක් හෝ DM එකක් අත්සන් කළ ලෙස Webhook node එකට ලැබේ; AI Agent node එක පිළිතුර ලියයි; එය easyCoexistence හි MCP tools හෝ HTTP Request node එකක් හරහා Instagram හි නිල API එක මගින් යවයි, පොදු පිළිතුරක්, පෞද්ගලික පිළිතුරක් හෝ DM පිළිතුරක් ලෙස. easyCoexistence automations ද workflow එකක් නොමැතිව පිළිතුරු දිය හැක.
Instagram මගින් යෙදුමකට, පුද්ගලයා ලියූ පණිවිඩය වැනි බොහෝ user ක්රියාවලියකින් පසු DM එකකට පිළිතුරු දීමට ඉඩ දෙන කාලය.
comment එකකින් දින 7ක් ඇතුළත commenter වෙත පෞද්ගලික පිළිතුරකින් යැවිය හැකි දේ; ඔවුන් ප්රතිචාර දක්වන පසු පමණක් තව වැඩි.
Instagram professional account එකකට posts සහ Reels වලට comments සඳහා Meta අනුමත කරන පෞද්ගලික පිළිතුරු ගණන.
UTF-8 හි එක Instagram DM එකකට ඇතුළත් විය හැකි උපරිම පෙළ, එබැවින් උච්චාරණ සහ emoji වැඩි ඉඩ ගනී.
n8n හි MCP Client Tool හි authentication ක්රමයක්, AI Agent එකට දුරස්ථ MCP server එකක tools ලබා දෙන node එක.
easyCoexistence automation එකක call_webhook පියවර ඔබේ workflow ලබා දෙන පිළිතුර සඳහා රැඳී සිටින කාලය.
Instagram comments සහ DMs n8n වෙත පැමිණෙන්නේ කෙසේද?
Webhook node එකට POST requests ලෙස. එහි Raw Body විකල්පය ක්රියාත්මක කර, workflow එක publish කර Production URL එක පිටපත් කරන්න. Instagram ගිණුම එයට යොමු කරන්න set_social_webhook_destination මගින්, Claude හෝ ChatGPT වෙතින් ඉල්ලා හෝ MCP Client node එකෙන් එක් වරක් ධාවනය කර, හෝ Partner API හි PUT /api/v1/channels/:id/webhook මගින්. ගිණුමේ signing secret එක එක් වරක් පමණක් ලැබේ, එබැවින් signature පරීක්ෂාව සඳහා එය ගබඩා කරන්න.
සෑම event එකක්ම platform, account_id, external_id සහ entry රැගෙන යයි, ජාලයේ event එක වෙනස් නොවී. comment එකක් field යන්නේ comments වන change එකක් ලෙස එයි, comment එකේ id සහ text, කතෘ from හි ද, post media හි ද; DM එකක් messaging හි එයි, යවන්නාගේ ID සහ text සමඟ. easyCoexistence පිළිතුරක් සඳහා තත්පර 8ක් රැඳී සිටී, retry නොකරයි, එබැවින් Respond on Immediately තබන්න.
{
"platform": "instagram",
"account_id": "<ACCOUNT_ID>",
"external_id": "<INSTAGRAM_ACCOUNT_ID>",
"entry": {
"id": "<INSTAGRAM_ACCOUNT_ID>",
"time": 1793318400,
"changes": [
{
"field": "comments",
"value": {
"id": "<COMMENT_ID>",
"text": "Do you have this in green?",
"from": { "id": "<INSTAGRAM_SCOPED_ID>", "username": "<USERNAME>" },
"media": { "id": "<MEDIA_ID>", "media_product_type": "REELS" }
}
}
]
}
}workflow එක comments DMs වෙන් කර තමන්ගේම ඒවා මඟ හරින්නේ කෙසේද?
අත්සන් පරීක්ෂාවකින් පසු, පසුව Code node එකකින්. Extract From File node එකෙන් body එක text ලෙස කියවා, Crypto node සහ If node භාවිතා කර X-EC-Signature සංසන්දනය කරන්න, timestamp, dot සහ raw body හි HMAC-SHA256 එකක්, n8n social media guide එකේ පෙන්වන පරිදි, ඉන්පසු event එක ඉදිරියට යවන්න. පහත Code node එක සෑම event එකක්ම එක් comment හෝ DM එකකට එක item එකක් බවට හරවයි, එකම ආකාරයෙන්.
ගිණුම විසින්ම ලියූ දේ එය අතහරියි: එහි පොදු පිළිතුරු එහි තමන්ගේම ID එකෙන් comments ලෙස ආපසු එයි, DM ලෙස echo ආපසු එයි. comments entry.changes වලින් ද, Meta හි Instagram Login උදාහරණයේ පෙන්වන පරිදි entry එකම මත තබන field සහ value වලින් ද කියවයි.
// Run Once for All Items. Each input item holds the raw body as text in
// json.data, the Destination Output Field set in Extract From File.
const out = [];
for (const item of $input.all()) {
const { account_id, external_id: me, entry } = JSON.parse(item.json.data);
const changes = entry.changes ?? (entry.field ? [{ field: entry.field, value: entry.value }] : []);
for (const { field, value } of changes) {
if (field === "comments" && value.from?.id !== me) {
out.push({ json: { kind: "comment", account_id, comment_id: value.id, post_id: value.media?.id,
username: value.from?.username, text: value.text ?? "" } });
}
}
for (const m of entry.messaging ?? []) {
if (m.message?.text && !m.message.is_echo) {
out.push({ json: { kind: "dm", account_id, recipient_id: m.sender.id, text: m.message.text } });
}
}
}
return out;AI Agent node එක පිළිතුර ලියා යවන්නේ කෙසේද?
System Message එකෙන් සහ item එකෙන්. chat model එකක් සම්බන්ධ කර, පාරිභෝගිකයන් අසන දේ, උදාහරණ ලෙස මිල, ප්රමාණ, වේලාවන් සහ links, System Message එකේ තබන්න. Prompt එක expression මගින් item හි kind, account_id, ID සහ text වෙත සකසන්න. ඉන්පසු කුමන node එක පිළිතුර දෙනවාද තීරණය කරන්න.
Agent එකට තනිවම පිළිතුරු දිය හැක: MCP Client Tool එකක් ඇමිණුම, endpoint ලෙස https://easycoexistence.com/api/mcp, HTTP Streamable සහ OAuth2, සහ Tools to Include යටතේ Selected තෝරා පහත tools ටික ටික් කරන්න. නැතහොත් agent එක ලියන්න පමණයි, ස්ථාවර node එකක් පිළිතුර දෙයි: reply_to_comment හෝ send_social_dm ධාවනය කරන MCP Client node එකක් arguments සිතියම්ගත කර. දෙවන ක්රමය කිසිවිටක model එකට ක්රියාව තේරීමට ඉඩ නොදේ.
Instagram හි රීති AI පිළිතුරු සඳහා අදහස් කරන්නේ කුමක්ද?
පුද්ගලයෙක් ටයිප් කරන විට ඒවාට අනුව ම ය, එබැවින් workflow එක, හෝ agent එකේ උපදෙස්, ඒවාට අනුකූල විය යුතුය:
- DM: පිළිතුර පුද්ගලයාගේ අවසන් පණිවිඩයෙන් පැය 24ක් ඇතුළත යයි. Meta හි වෙනම දින 7ක Human Agent කවුළුව අදහස් කරන්නේ පුද්ගලයෙක් ලියන පිළිතුරුයි.
- පෞද්ගලික පිළිතුරු: comment එකකට එක පණිවිඩයක්, එයින් දින 7ක් ඇතුළත, ගිණුම follow නොකරන විට Requests වලට යයි; ඔවුන් ප්රතිචාර දැක්වීමෙන් පසු පමණක් තව.
- පරිමාව: posts සහ Reels වලට comments සඳහා ගිණුමකට පැයකට පෞද්ගලික පිළිතුරු 750ක් දක්වා.
- දිග: DM එකකට UTF-8 පෙළ බයිට් 1,000ක් දක්වා, එබැවින් model එකෙන් කෙටි පිළිතුරු ඉල්ලන්න.
- ප්රවේශය: ගිණුම Instagram යෙදුමේ Messages and story replies යටතේ Message controls, Connected Tools හි Allow Access to Messages සක්රිය කරයි.
easyCoexistence automations n8n නොමැතිව මෙය කළ හැක්කේ කවදාද?
සරල පියවර රේඛාවක් ප්රමාණවත් වන විට. Instagram ගිණුමේ automation එකක් DM එකකින් ආරම්භ වේ: ඕනෑම එකක්, හෝ keyword එකකින්, පළමු පණිවිඩය හෝ ඔබේ වේලාවෙන් පිටත; හෝ comment එකකින්: ඕනෑම එකක්, හෝ keyword එකකින්, එක් post එකක් හෝ සියල්ලම මත. එහි ai_reply පියවර ඔබේම Anthropic, OpenAI හෝ OpenRouter key සමඟ පිළිතුර ලියයි. එය පැය 24ක කවුළුව පරීක්ෂා කරයි, comment එකකට එක පෞද්ගලික පිළිතුරක් යවයි, AI පිළිතුරු සෑම chat එකකටම පැයකට 10 දක්වා සීමා කරයි (පෙරනිමිය), සහ සෑම ධාවනයක logs දින 30ක් තබා ගනී; test_automation එය යැවීමකින් තොරව උත්සාහ කරයි.
Comment එකක් මත, ai_reply DM එකක් ලෙස පිළිතුරු දෙයි, comment හි පෞද්ගලික පිළිතුර ලෙස, reply_comment නියත පෙළ පොදුවේ පළ කරන අතර. comment එක යටතේ පළ වන AI පිළිතුරක් හෝ branches සඳහා n8n භාවිතා කරන්න; call_webhook පියවරකට පණිවිඩය n8n Webhook node එකට ලබා දී එය ආපසු දෙන පිළිතුර යැවිය හැක.
| n8n workflow | easyCoexistence automation | |
|---|---|---|
| Starts on | A forwarded comment or DM, signed | A DM or comment trigger, with or without a keyword |
| Writes the reply | An AI Agent node with your chat model | ai_reply with your Anthropic, OpenAI or OpenRouter key |
| AI reply in public | Yes, with reply_to_comment | Fixed text only, with reply_comment |
| Logic | Branches, lookups and other apps | Up to 12 steps in a straight line |
| Runs on | Your n8n instance | easyCoexistence, with no workflow to host |
එය සකසන ආකාරය
- Connect the Instagram accountSign in with Instagram in the easyCoexistence dashboard, and allow access to messages in the Instagram app.
- Send its events to n8nPublish a workflow that starts with a Webhook node, then point set_social_webhook_destination at its Production URL.
- Add the AI AgentGive it a chat model, your business facts as the System Message and an MCP Client Tool with the reply tools.
සාමාන්ය වැරදි
- ගිණුම Webhook node එකේ Test URL වෙත යොමු කිරීම. ඔබ පරීක්ෂා කරන අතරතුර පමණක් n8n එහි සවන් දෙයි; workflow එක publish කළ විට ලියාපදිංචි වන්නේ Production URL එකයි.
- මුළු server එකම agent එකට නිරාවරණය කිරීම. Tools to Include යටතේ Selected තෝරා පිළිතුරු tools පමණක් ටික් කරන්න, එවිට comment එක වැරදි ලෙස කියවන model එකට automations ප්රකාශ, මකා දැමීම හෝ වෙනස් කළ නොහැක.
- එම comment එකට දෙවන පෞද්ගලික පිළිතුරක් යැවීම. පුද්ගලයා නැවත ලියන තෙක් Meta comment එකකට එක පණිවිඩයක් පමණක් ඉඩ දෙයි, එබැවින් තවත් ප්රශ්න comment එක යටතේ පොදුවේ පිළිතුරු දෙන්න.
- account_id අපේක්ෂා කරන tool එකකට external_id යැවීම. MCP tools event හි account_id ගනී; external_id යනු Instagram හි ගිණුමේ තමන්ගේම ID එකයි.
easyCoexistence ඔබේ n8n workflows වල AI agents වලට Instagram, Facebook, TikTok සහ තවත් channels හි පාරිභෝගිකයන් වෙත ප්රවේශය ලබා දෙයි, සෑම එකක්ම එහි නිල API හරහා: Webhook node එකට අත්සන් කළ comment සහ DM events, AI Agent node එකට tools 35+ MCP, workflow එකක් නොමැතිව පිළිතුරු දෙන automations, සහ සෑම connection එකක්ම 24/7 නිරීක්ෂණය වේ. connection එකකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, connections එකතු කරන විට අඩු වේ, පළමු දින 3 නොමිලේ.
නිතර අසන ප්රශ්න
n8n agent එකට කුමන AI model භාවිතා කළ හැකිද?
AI Agent node එකට ඔබ සම්බන්ධ කරන chat model එක, එහි provider විසින් ඔබේම key වෙත බිල් කරයි. easyCoexistence සෑම පිළිතුරකටම ගාස්තුවක් නොගනී; පිළිතුරු එහි tools හෝ Instagram හි API හරහා යයි.
එකම workflow එකට Facebook comments සහ Messenger පණිවිඩවලට පිළිතුරු දිය හැකිද?
ඔව්. Facebook Page එකක් comments සහ Messenger පණිවිඩ එකම envelope එකෙන් යවයි, comment එකක් item comment සහිත feed change ලෙස පැමිණේ, එකම tools ඒවාට පිළිතුරු දෙයි. TikTok comments ද පැමිණෙන අතර ඒවාට පිළිතුරු පොදුයි.
easyCoexistence comments සහ DMs තබා ගන්නේද?
යවන ලද events පිටපතක් නොතබා ඉදිරියට යවයි. ගිණුම මත automation එකක් ඇති විට, පණිවිඩ පෙළ දින 7ක් ද automation ධාවන logs දින 30ක් ද තබා ගනී.
n8n හි Instagram ගිණුමක් සඳහා easyCoexistence ගාස්තුව කීයද?
connection එකකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, connections එකතු කරන විට අඩු වේ, සෑම network එකටම එකම. MCP server, යවන ලද events සහ automations ඇතුළත් වන අතර පළමු දින 3 නොමිලේ.
තවදුරටත් කියවන්න
ඔබේ පළමු channel එක මිනිත්තු දෙකකින් සම්බන්ධ කරන්න.
වේදිකා සමාලෝචන සඳහා බලා සිටීමට අවශ්ය නැත. WhatsApp, Instagram, TikTok හෝ වෙනත් channel එකක් සම්බන්ධ කර, පසුව ඔබේ AI හට පළ කිරීමට, ප්රතිචාර දැක්වීමට හෝ වාර්තා කිරීමට පවසා එය වැඩ කරන ආකාරය බලන්න.
- දින 3ක් නොමිලේ
- ඕනෑම වේලාවක අවලංගු කරන්න
- නිල API පමණි
- 24/7 නිරීක්ෂණය කෙරේ
සත්යාපනය කළේ