LangGraph Agent on WhatsApp: Voice, Photos, Memory — an Open-Source Starter With Solid Design Notes

Nice-Brilliant1697 · reddit · 2026-11-21

An open-source starter (TypeScript/Docker/MIT) for running a LangGraph agent on WhatsApp: scan a QR to link, users send text/voice/photos, the agent transcribes, answers and generates images back. Key design choices: thread ID = keyed hash of chat ID (no lookup table, phone numbers never exposed); summarizationMiddleware compacts week-long histories; one run per chat (4 parallel); the model never chooses recipients so prompt injection can't reroute replies; image generation capped at once per run. Honest limits: unofficial WAHA gateway (use a spare number), private chats and English voice only, no retries, possible message drops under concurrency.

Original post →

More from coding & agent

coding & agent channel →