| layout | title | permalink |
|---|---|---|
page |
Installation |
/installation/ |
Getting started with Koel is straightforward. Follow these steps to set up your own WhatsApp AI assistant.
Before installing Koel, make sure you have:
- Docker and Docker Compose: Koel runs in a Docker container for easy deployment
- For Ollama integration: Ollama running on the host machine (optional)
- WhatsApp account: An active WhatsApp account for authentication
git clone https://github.com/yourusername/whatsapp-mcp.git
cd whatsapp-mcpUsing Docker Compose (recommended):
docker-compose up --build -dAlternatively, you can use the standalone Docker run command:
docker run -d -it --name whatsapp-mcp -p 8501:8501 -v whatsapp_data:/app/whatsapp-bridge/store yourusername/whatsapp-mcp:latestOpen your browser and navigate to:
http://localhost:8501
You'll be greeted by Koel's web interface where you can configure settings and interact with the assistant.
{: .feature-image }
On first run, you'll need to scan a QR code to authenticate with WhatsApp Web:
- Start the application as described above
- Check the Docker logs to see the QR code:
docker logs whatsapp-mcp
- Open WhatsApp on your phone
- Go to Settings > Linked Devices > Link a Device
- Scan the QR code displayed in the logs
- Wait for the connection to be established
Once authenticated, Koel will maintain the session until you log out or perform a factory reset.
After installation, you'll need to configure Koel to suit your needs:
- Navigate to the Settings tab in the web interface
- Choose your preferred LLM provider:
- Gemini:
- Enter your API key
- Select the model names
- Ollama:
- Enter the base URL (e.g., http://host.docker.internal:11434)
- Select the model names
- Gemini:
- Go to the Auto-Responder tab
- Select which individual and group chats to monitor
- Configure rate limiting and randomization
- Add custom instructions for the AI
- Navigate to the Summary tab
- Configure when and how often summaries are generated
- Select which chats to include in summary generation
Koel uses a Docker volume (whatsapp_data) to store:
- WhatsApp session data
- Message history
- Configuration settings
This ensures your data persists across container restarts.
If you can't scan the QR code:
- Try a factory reset from the settings page
- Restart the container
- Scan a new QR code
If you're experiencing connection issues:
- Check the Docker logs for error messages:
docker logs whatsapp-mcp
- Ensure your internet connection is stable
- Verify that your WhatsApp account is active
If the AI responses aren't working:
- Double-check your API keys and model names
- Ensure the LLM provider is accessible from the container
- Check the logs for any error messages related to the AI service
If using Ollama:
- Make sure Ollama is running on your host machine
- Verify the URL is correctly set to access Ollama from within the Docker container
- Ensure the models you want to use are downloaded in Ollama
Once you have Koel up and running, check out the [Usage Guide]({{ site.baseurl }}/usage) to learn how to make the most of your new WhatsApp assistant.
[Explore Usage Examples]({{ site.baseurl }}/usage){: .button}