CX, helpdesk & e-commerce support
Social Inbox Infrastructure for CX and E-commerce Support Platforms
Comments, DMs, mentions, and reviews from your customers' accounts, shoppers' messages included, delivered to your backend or support queue as one event stream, on your own apps, with no history kept by Koil.
Five ways to hear about a comment
A unified inbox looks like one feature. Underneath, every platform tells you about new content differently:
- Meta pushes comments, mentions, and DMs through app-level webhook subscriptions.
- TikTok pushes through webhooks registered per app, per event family.
- LinkedIn pushes Page activity through subscriptions made per Page and admin, and retries a failed delivery for only eight hours.
- Google Business Profile publishes review notifications to Cloud Pub/Sub, not to a webhook, so reviews are polled.
- YouTube publishes no comment webhooks at all, so comments can only be polled against a daily quota.
Build that yourself and your team runs five ingestion systems before your product shows a single message. Koil runs them for you and hands your backend one stream.
One event, whatever the source
Comments, DMs, mentions, and reviews all arrive in the same envelope, on a webhook or a queue you choose. A TikTok comment looks like this:
{
"id": "evt_4f1c…",
"topic": "content.tiktok.videos.comments.created",
"time": "2026-05-01T10:00:00.000Z",
"apiVersion": "2026-12-08",
"context": {
"mode": "live",
"platformId": "tiktok",
"collection": "tiktok.videos.comments",
"profileId": "prof_…",
"platformProfileExternalId": "biz_1"
},
"data": {
"kind": "tiktok.videos.comments",
"externalId": "7247303576418566913",
"containerId": "7203946942097902849",
"target": { "kind": "tiktok.videos.posts", "externalId": "7203946942097902849" },
"text": "love this",
"author": { "externalId": "+ABc1D2/user" },
"publishedAt": "2023-06-22T00:40:16.109Z"
}
}
An Instagram comment has the same envelope and the same text, author, and publishedAt. Whether Koil heard about it by webhook, polling, or backfill is deliberately not part of the event: it means the same thing however it was collected.
- Signed with your destination's secret, retried when your endpoint doesn't answer
2xx, and replayable through the API. - Stable ids across retries, replays, and re-observations, so dropping duplicates is one lookup.
- Edits and deletions as events, where the platform reports them.
- Both sides of the conversation, including replies your agents send from the platform's own app.
- Backfill, where the platform allows it, to seed a newly connected profile's inbox, delivered as the same events.
How the Social Inbox API works →
Not a store
Koil does the hard part of getting comments, DMs, and reviews to your backend, then discards them. Content waits only until its events are published, a delivered event stays in the delivery log only so it can be retried and replayed, and database backups keep a deleted record for six days. There's no Koil copy to go stale, reads go to the platform each time, and how much history your inbox keeps is up to you. What Koil keeps →
Reply, moderate, and delete from the event
The event carries what you need to act: reply with a publish request against its Profile and externalId, or moderate and delete through the same API. Every action runs on that profile's own credential and checks its scopes before anything reaches the platform.
For e-commerce support: where shoppers ask
Shoppers ask "where's my order?" in an Instagram DM, a Messenger chat, a WhatsApp message, or a comment under the product post. A support tool needs all of them in its queue, next to email and chat, and each event names the merchant's Profile, so routing it to the right merchant's queue is a field lookup.
- Instagram · maya.reads
Hi! My order #1042 hasn't arrived yet 😕
- Koil event
content.instagram. dm. messages. created - Your support tool · ticket #2318
"Hi! My order #1042 hasn't arrived yet 😕"
- Your support tool · Sam, agent
So sorry, Maya! It shipped this morning. Tracking: FH‑88213.
- Koil status
publish_request.succeeded - Instagram · Fernhill Tea
So sorry, Maya! It shipped this morning. Tracking: FH‑88213.
An agent's reply from the ticket is tracked to a final status your tool can show on the ticket. Meta accepts a business's reply to a DM only within a window after the shopper's last message; on WhatsApp that window is 24 hours, and an approved template reopens the conversation after it. WhatsApp →
Your app, your brand, your quota
Every connection runs through your own app. Your customers' social accounts authorize your app, under your name. A policy strike on someone else's app can't take your inbox down, the platform quota is yours, and adopting or leaving Koil never forces your users to reconnect. Why Koil is BYO-only →
Build it before app review finishes
Sandbox mode runs the same endpoints, events, and errors against emulated platforms, with magic grants in place of real accounts. Messaging permissions are the slowest part of app review, so build the whole inbox now and go live when your app is approved. Start with the quickstart →