Open-source starter gives your OpenAI Agents SDK agent a WhatsApp number — 300 lines of TypeScript

Nice-Brilliant1697 · reddit · 2026-11-19

A developer open-sourced a 300-line TypeScript starter (MIT, Docker) that links a WhatsApp account via QR scan and routes messages to any OpenAI Agents SDK agent, with per-sender memory and an echo mode for keyless testing. Pipeline: WhatsApp → WAHA → webhook → adapter → agent run(). Key lessons: memory must be per person (shared history leaks chats), and the model should never choose the reply destination — prompt injection could redirect messages; the agent only returns text and replies always go back to the sender. Caveats: WAHA is an unofficial gateway, so use a spare number; good for MVP testing before Meta's official API approval.

Original post →

More from coding & agent

coding & agent channel →