Aymam AI – Instagram Marketing Agent

An AI agent that runs a small shop's Instagram from WhatsApp: it designs the posts, publishes on schedule and answers customer DMs 24/7.

The owner simply sends a product photo on WhatsApp (or Telegram). The agent turns it into studio-quality ad images and Reels, keeps a posting calendar, publishes to Instagram through the official API, and replies to customer messages using only the shop's own product, price and FAQ data. It is live and running for real shops.

Links


Why it's an agent, not just a post scheduler

The owner never opens a dashboard; everything happens in a chat.


What it does


Architecture

  1. Owner channel: WhatsApp / Telegram webhooks feed a Gemini-powered agent (with a deterministic command parser as fallback).
  2. Image pipeline: Gemini image generation, a fidelity check against the original product, SVG text overlay, then ffmpeg or Veo for video.
  3. Scheduler: drafts, posting slots, reminders and the weekly report.
  4. DM assistant: knowledge pack built from the shop's own data, price guard, and escalation to the owner.
  5. Instagram Graph API: publishing, messaging and insights.

  6. One Node service per shop, sharing a webhook hub; SQLite per shop.

  7. Official APIs only: WhatsApp Cloud API and Instagram API with Instagram Login.

Engineering highlights


Tech stack

Node.js 22 · Express · Google Gemini (text, vision, image) · Veo · sharp · resvg · ffmpeg · SQLite · WhatsApp Cloud API · Instagram Graph API · Telegram Bot API · AWS EC2 · Caddy