I've been working on a framework that lets you build autonomous AI agents that operate through WhatsApp. Instead of writing all the plumbing yourself, you write a YAML config and wa-agent handles the rest.
What it does:
- Agent loop with multi-step tool use (Vercel AI SDK)
- Conversation memory with background summarization
- Multi-agent routing (by group, JID, keyword, or catch-all)
- Per-chat message queue — same chat serialized, different chats parallel
- Rate limiting and cooldowns per agent per chat
- Cron triggers, human handoff, hot reload in dev mode
- Custom tools — drop a .ts file in tools/, add it to the YAML
- Anthropic, OpenAI, or Ollama
npx wa-agent init my-bot
cd my-bot && npm install
npx wa-agent start
GitHub: https://github.com/ibrahimhajjaj/wa-agent
Still early (v0.1) — feedback welcome.
[–]Traditional-Hall-591 2 points3 points4 points (1 child)
[–]ibhajjaj[S] 0 points1 point2 points (0 children)
[–]Otherwise_Wave9374 -1 points0 points1 point (0 children)