Instagram reply automation
An automation that answers Instagram comments in the account's own voice and in each commenter's language, through Meta's official API — and leaves anything sensitive to the person who owns the account.
context
A content account on Instagram whose videos draw comments from all over the world, in many languages. Answering them builds the community, but it takes hours, and the replies have to sound like the owner.
problem
Replying by hand didn't keep up. Replying through the Instagram website was worse: the web app can post a reply as a new comment instead of under the one it answers. A fast reply also has to be a safe one — the account runs a story, and a careless reply can give away what happens next.
my role
I designed the system and built it end to end, with AI-assisted development: the Instagram integration, the reply writer, the safety checks, the schedule, and a test bench in Mastra for trying new reply styles before they go live.
key decisions
- Official API only. Every reply goes through Meta's Graph API and is posted under the comment it answers. No browser automation, no unofficial tools.
- Safety before speed. Each AI reply passes fixed rules (short, has an emoji, no links, hashtags or mentions, no repeats) and then a second review for spoilers and tone. A reply that fails is replaced by a pre-approved line.
- A person stays in the loop. Criticism, complaints, real questions and sensitive topics get no automatic reply: they are left for the owner.
- Privacy by default. Only the comment text is sent to the AI — no usernames — and private messages never go to it.
solution
It runs on a schedule every three hours, for free, with a cap per run and one reply per person per post to stay within Instagram's limits. A dry-run mode shows exactly what would be posted, and a switch decides whether live runs use the AI writer or the pre-approved lines. If the AI is unavailable, the run falls back to those lines and keeps going.