n8n හි AI සමග TikTok comments වලට reply කරන්න
n8n workflow එකක් පියවර හතරකින් TikTok comments වලට AI මගින් reply කරයි: easyCoexistence යවන comment.update event එක, signed ව, Webhook node එකකට ලැබේ; Code node එක නව top-level comments පමණක් තබා ගනී; chat model එකක් reply එක ලියයි; MCP Client node එක එය reply_to_comment සමඟ, comment එක යටතේ ප්රසිද්ධියේ, TikTok ගේ API for Business හරහා පළ කරයි. easyCoexistence automations වලට workflow එකක් නැතිවත් reply කළ හැකිය.
අයිතිකළ photo post එකක හෝ public video එකක comment එකක් සෑදුණු පසු TikTok comment.update event එක යවන කාලය.
TikTok ගේ /business/comment/reply/create/ එකෙන් එක් reply එකකට පිළිගන්නා UTF-8 අක්ෂර ගණන.
TikTok Accounts API endpoint එක එකකට, reply endpoint එකද ඇතුළුව, authorized ගිණුමකට ඉඩදෙන calls ගණන.
TikTok webhooks සඳහා delivery පොරොන්දුව: පැය 72 දක්වා retry කරන අතර, එකම comment දෙවරක් පැමිණිය හැක.
n8n Remove Duplicates node එක, පෙර executions වල දැක ඇති items අයින් කිරීමට, පෙරනිමියෙන් මතක තබා ගන්නා values.
easyCoexistence automations TikTok reply එකකට අනුමත කරන අක්ෂර ගණන, දිගු AI පෙළ වචනයකදී කපමින්.
TikTok comment එකක් n8n වෙත ළඟා වන්නේ කෙසේද?
Webhook node එකකට signed POST එකක් ලෙස. POST ලෙස සකසා, Raw Body ක්රියාත්මක කර, Respond on Immediately ලෙස තබා, workflow එක publish කර Production URL එක පිටපත් කරන්න. TikTok ගිණුම එයට යොමු කරන්න: Claude හෝ ChatGPT වෙතින් set_social_webhook_destination ඉල්ලන්න, නැතහොත් MCP Client node එකෙන් එක් වරක් run කරන්න, නැතහොත් Partner API හි PUT /api/v1/channels/:id/webhook භාවිතා කර, ආපසු ලැබෙන signing secret එක ගබඩා කරන්න. TikTok නව comment එකක් මිනිත්තු 5ක් ඇතුළත easyCoexistence වෙත වාර්තා කරයි, easyCoexistence comment.update event එක වහාම යවයි, content දැනටමත් parse කර ඇති අතර IDs strings ලෙස. n8n social media guide හි පෙන්වන පරිදි පළමුව X-EC-Signature පරීක්ෂා කරන්න.
{
"platform": "tiktok",
"account_id": "<ACCOUNT_ID>",
"external_id": "<TIKTOK_OPEN_ID>",
"entry": {
"event": "comment.update",
"create_time": 1793318400,
"content": {
"comment_id": "<COMMENT_ID>",
"video_id": "<VIDEO_ID>",
"comment_type": "comment",
"comment_action": "insert",
"parent_comment_id": null,
"timestamp": 1793318399000,
"unique_identifier": "<UNIQUE_IDENTIFIER>",
"text": "Does this come in a bigger size?"
}
}
}Workflow එක කුමන comments වලට reply කළ යුතුද?
නව top-level comments, සෑම එකකටම එක් වරක්. comment.update මගින් මකාදැමීම්, සඟවන ලද comments සහ දෘශ්යතා වෙනස්කම් ද වාර්තා වන අතර, replies comment_type reply ලෙස පැමිණේ, ගිණුමේ තමන්ගේම replies ඇතුළුව, එබැවින් Code node එකක් comment_action insert සහ comment_type comment ඇති ඒවා පමණක් තබයි. TikTok webhooks අවම වශයෙන් එක් වරක් delivery කර පැය 72 දක්වා retry කරන නිසා, එකම comment දෙවරක් පැමිණිය හැක; Remove Items Processed in Previous Executions ලෙස සකසා, comment_id මත Value Is New සහිත Remove Duplicates node එකක් පළමු පිටපත පමණක් ඇතුළු වීමට ඉඩ දෙයි. පෙරනිමියෙන් එය අගයන් 10,000ක් මතක තබයි, එබැවින් TikTok හි පැය 72 retry කාලය තුළ නව comments 10,000කට වඩා නොපැමිණෙන්නේ නම්, redelivery අල්ලා ගනු ලැබේ.
// Run Once for All Items, after the signature check.
// json.data holds the raw body as text, from Extract From File.
const out = [];
for (const item of $input.all()) {
const { platform, account_id, entry } = JSON.parse(item.json.data);
const c = entry?.content ?? {};
if (platform !== "tiktok" || entry.event !== "comment.update") continue;
// Replies, the account's own among them, arrive as comment_type "reply"
if (c.comment_action !== "insert" || c.comment_type !== "comment") continue;
out.push({ json: { account_id, comment_id: c.comment_id, video_id: c.video_id, text: c.text ?? "" } });
}
return out;AI reply එක ලියන්නේ කෙසේද?
AI Agent node එකේ chat model එකකින්, හෝ ලිවීම පමණක් කරන විට Basic LLM Chain node එකකින්. මිනිසුන් අසන ව්යාපාරික කරුණු system message එකේ තබන්න, සහ public reply හි රීති සමඟ: කෙටි, comment කරුවාගේ භාෂාවෙන්, පුද්ගලික කිසිවක් නැතිව, සෑම විටම වෙනස් වචන භාවිතා කරමින්, මක්නිසාද TikTok කෙටි කාලයක සමාන replies බොහොමයක් spam ලෙස සඟවිය හැකි බැවින්. Prompt එක expression මගින් comment එකේ පෙළට සකසන්න. API එකෙන් අක්ෂර 1,200 දක්වා පිළිගන්නා නමුත්, වාක්ය කිහිපයක් video එක යටතේ වඩා හොඳින් කියවේ; easyCoexistence හි තමන්ගේම automations 150 දක්වා සීමා වේ. Reply අවශ්ය නොවන comments සඳහා model එකට SKIP ලෙස ආපසු ලබාදිය හැකි අතර, එය If node එකෙන් ඉවත් කළ හැක.
Workflow එක reply එක post කරන්නේ කෙසේද?
easyCoexistence server මත MCP Client node එකකින්, එවිට TikTok ගේ token n8n වෙතින් පිටතව තබා ගනී. Endpoint ලෙස https://easycoexistence.com/api/mcp, Streamable HTTP transport සහ OAuth2 authentication දෙන්න, tool ලෙස reply_to_comment තෝරන්න, සහ Manual input mode හි පහත පරාමිති හතර Code node එකෙන් සහ model එකෙන් සිතියම්ගත කරන්න. Reply එක TikTok ගිණුම ලෙස comment එක යටතේ ප්රසිද්ධියේ යයි. TikTok ට ඔබම කතා කිරීමට, HTTP Request node එකක් get_social_credentials ආපසු දෙන api_base යටතේ business/comment/reply/create/ වෙත POST කරයි, token එක Access-Token header එකෙන්, සහ business_id, video_id, comment_id සහ text body එකේ; පිළිතුරේ කේතය 0 නම් එයින් සාර්ථකත්වය පෙන්වයි.
TikTok replies සඳහා කුමන සීමා දමයිද?
TikTok ගේ API for Business මෙම සීමා දමයි, පෙළ ලියන්නා කවුරුවත් වේවා:
- ප්රසිද්ධියේ පමණි: TikTok සම්බන්ධතාවයක් DMs යවන්නේ නැත, එබැවින් පිළිතුර comments විවෘත කරන ඕනෑම අයෙකුට පෙනේ.
- දිග: reply එකකට UTF-8 පෙළ අක්ෂර 1,200 දක්වා, හෝ පෙළට වෙනුවට රූපයක්.
- අනුපාතය: සෑම authorized ගිණුමකටම Accounts API endpoint එකකට මිනිත්තුවට calls 40, reply endpoint එකද ඇතුළුව.
- Spam: කෙටි කාලයක සමාන අන්තර්ගත සහිත replies රාශියක් flag වී සඟවිය හැක.
- විෂය පථය: comment.update මගින් සම්බන්ධ ගිණුමේ photo posts සහ public videos ආවරණය වන අතර, මිනිත්තු 5ක් ඇතුළත පැමිණේ.
easyCoexistence automations n8n නොමැතිව reply කරන්නේ කවදාද?
පියවර එක රේඛාවක් ප්රමාණවත් වන විට. TikTok ගිණුමේ automation එකක් comment_received මත ආරම්භ වේ, ඕනෑම comment එකකට හෝ keyword එකකට, එක් video එකකට හෝ සියල්ලටම, සහ පියවර 12 දක්වා ධාවනය වේ: fixed පෙළ සහිත reply_comment, ඔබේම Anthropic, OpenAI හෝ OpenRouter key සහිත ai_reply, hide_comment, call_webhook, wait සහ stop. Replies ප්රසිද්ධියේ පවතින අතර අක්ෂර 150 ඇතුළත, test_automation යනු post නොකර automation එක පරීක්ෂා කරයි, සහ keyword comment rule එකක් automation එකකට පෙර reply කරයි. call_webhook පියවරකට comment එක n8n workflow එකකට යැවීමටද, තත්පර 20 දක්වා රැඳී සිට එය ආපසු ලබාදෙන reply field එක post කිරීමටද හැක.
| n8n workflow | easyCoexistence automation | |
|---|---|---|
| Starts on | A forwarded comment.update, signed | comment_received, on any comment or a keyword |
| Writes the reply | Your chat model in an AI node | ai_reply with your Anthropic, OpenAI or OpenRouter key |
| Reply length | Up to TikTok's 1,200 characters | Up to 150 characters, longer AI text cut at a word |
| 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 TikTok accountIn the easyCoexistence dashboard, choose New connection, pick TikTok and authorize the permissions it asks for.
- Forward its comments to n8nPublish a workflow that starts with a Webhook node, then point set_social_webhook_destination at its Production URL.
- Write and post the replyAdd the Code, Remove Duplicates and chat model nodes, then an MCP Client node that runs reply_to_comment.
සාමාන්ය වැරදි
- එකම ගිණුමේ easyCoexistence automation එකක් හෝ comment rule එකක් workflow එක සමඟ තබා ගැනීම. දෙකම එකම comment එකට ක්රියා කරන නිසා comment කරුවාට replies දෙකක් ලැබේ; ඉන් එකක් පමණක් පිළිතුරු දෙන්න ඉඩ දෙන්න.
- reply_to_comment වෙතින් post_id ඉවත් කිරීම. TikTok reply එකක් comment එකත් video එකත් නම් කරයි, එබැවින් event එකේ video_id post_id වෙත සිතියම්ගත කරන්න, නැතහොත් call එක ප්රතික්ෂේප වේ.
- comment_id හෝ video_id සංඛ්යා ලෙස parse කිරීම. ඒවා JavaScript මගින් වට කරන 64-bit අගයන් වන අතර, easyCoexistence ඒවා strings ලෙස යවයි, එබැවින් workflow හරහා text ලෙස තබා ගන්න.
- Comments වලට පමණක් නොව replies වලටත් reply කිරීම. ගිණුමේ තමන්ගේම replies comment_type reply ලෙස ආපසු පැමිණෙන නිසා, ඒවාට reply කරන workflow එක තමන්ටම reply කිරීමෙන් අවසන් වේ.
easyCoexistence ඔබේ n8n workflows වල AI TikTok comment කරන්නන්ට සහ Instagram, Facebook හා තවත් නාලිකා හි ගනුදෙනුකරුවන්ට ඉදිරිපත් කරයි, සෑම ජාලයකම නිල API හරහා: signed comment.update events, ගිණුම ලෙස reply කරන MCP Client මෙවලම්, සහ run කිරීමට workflow නැතිව reply කරන automations, සෑම සම්බන්ධතාවයක්ම 24/7 නිරීක්ෂණය වෙමින්. එක් සම්බන්ධතාවයකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, සම්බන්ධතා එකතු කරන විට අඩු වේ, පළමු දින 3 නොමිලේ.
නිතර අසන ප්රශ්න
Workflow එකට DM මගින් reply කළ හැකිද, public වෙනුවට?
නැත. easyCoexistence හරහා TikTok හි DMs නැත, එබැවින් සෑම reply එකක්ම comment එක යටතේ ප්රසිද්ධියේ යයි; ඒ තුළ order අංකය සහ ඕනෑම පුද්ගලික දෙයක් තබන්න එපා.
Forward කළ event එකේ comment එකේ පෙළ ඇතුළත් වේද?
ඔව්. TikTok ගේ comment.update content හි පෙළ, comment සහ video IDs, action සහ commenter ගේ unique_identifier ඇතුළත් වන අතර, easyCoexistence එය parse කර, IDs strings ලෙස forward කරයි.
එකම workflow එකෙන් Instagram comments වලට reply කළ හැකිද?
ඔව්. Switch node එකකින් platform අනුව branch කරන්න: Instagram comments field comments සහිත changes ලෙස පැමිණෙන අතර, n8n සඳහා Instagram recipe එක ඔවුන්ගේ private replies සහ DMs ආවරණය කරයි.
n8n හි TikTok ගිණුමක් සඳහා easyCoexistence කොපමණ මිලක්ද?
එක් සම්බන්ධතාවයකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, සම්බන්ධතා එකතු කරන විට අඩු වේ, සෑම ජාලයටම එකම මිලයි. Forward කළ events, MCP server සහ automations ඇතුළත්, පළමු දින 3 නොමිලේ.
තවදුරටත් කියවන්න
ඔබේ පළමු channel එක මිනිත්තු දෙකකින් සම්බන්ධ කරන්න.
වේදිකා සමාලෝචන සඳහා බලා සිටීමට අවශ්ය නැත. WhatsApp, Instagram, TikTok හෝ වෙනත් channel එකක් සම්බන්ධ කර, පසුව ඔබේ AI හට පළ කිරීමට, ප්රතිචාර දැක්වීමට හෝ වාර්තා කිරීමට පවසා එය වැඩ කරන ආකාරය බලන්න.
- දින 3ක් නොමිලේ
- ඕනෑම වේලාවක අවලංගු කරන්න
- නිල API පමණි
- 24/7 නිරීක්ෂණය කෙරේ
සත්යාපනය කළේ