Run Claude Code on WhatsApp using Kapso. Operations teams automate customer support, order processing, and FAQs. Connects to WhatsApp API and Claude Code.
git clone https://github.com/gokapso/claude-code-whatsapp.gitClaude Code on WhatsApp lets you run Claude Agent tasks directly through WhatsApp messages, with each user getting an isolated E2B sandbox environment. You can clone GitHub repositories, read and write files, execute commands, and create pull requests—all from WhatsApp. The integration uses Kapso to connect WhatsApp to a Node.js server that manages Claude sessions, GitHub access, and sandbox lifecycle. Sessions automatically pause after 30 minutes of inactivity and support branch-based workflows for safe, isolated code changes. This is useful for operations teams automating code tasks, customer workflows, and developer interactions without leaving the WhatsApp interface.
Clone the repository and install dependencies with npm install. Configure your .env file with API keys from Anthropic, E2B, Kapso, and GitHub (fine-grained PAT with contents and pull request permissions). Build the E2B sandbox template with npm run build:e2b, then set up a Kapso webhook pointing to your server URL. Run the development server with npm run dev or production with npm start, exposing it via ngrok or cloudflared tunnel.
Automated code changes and file editing via WhatsApp messages
GitHub repository management with PR creation from WhatsApp
Development team collaboration and code execution without leaving chat
Operations automation for code-based tasks and deployments
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/gokapso/claude-code-whatsappCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to automate customer support on WhatsApp using Claude Code and Kapso. Here's the scenario: [COMPANY] is a [INDUSTRY] business that wants to handle [SPECIFIC TASK] like order tracking, FAQs, or appointment scheduling. The WhatsApp API is already connected to Kapso. Generate a Claude Code script that can handle this task efficiently, including error handling and user-friendly responses.
# WhatsApp Customer Support Automation Script for [COMPANY]
```python
# Import required libraries
from kapso import WhatsAppClient
from claude_code import ClaudeCode
# Initialize WhatsApp client
whatsapp_client = WhatsAppClient(api_key='your_api_key_here')
# Initialize Claude Code
claude = ClaudeCode(api_key='your_claude_key_here')
# Define the support automation function
def handle_customer_support():
# Listen for incoming messages
for message in whatsapp_client.listen():
# Extract user query
user_query = message.text
# Generate response using Claude Code
response = claude.generate(
prompt=f"You are a customer support agent for [COMPANY]. Respond to this query professionally: {user_query}",
max_tokens=500
)
# Send response back to the user
whatsapp_client.send_message(message.sender_id, response)
# Start the support automation
if __name__ == "__main__":
handle_customer_support()
```
## Key Features
- **Automated Responses**: Claude Code generates professional responses to customer queries.
- **Real-time Processing**: Handles messages in real-time via WhatsApp API.
- **Error Handling**: Includes basic error handling for API failures.
- **Customizable**: Easily adaptable for different types of customer support tasks.Messaging platform for sales and customer support
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan