> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eversince.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Inbox and automatic replies

> Comments and direct messages on the connected accounts, and replies that answer a comment on their own.

`manage_social_inbox` reads and answers comments and direct messages. `manage_auto_replies` sets replies that answer comments automatically. Both are free to call. Whether an agent can write here is a workspace setting; see [Approval and what agents can do](https://docs.eversince.ai/publish/approval.md).

## Comments

`commented_posts` lists posts with comments, marked `unread` when commented on since last opened or answered. `comments` reads a post's comments, and with `comment_id` that comment's replies. `reply` answers the post, or one comment with `comment_id`; on Facebook it can carry one image as `attachment` (a library item) or `attachment_url`. Lists can lag up to 10 minutes and continue with `cursor`.

| Action | Platforms |
| - | - |
| `hide`, `unhide` | Instagram, Facebook, Threads, TikTok |
| `like`, `unlike` | Facebook, LinkedIn, TikTok |
| `delete` | On Threads and TikTok, the account's own comments only |
| `private_reply` | Instagram, Facebook: one direct message to a commenter, within 7 days of the comment |

Comments on X are answered in the X app.

## Direct messages

`conversations` lists direct-message threads, `messages` reads one, `send` writes to it, and `mark_read` marks it read. Instagram and Facebook take a message within 24 hours of the person's last. Direct messages on X are not available.

A message carries `text`, one attachment, or both. The attachment is `attachment`, a library item sent as its own file, or `attachment_url`, a public https address. Each attachment is 25 MB at most. A video goes as MP4, audio as AAC, M4A or WAV, and a document as PDF, Word, Excel, PowerPoint, text, CSV or ZIP; a library picture in another format is converted to JPG or PNG.

| Platform | Attachment |
| - | - |
| Instagram | An image of 8 MB at most, a video (MP4, MOV, WebM, AVI or OGG), audio or a PDF. A file with words arrives as two messages. |
| Facebook | An image, a video, audio or a document |
| TikTok | One JPG or PNG image of 3 MB at most. Words and an image arrive as two messages. |

## Automatic replies

An automatic reply answers a comment once: any comment, or one with the `keywords`, on one post or on every post of the account. Only comments made after it is switched on are answered.

The one post is named in either of two ways:

* `post_id` on `create`: a post made in the workspace, by its id from `manage_social_posts`, scheduled or published. An automatic reply can be set up when the post is scheduled, and it answers from when the post publishes. A `held` post is approved first.
* `platform_post_id`: the post's id on the platform, from `manage_social_inbox` `commented_posts`.

With neither, it watches every post. An `update` with an empty `platform_post_id` returns an automatic reply to every post.

* Instagram and Facebook send `dm_text` as a direct message, with `reply_text` under the comment when given.
* TikTok, Threads, LinkedIn and YouTube post `reply_text` under the comment. On LinkedIn and YouTube a comment is answered within about ten minutes.
* Automatic replies are not available on X.

`list`, `get` (with the recent log), `create`, `update` and `delete` manage them. `active` false pauses one and true resumes it.

`options` sets how one is set off, matched and sent:

| Option | What it sets |
| - | - |
| `trigger` | `comment` by default. On Instagram also `live_comment`, `story_reply`, `story_mention`. |
| `match` | `contains` (default) matches inside longer words, `word` a whole word, `exact` the whole comment. `typo_tolerance` counts close misspellings with `word`. |
| `exclude_keywords` | A comment with one of these is left alone. |
| `also_in_messages` | The keywords sent as a direct message are answered too. |
| `buttons` | Up to 3 buttons under the message, each a link or a phone number. |
| `dm_variations`, `reply_variations` | Up to 5 other wordings, one picked at random. |
| `dm_delay_seconds`, `reply_delay_seconds` | A wait before each goes out. |
| `public_reply` | The reply under the comment `after_dm` (default) or `always`. |
| `like_comment`, `hide_comment` | The comment is liked, or hidden once answered. |
| `audience`, `follow_gate` | Instagram: who is answered (`follower_status`, `min_follower_count`, `tap_to_unlock`), and the words of the message that asks for a follow or a tap first. |
| `dedupe_same_text_hours` | The same words to the same person within these hours are not sent again. |

## Allowances

Each connected account includes 1,000 direct messages and 100 automatic replies a month, counted across the workspace's accounts. Comment replies are not counted. `allowance` on `manage_social_inbox` returns the month's `messages` and `auto_replies` beside `messages_included` and `auto_replies_included`, and `replies_bought_left`.

More automatic replies are bought once: 2,500 for \$8 (`manage_social_accounts` `buy_replies`, with `packs` for several). It is the owner's call and returns a `url` the user opens to pay. What is bought belongs to the owner, is shared by every workspace the owner owns, and does not expire. A workspace first uses what its own accounts include each month; replies past that are taken from what was bought. With the month's included replies sent and nothing bought left, all automatic replies pause until the next month or a purchase, and resume on their own then. A comment that arrives while they are paused is not answered later.

More messages come in packs of 1,000 a month, by writing to [hello@eversince.ai](mailto:hello@eversince.ai) with how many packs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.