Claude-coded WhatsApp bot breaks when users go off-script: state management ask
Ok-Zombie-9595 · reddit · 2026-11-03
A developer with no formal coding background, building his third client WhatsApp bot with Claude-generated code, hit a wall: his strict if/else sequential logic can't handle real users deviating from the expected path, defaulting to admin takeover.
For example, when booking an appointment the bot lists 4-5 time slots, but if a user asks about pricing mid-flow or taps a wrong menu button, the code loses all context. He's asking for architectural advice on conversational context and state management — patterns and libraries that let a bot answer tangent questions, remember its goal, and gracefully steer users back. A representative vibe-coding pain point: deterministic scripts vs. flexible agents.
More from coding & agent
- 10,000 AI agents burned his API credits; 500 agents in 50 waves worked — Beneficial-Cow-7408 · 2026-11-03
- h1 Paper Shows Bitter Lesson in Automated Theorem Proving: Simple Harness Hits SOTA, Solves 4 Erdős Problems — burny_tech · 2026-11-03
- Walrus MCP Server connects AI assistants to decentralized storage — modelcontextprotocol · 2026-11-03
- News Volume Trends MCP queries news volume growth for any topic — modelcontextprotocol · 2026-11-03
- Pen ships a canvas plugin for Codex, adding design powers to ChatGPT — paw_lean · 2026-11-03
- Elicit engineers all use Ramp's Inspect — a credit card company builds a top coding agent harness — jungofthewon · 2026-11-03