Case study

AI Social Listening and Reply Agent for a Skincare Brand

A marketing agency running campaigns for a skincare brand needed to join relevant conversations on TikTok, Instagram and Xiaohongshu every day, in English, Bahasa Malaysia and Chinese, with replies that sound like a real peer rather than a marketer.
  • Client: A marketing agency for a skincare brand
  • Industry: Marketing & Social Media
  • AI capability: Generative AI
Architecture diagram in five stages: sources (TikTok, Instagram, Xiaohongshu), AI understanding (Gemini models and reply rules), reply engine (persona and language selection, batch LLM jobs), backend (FastAPI, MongoDB, daily schedulers) and delivery (approval dashboard, analytics, automated posting)
Platforms: TikTok, Instagram and Xiaohongshu
3
Lower LLM cost from batch processing
~50%
Reply languages: English, Bahasa Malaysia and Chinese
3
Monthly servers and scraping APIs, plus Gemini usage
~USD 250

The challenge

Most keyword hits are noise, and replies must sound like a peer

Finding the right posts by hand was slow: most posts found by keyword are irrelevant, ads or spam. Replies had to sound like a real peer, go out from many separate accounts without breaking platform limits, and every reply needed human approval before it was posted. The running cost also had to stay low enough for an ongoing campaign.

What we built

Listen daily, qualify with AI, draft replies, approve, post

The client's team approves replies in a dashboard before they are posted.

  1. Stage 1

    Multilingual proof of concept

    We validated reply generation on 50 sample posts in English, Bahasa Malaysia and Chinese using a Gradio test interface before connecting any live account.
  2. Stage 2

    Daily listening pipeline

    Scrapers pull posts and comments by keyword and hashtag from TikTok, Instagram and Xiaohongshu once a day, then filter out old posts, already-seen posts and excluded hashtags.
  3. Stage 3

    AI qualification

    Gemini reads the post text, images and trimmed video clips and applies the client's reply rules (skin concerns, ingredient questions, competitor experiences) to keep only posts and comments worth answering.
  4. Stage 4

    Persona reply drafting

    For each qualified post the model picks a persona and reply language from the content and drafts up to three short comment replies in the brand's peer-to-peer voice.
  5. Stage 5

    Approval and posting

    The team reviews, edits, regenerates or skips replies in a password-protected dashboard. Approved replies are posted by automated browser sessions, capped at three posts per account per day.
  6. Stage 6

    Cost control

    LLM calls are sent as batch jobs first, at about half the cost, with a synchronous fallback after four hours so posts are still answered while fresh.

The impact

Community engagement as a daily, reviewable pipeline

  • TikTok, Instagram and Xiaohongshu
  • Replies in the post's language
  • About 50% lower LLM cost with batch jobs

The full pipeline is delivered end to end: daily scraping, AI qualification, multilingual reply drafting, human approval and automated posting. The dashboard includes a review queue, activity history, analytics (posts found against AI-qualified against approved, top keywords and trends) and a budget tracker. Batch processing cuts LLM cost by about 50%, and servers and scraping APIs cost about USD 250 per month, plus Gemini usage.

Book a strategy session

Talk to an AI engineer about your project

Tell us what you want to automate. The first call is a 30-minute working session with an engineer, not a sales pitch.

  • Send the form, it takes 2 minutes
  • We reply within 1 business day, under NDA if you need it
  • A 30-minute call to scope feasibility and next steps

Tell us about your project

By submitting, you agree to our Privacy Policy. We never share your details.