Flow Patterns
Seven named patterns that cover most of what people build with SociaHive automation flows — keyword router, AI fallback, drip, comment-to-DM, and more.
SociaHive flows are graphs: nodes are actions or branches, edges are paths. Most flows are variations on a small set of patterns. Knowing them by name makes it easier to describe what you want to an AI assistant.
This is SociaHive's equivalent of a prompt library — opinionated, named patterns instead of an endpoint dump.
Keyword router
"If the comment says X, do A. If it says Y, do B. Otherwise do C."
When: any auto-reply that branches on what the user said.
MCP shortcut: generate_flow with description "Branch on keywords X, Y;
default to Z". The AI picks condition nodes correctly.
AI fallback
"Try a template reply first. If the message doesn't match any template, hand off to AI."
When: customer support, inbound DMs where most messages are predictable but you want graceful degradation. Why this beats pure AI: template replies cost 0 credits and never hallucinate. AI only fires when the template can't.
Data collection funnel
"Ask name, then email, then qualifying question — drop into CRM."
When: lead capture, demo booking, applicant intake.
Pro tip: data_collection nodes have built-in validation. Use email,
phone, url types — SociaHive enforces format.
Drip with branches
"Day 0: welcome. Day 2: tutorial. Day 5: ask if they need help. Branch on reply."
When: onboarding sequences, course delivery, win-back flows.
Watch the gap
Delays longer than 7 days see ~95% drop-off. Tighter usually wins.
Comment → DM conversion
"Public comment reply ('DMing you now!') paired with a private DM."
When: the bread-and-butter Instagram play. Public reply boosts algorithm signal; DM moves the user to a higher-intent surface.
Instagram opening-DM rule
The first DM in this flow needs isOpeningDm: true — Meta blocks unsolicited
DMs sent by businesses. The MCP generate_flow tool sets this automatically;
if you're wiring nodes by hand, set it on the first message node after the
public comment reply.
Webhook-on-completion
"When this flow finishes, ping our CRM."
When: integration with external systems (HubSpot, Salesforce, custom
CRMs) before native connectors land.
Tip: the webhook node sends the entire flow execution context — every
collected value, tag, variable. Easier than building data per-call.
Randomizer A/B/C/D
"Send variant A or B or C or D, 25/25/25/25."
When: A/B testing copy or AI prompts. Tag downstream so analytics filter by variant.
Tier-gated
The randomizer node is available on Scale and Agency plans.
Anti-patterns
- Infinite loop. A flow whose last edge points back to its trigger. SociaHive's engine guards via max-depth, but you burn credits on the way.
- 100-node monolith. If a flow has >30 nodes, split it. Use one to qualify, then trigger another via tag or sequence.
- AI for trivial branches. A
conditionnode is free;ai_responsecosts 5 credits. Don't pay 5 to decide "yes or no."
Pattern → goal mapping
| Goal | Pattern |
|---|---|
| Reply faster to common DMs | AI fallback |
| Build an email list off Instagram | Comment → DM, then data collection funnel |
| Send a course over 2 weeks | Drip with branches |
| Route comments by intent | Keyword router |
| Run an A/B test | Randomizer |
| Hand off to a human inbox | AI fallback (human-handoff variant) |
| Push lead data to your CRM | Webhook-on-completion |
Building one of these
The fastest way is to describe it to your AI assistant via MCP and let it
call generate_flow. See the MCP setup guide to connect
Claude / ChatGPT / Cursor, then prompt something like:
Build a SociaHive flow using the "comment → DM" pattern: when an Instagram comment contains "price" on any of my posts, reply publicly with "DMing you now! 📩" and send a DM with my pricing link.
Or wire it directly via the SDK — see the developer quickstart.