This looks interesting — I like the combination of Node.js, SQLite, and OpenAI.
One thing I’m curious about: how are you handling rate limits and message ordering when dealing with WhatsApp APIs at scale?
In my experience with messaging systems, those tend to be tricky edge cases.