All Blueprints
W
Manual
🤖 AI-Powered
Scale Plan

WhatsApp Inbound Auto-Reply

Receive inbound WhatsApp messages and reply automatically with AI, retaining conversation context within the 24-hour customer-service window. Pulls recent history from prior messages and sends a message back.

About this Blueprint

When a customer sends a WhatsApp message to your registered Business Phone Number, the platform centralised webhook at /api/webhooks/whatsapp routes it to this automation (Architecture B — one Meta webhook URL, many per-tenant automations). **What V2 does differently from V1:** before generating a reply, it fetches the most recent N messages exchanged with that specific phone number from the platform's whatsapp_messages table. The AI sees the running conversation and stays coherent across multiple turns. After replying, it logs the outbound message back to the same table so the next inbound triggers a memory-aware reply. **Limits and caveats:** • Only operates on text messages in V1. Non-text (image, audio, video, document, interactive) gets a polite default reply. • Memory window is configurable (default last 10 messages) — keep small to stay within model context limits and reduce token cost. • Reply is free-form text, only valid within Meta's 24-hour customer-service window. If the user has been silent for >24h, the API will reject the send with code 131047 and the reply will be logged as failed. • No template fallback in V1. For outside-window engagement, use the Campaign Publisher blueprint with a pre-approved template instead.

Required Integrations

W
Whatsapp
G
Groq

Tags

messaging
whatsapp
meta
ai
auto-reply
inbound
memory
Est. run time: 10m
Trigger: whatsapp_inbound
v2.0.0

This Blueprint requires a Pro plan.

View Plans & PricingSign up free