wa_llm

by ilanbenbVerified

A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned.

165
Stars
60
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/ilanbenb/wa_llm

Getting Started

Guides for using skills like wa_llm.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

📱 WhatsApp Group Summary Bot

release version Build Image Release

AI-powered WhatsApp bot that joins any group, tracks conversations, and generates intelligent summaries.


Features

  • 🤖 Automated group chat responses (when mentioned)
  • 📝 Smart LLM-based conversation summaries
  • 📚 Knowledge base integration for context-aware answers
  • 📂 Persistent message history with PostgreSQL + pgvector
  • 🔗 Support for multiple message types (text, media, links)
  • 👥 Group management & customizable settings
  • 🔕 Opt-out feature: Users can opt-out of being tagged in summaries/answers via DM.
  • ⚡ REST API with Swagger docs (localhost:8000/docs)

🐳 Docker Compose Configurations

This project includes multiple Docker Compose files for different environments:

FilePurposeUsage
docker-compose.ymlDefault/Development. Builds the application from source code.docker compose up -d
docker-compose.prod.ymlProduction. Uses pre-built images from GHCR. Recommended for deployment.docker compose -f docker-compose.prod.yml up -d
docker-compose.local-run.ymlLocal Execution. For running the app on host while services run in Docker.docker compose -f docker-compose.local-run.yml up -d
docker-compose.base.ymlBase Configuration. Contains shared service definitions.Do not use directly

📋 Prerequisites

  • 🐳 Docker and Docker Compose
  • 🐍 Python 3.13+
  • 🗄️ PostgreSQL with pgvector extension
  • 🔑 Voyage AI API key
  • 📲 WhatsApp account for the bot

Quick Start

1. Clone & Configure

git clone https://github.com/YOUR_USER/wa_llm.git cd wa_llm

2. Create .env file

  • Copy .env.example to .env and fill in required values.
cp .env.example .env

Environment Variables

VariableDescriptionDefault
WHATSAPP_HOSTWhatsApp Web API URLhttp://localhost:3000
WHATSAPP_BASIC_AUTH_USERWhatsApp API useradmin
WHATSAPP_BASIC_AUTH_PASSWORDWhatsApp API passwordadmin
VOYAGE_API_KEYVoyage AI key
DB_URIPostgreSQL URIpostgresql+asyncpg://user:password@localhost:5432/postgres
LOG_LEVELLog level (DEBUG, INFO, ERROR)INFO
ANTHROPIC_API_KEYAnthropic API key. You need to have a real anthropic key here, starts with sk-....
LOGFIRE_TOKENLogfire monitoring key, You need to have a real logfire key here
DM_AUTOREPLY_ENABLEDEnable auto-reply for direct messagesFalse
DM_AUTOREPLY_MESSAGEMessage to send as auto-replyHello, I am not designed to answer to personal messages.

3. Starting the Services

Option A: Development (Build from source)

docker compose up -d

Option B: Production (Use pre-built images)

docker compose -f docker-compose.prod.yml up -d

4. Connect your device

  1. Open http://localhost:3000
  2. Scan the QR code with your WhatsApp mobile app.
  3. Invite the bot device to any target groups you want to summarize.
  4. Restart service: docker compose restart wa_llm-web-server

5. Activating the Bot for a Group

  1. open pgAdmin or any other posgreSQL admin tool

  2. connect using

    ParameterValue
    Hostlocalhost
    Port5432
    Databasepostgres
    Usernameuser
    Passwordpassword
  3. run the following update statement:

        UPDATE public."group"
        SET managed = true
        WHERE group_name = 'Your Group Name';
    
  4. Restart the service: docker compose restart wa_llm-web-server

6. API usage

Swagger docs available at: http://localhost:8000/docs

Key Endpoints

  • /load_new_kbtopic (POST) Loads a new knowledge base topic, prepares content for summarization.
  • /trigger_summarize_and_send_to_groups (POST) Generates & dispatches summaries, Sends summaries to all managed groups

7. Opt-Out Feature

Users can control whether they are tagged in bot-generated messages (summaries, answers) by sending Direct Messages (DMs) to the bot:

CommandDescription
opt-outOpt-out of being tagged. Your name will be displayed as text instead of a mention.
opt-inOpt-in to being tagged (default).
statusCheck your current opt-out status.

Note: This only affects messages generated by the bot. It does not prevent other users from tagging you manually.


🚀 Production Deployment

To deploy in a production environment using the optimized configuration:

  1. Create Production Environment File: Copy .env.example to .env.prod and configure your production secrets.

    cp .env.example .env.prod
    
  2. Start Services:

    docker compose -f docker-compose.prod.yml up -d
    

This configuration includes:

  • Automatic restart policies (restart: always)

Developing

Setup

Install dependencies using uv:

uv sync --all-extras --dev

Development Commands

The project uses Poe the Poet for task automation with parallel execution:

# Run all checks (format, then parallel lint/typecheck/test)
uv run poe check

# Individual tasks
uv run poe format     # Format code with ruff
uv run poe lint       # Lint code with ruff
uv run poe typecheck  # Type check with pyright
uv run poe test       # Run tests with pytest

# List all available tasks
uv run poe

The check command runs formatting first, then executes linting, type checking, and testing in parallel for faster execution.

Key Files

  • Main application: app/main.py
  • WhatsApp client: src/whatsapp/client.py
  • Message handler: src/handler/__init__.py
  • Database models: src/models/

Architecture

The project consists of several key components:

  • FastAPI backend for webhook handling
  • WhatsApp Web API client for message interaction
  • PostgreSQL database with vector storage for knowledge base
  • AI-powered message processing and response generation

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

LICENCE

Frequently Asked Questions

What is wa_llm?

wa_llm is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ilanbenb. A WhatsApp bot that can participate in group conversations, powered by AI. The bot monitors group messages and responds when mentioned. It has 165 GitHub stars.

Is wa_llm safe to use?

Yes. wa_llm passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install wa_llm?

Clone the repository with "git clone https://github.com/ilanbenb/wa_llm" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is wa_llm written in?

wa_llm is primarily written in Python. It is open-source under ilanbenb on GitHub, so you can review or fork the full source.

Are there alternatives to wa_llm?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh wa_llm against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP Servers
View details

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP Servers
View details

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP Servers
View details

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP Servers
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details