ข้ามไปยังเนื้อหา
GrowSocmedเอกสารSocial media command center
Developers

Inbox และ automation

อ่านและตอบ DM ของ Instagram และตั้งค่าการตอบอัตโนมัติผ่าน API

Inbox

Inbox เก็บการสนทนา DM ของ Instagram จากบัญชีของคุณ

Instagram อนุญาตให้ธุรกิจตอบได้ภายใน 24 ชั่วโมงหลังข้อความล่าสุดของบุคคลนั้นเท่านั้น ข้อความที่ Instagram ปฏิเสธจะถูกเก็บไว้เป็นข้อความที่ล้มเหลว เพื่อให้คุณส่งอีกครั้งได้

Automation

automation จะตอบสิ่งที่เข้ามาหลังจากเปิดใช้งาน บนบัญชีเดียว สร้างได้ด้วย POST /automations:

{
  "account_id": "6b1e…",
  "name": "Price list by DM",
  "kind": "comment_to_dm",
  "trigger": { "posts": "all", "match": "contains", "keywords": ["price", "harga"] },
  "actions": {
    "dmText": "Here is our price list.",
    "buttons": [{ "title": "Price list", "url": "https://example.com/prices" }],
    "trackClicks": true,
    "replyVariants": ["Sent you a DM!"]
  },
  "delay": "natural",
  "once_per_person": true,
  "enabled": true
}
kindทำอะไรแพลตฟอร์ม
comment_to_dmส่ง DM ถึงคนที่คอมเมนต์Instagram
dm_keywordตอบ DM ที่มีคีย์เวิร์ดInstagram
default_replyตอบ DM ที่ไม่มี automation อื่นตอบ ไม่เกินหนึ่งครั้งต่อคนต่อ frequencyInstagram
story_replyตอบการตอบกลับ Stories ของคุณInstagram
story_mentionตอบคนที่เมนชันคุณใน Stories ของเขาInstagram
ice_breakerคำถามที่แสดงเมื่อมีคนเปิดแชต แต่ละข้อมีคำตอบ (1–4)Instagram
comment_replyตอบกลับคอมเมนต์แบบสาธารณะ (Threads, Facebook และแพลตฟอร์มอื่นต้องมี replyVariants อย่างน้อย 3 รายการ)Instagram, Facebook Page, Threads, YouTube, TikTok, Telegram
comment_hideซ่อนคอมเมนต์ที่มีคำที่ระบุInstagram, Facebook Page, Threads, YouTube, TikTok, Telegram
comment_likeกดถูกใจคอมเมนต์Facebook Page, TikTok

automation ของ TikTok ต้องเชื่อมต่อ TikTok Business กับบัญชีก่อน

trigger: posts (all, next สำหรับ post ถัดไป หรือรายการ id ของ post บนแพลตฟอร์ม), match (any, contains, exact), keywords (ไม่เกิน 200), includeReplies, frequency (hour, day, week) actions: dmText (ไม่เกิน 1,000 ตัวอักษร หรือ 640 เมื่อมีปุ่ม), replyVariants (ไม่เกิน 5), agentId (ให้ AI agent ตอบแทน), buttons (ลิงก์ไม่เกิน 3), trackClicks, requireFollow (DM จะถูกส่งเมื่อบุคคลนั้นติดตามแล้ว), heart, markAutomated, iceBreakers delay เป็น fast, natural (ค่าเริ่มต้น) หรือ relaxed automation จะถูกสร้างในสถานะปิด เว้นแต่คุณส่ง enabled: true

GET /automations ส่งกลับแต่ละ automation พร้อมตัวเลข (ส่งแล้ว ข้าม ล้มเหลว คลิก การติดตาม อัตราการคลิก) และ GET /automations/{id}/runs ส่งกลับการทำงานล่าสุดพร้อมผลลัพธ์และเหตุผล webhook automation.run จะรายงานการทำงานแต่ละครั้งเมื่อจบ

ในหน้านี้