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

# Safety & Anti-Ban

> How Instance protects your Instagram account with Meta messaging windows, smart rate limits, natural reply pacing, human takeover pauses, and spam protection.

Instance is built to keep your connected Instagram account safe and compliant with Meta's official rules. Instead of blasting messages all at once, every reply goes through messaging window checks, rate limits, and collision guards so your account behaves naturally as volume grows.

***

## 1. Messaging Windows (24-Hour Rule and 7-Day Human Agent)

Meta sets strict time limits on when a business can DM someone after their last message:

* **24-Hour Automated Window**: Automated flows, AI Sales Agent replies, and scheduled follow-ups only send within 24 hours of a lead's last message. Any waiting step or follow-up sequence stays safely inside that 24-hour window.
* **7-Day Human Reply (`HUMAN_AGENT`)**: Inside **Sales Chat** (`Dashboard -> Sales Chat`), human sales reps can still reply manually between **24 hours and 7 days** after the lead's last message. Instance automatically attaches Meta's `HUMAN_AGENT` tag so those replies stay compliant.
* **After 7 Days**: Outbound DMs are locked in Sales Chat to protect your account, and you can still leave private **Whisper Notes** for your team.

***

## 2. Rate Limits and Pacing

To make sure you never hit Meta's spam triggers during a viral post or Reel, Instance queues outbound messages and enforces built-in rate limits. If traffic spikes above a limit, extra messages wait in line and send smoothly right after instead of failing or getting dropped.

The defaults in `.env.example` are pre-tuned for safety, and you can adjust them if needed:

| Limiter | Default Limit | Env Variable Override |
| :- | :- | :- |
| **DM Send Burst** | `100` / second | `META_SEND_RATE_LIMIT_PER_SEC` |
| **Private Replies (Comment-to-DM)** | `750` / hour (rolling) | `META_PRIVATE_REPLY_RATE_LIMIT_PER_HOUR` |
| **Public Comment Replies** | `60` / hour | `META_COMMENT_REPLY_RATE_LIMIT_PER_HOUR` |
| **Media Messages** | `10` / second | `META_MEDIA_RATE_LIMIT_PER_SEC` |
| **Live Comment Replies** | `100` / second | `META_LIVE_COMMENT_RATE_LIMIT_PER_SEC` |
| **Per-Thread Pacing** | `1.0` second min gap per recipient | `META_THREAD_PACING_MIN_INTERVAL_SEC` |
| **Conversation Sync** | `2` / second | `META_CONVERSATION_RATE_LIMIT_PER_SEC` |

***

## 3. Natural Reply Timing

Instant, robotic replies look unnatural. Instance adds a small random delay (1 to 4 seconds on top of your configured typing delay) when the AI replies in DMs, and staggers queued retries slightly so bursts of comments never fire all at the exact same millisecond.

***

## 4. Account Health and Automatic Recovery

* **Automatic Throttle Cooldowns**: If Meta ever asks your account to slow down, Instance pauses sending briefly, waits out a 60-second cooldown, and resumes automatically once rate-limit windows reset.
* **Expired Token Alerts**: If your Instagram connection expires or is revoked, Instance flags it right away so you can reconnect in **Dashboard -> Settings -> Account Profile**.
* **AI Provider Backup**: If an AI provider slows down or times out (default 8 seconds), Instance switches to your backup provider or sends your configured human handoff message so leads are never left hanging.

***

## 5. Human Takeover and Duplicate Protection

* **30-Minute Human Takeover Pause**: If you reply manually from the Instagram mobile app or Meta Business Suite, Instance detects your reply and automatically pauses bot automations and AI for **30 minutes** on that thread so the bot never talks over you.
* **No Duplicate Replies**: Every incoming update from Meta is verified and deduplicated so network retries never trigger the same DM flow or comment reply twice.
* **Safe Video Links**: Video links sent in DMs are delivered cleanly as clickable links so Meta never rejects oversized attachments.

***

## 6. Negative Sentiment and Spam Shield

Comment and Live Comment triggers include a built-in **Negative Sentiment Shield** (`strict`, `moderate`, or `loose` sensitivity plus custom blocklists):

* Catches spam patterns (Telegram/WhatsApp/crypto/phone scams), toxic keywords, and refund disputes.
* Automatically **hides** harmful comments on your post and **skips** sending automated promo DMs to spammers.

***

## 7. New Account Warm-Up Playbook

If your Instagram account is brand new or has never used API automation, ramp up volume gradually over 4 weeks:

| Week | Recommended Daily DMs | Notes |
| :- | :- | :- |
| **Week 1** | `30 - 50` DMs/day | Start with Story Mentions and 1-2 high-intent Comment-to-DM posts. |
| **Week 2** | `100 - 150` DMs/day | Enable AI Sales Chat with a safety message cap around `15-20`. |
| **Week 3** | `250 - 400` DMs/day | Add Reel Comment-to-DM funnels and Follower Gate checks. |
| **Week 4+** | Scaled | Operate up to Meta's standard hourly limits with health monitoring active. |


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