Case Studies Automation DM Instagram Marketplace Social

Case Study: Automate Instagram Chat with Oshaani

How brands reply to Instagram DMs in seconds using market.oshaani.com, oshaani.com, and social.oshaani.com — persona, AI runtime, and Pause AI.

How brands reply to Instagram DMs in seconds — without losing the human touch

Product Role
oshaani.com AI agent runtime, conversation memory, API keys & credits
social.oshaani.com Instagram connect, webhooks, inbox, auto-reply orchestration
market.oshaani.com Discover and configure the agent persona that powers replies

Note: if you use the marketplace hostname market.oshaanit.com, treat it as the same Marketplace product surface as market.oshaani.com.


1. The problem

Instagram DMs are where intent shows up: product questions, pricing, “are you open?”, collaboration asks, support complaints. Most teams either:

  • reply late and lose the lead, or
  • paste the same canned reply forever, or
  • hire someone to sit in Meta Inbox all day.

None of those scale. What brands actually need is:

  1. Instant, on-brand first replies
  2. Memory of the conversation (not a new bot every message)
  3. A one-click way for a human to take over when it matters

That is the stack Oshaani was built for.


2. The solution in one sentence

Pick (or build) an agent on Marketplace → run it on oshaani.com → connect Instagram on social.oshaani.com and turn on DM auto-reply. Incoming DMs hit Meta webhooks, Oshaani drafts the reply, Social sends it back through the Instagram Messaging API, and staff can pause AI per thread anytime.

Customer DM
    │
    ▼
Meta Instagram Messaging webhook
    │
    ▼
social.oshaani.com  (store message, enforce keywords / cooldown / delay)
    │
    ▼
oshaani.com agent   (continue conversation_id for that customer)
    │
    ▼
social.oshaani.com  (send Instagram reply + log outgoing message)
    │
    ▼
Customer sees reply  ·  optional Pause AI for human takeover

3. Who each product is for

oshaani.com — the brain

  • Hosts the AI agent that writes replies
  • Keeps a stable conversation_id so each Instagram sender keeps context
  • Holds the agent API key and credit wallet (or personal key with no platform charge)
  • Powers the same agent used for chat elsewhere in the Oshaani suite

social.oshaani.com — the Instagram control plane

  • Connect a professional (business/creator) Instagram account via Meta
  • Subscribe the linked Facebook Page to Instagram messaging webhooks
  • Configure DM auto-reply: on/off, AI vs template, persona notes, keywords, cooldown, reply delay, fallback text, signature
  • Inbox UI + Mobile API for staff replies and Pause AI / Resume AI per customer
  • Charges Social credits only when using the shared/platform agent path

market.oshaani.com — the agent storefront

  • Browse or publish agents tuned for sales, support, creators, local businesses
  • Choose the agent that matches brand voice before wiring Instagram
  • Hand off the agent identity / API access into oshaani.com so Social can call it

Together: Marketplace chooses the persona → Oshaani runs it → Social attaches it to Instagram.


4. Case narrative: “Studio North” (illustrative)

Business: Boutique fitness studio. Instagram is their primary lead channel.
Pain: DMs asking class times and pricing sat for hours; staff missed evening messages.
Goal: Reply in under a minute, collect name + preferred class, escalate payment issues to a human.

What they set up

  1. Marketplace — selected a “Friendly local business” style agent and customized tone (“warm, short, never invent prices”).
  2. oshaani.com — confirmed the agent API key and credit balance (or attached a personal agent key).
  3. social.oshaani.com
    - Connected Instagram professional account linked to their Facebook Page
    - Subscribed DM webhooks
    - Enabled AI auto-reply with:
    • Persona: “You are Studio North’s front desk. Be brief. Ask one question at a time.”
    • Keywords: price, class, book, schedule, hi, hello (optional filter)
    • Cooldown: 0 during launch week (always answer)
    • Reply delay: 15–30s so it feels human
    • Fallback: “Thanks for messaging Studio North — someone will reply shortly.”
    • Trained the team to hit Pause AI for refunds and complaints

What happens on a typical DM

Step System Outcome
1 Customer sends “Hey, how much is the intro class?” Meta delivers webhook to Social
2 Social stores inbound message Status queued for auto-reply
3 Filters pass (auto-reply on, keywords match, not on cooldown, AI not paused) Celery task auto_reply_dm runs
4 Social calls Oshaani with the customer text Continues that sender’s conversation_id
5 Oshaani returns a short reply e.g. intro offer + ask preferred day
6 Social sends via Instagram Graph API Outgoing message logged; customer sees reply
7 Customer asks about a refund Staff opens inbox → Pause AI → human replies

No custom Meta bot code. No Zapier glue. Same agent memory across the thread.


5. Setup checklist (production)

A. Agent (market.oshaani.com → oshaani.com)

  • [ ] Create or pick an Instagram-oriented agent on Marketplace
  • [ ] Open the agent on oshaani.com; copy/confirm API access
  • [ ] Add enough credits, or connect a personal Oshaani API key on Social (personal key path is not charged from Social credits)

B. Instagram on social.oshaani.com

  • [ ] Instagram must be a professional account linked to a Facebook Page you admin
  • [ ] Connect Instagram under Connected Accounts / Instagram hub
  • [ ] Subscribe the Page to Instagram messaging webhooks (button on the Instagram hub)
  • [ ] Confirm DMs appear in the Instagram inbox when you test from a different IG account

C. Auto-reply config (per IG account)

  • [ ] Enable Auto-reply
  • [ ] Leave Use AI on (or off to send only the fallback template)
  • [ ] Write persona instructions (voice, language, hard “never” rules)
  • [ ] Optional keywords, cooldown hours, reply delay, signature
  • [ ] Set a solid fallback template for AI/timeout failures

D. Operations

  • [ ] Use Pause AI for legal, payment, or angry threads
  • [ ] Monitor reply quality for the first week; tighten persona instructions
  • [ ] Keep Meta app permissions and tokens healthy (reconnect if Graph returns permission errors)

6. Architecture details (for technical readers)

Layer Responsibility
Meta webhook Delivers Instagram messaging events to Social
InstagramMessage Stores inbound/outbound DMs and status
InstagramDMConfig Per-account auto-reply settings
InstagramDMConversation Maps (account, sender_id) → Oshaani conversation_id + human takeover flag
Celery auto_reply_dm Generates reply (Oshaani) and sends via Instagram client
Charged Oshaani client Applies Social credit rules unless a personal agent key is used
Fallback template Sent when AI is off or generation fails
Human takeover Pause AI stops auto-reply for that sender until Resume

Design choices that matter in practice:

  • One conversation per customer — context survives “hi” → “price?” → “book Thursday”.
  • Reply delay — reduces “bot feel” and batches rapid follow-ups.
  • Cooldown / keywords — protect reputation and spend.
  • Human takeover is explicit — a staff reply alone does not pause AI; Pause AI does.

7. Results brands typically care about

Metric Without automation With Oshaani stack
First response time Hours (or never) Seconds to a couple of minutes
After-hours coverage Missed Always on
Consistency of tone Varies by staff Persona-controlled
Escalation Ad-hoc Pause AI per thread
Engineering cost Custom bot + hosting Configuration only

Exact lift depends on volume and how sharp the persona is — but the operational win is immediate: every serious DM gets a first response.


8. Best practices

  1. Write “never” rules in persona text (“Never invent prices. Never promise refunds.”).
  2. Always set a fallback — timeouts and empty AI answers still need a human-sounding line.
  3. Start with a short delay (15–45s); raise only if you need batching.
  4. Use keywords after launch if spam volume rises.
  5. Train staff: Pause AI first, then type.
  6. Test only from a second Instagram account — you cannot reliably DM yourself for webhook tests.
  7. Keep Marketplace agent and Social config aligned; if voice drifts, update the agent or persona, not both at random.

9. When not to fully automate

  • Medical, legal, or financial advice that requires a licensed human
  • Active disputes and chargebacks
  • VIP / enterprise accounts that expect a named person

For those, leave auto-reply on for triage, then Pause AI the moment the thread is sensitive.


10. Call to action

  1. Browse or publish an agent on market.oshaani.com
  2. Confirm it runs and has access on oshaani.com
  3. Connect Instagram and enable DM auto-reply on social.oshaani.com

Questions or onboarding help: WhatsApp +91 72910 59787 · email info@oshaani.com


Case study based on the Instagram DM auto-reply path shipping on social.oshaani.com (webhooks → Celery → Oshaani agent → Instagram Messaging API), with agents sourced and configured via the Oshaani Marketplace and runtime on oshaani.com.

Comments 0

Leave a Comment

No comments yet. Be the first to comment!

Support