In-depth technical writing on AI, ML, distributed systems, and modern engineering.
HMAC-SHA256 signature verification, the 20-second response requirement, deduplication by wa_msg_id, and webhook verification challenge handl…
Resolving a phone number to user+role, persona classes (Lawyer/Client/Staff/Unknown) with role-aware system prompt context, and fallback for…
Two-layer classification: Layer 1 keyword matching for common intents, Layer 2 LLM classification for ambiguous messages, confidence thresho…
Downloading voice notes from Meta's media endpoint, local Whisper transcription via HTTP microservice, language hint injection, and graceful…
The WAV-not-MP3 trap, the UTF-8 /u flag corruption bug in prepareText(), audio type classification, and keeping the model warm with a health…
TTS → WAV → OGG/OPUS via FFmpeg → Meta upload → send media_id → monitor delivery status. The silent failure trap: API returns 200 but delive…
Per-user session schema, storing last N turns, context injection into LLM prompts, session expiry, and multi-device handling.
Script-based language detection (Devanagari/Gurmukhi Unicode blocks), storing preferred_lang per contact, language-specific error messages i…
Storing wa_message_id + transcript on created workspace items, WebhookContext globals for cross-cutting request state, and the media URL exp…
Client asks the WhatsApp AI agent → bot forwards to lawyer → lawyer replies via WhatsApp → bot forwards to client. Relay detection, forwardi…
Weekly digest of the best new articles, videos, and tutorials. No spam, unsubscribe anytime.
✓ Check your inbox to confirm!