WhatsApp Automation
Automate WhatsApp messaging with OpenCompany. Receive messages, process them, and send responses.Prerequisites
Takes: ~15 minutes. You need: OpenCompany running, one AI key (Add your AI key), a WhatsApp account on your phone, and npm available (the WhatsApp bridge installs itself on first use). Pairing uses one of your WhatsApp “linked devices” slots and drops if the service stops.
Understanding WhatsApp Nodes
Connecting your WhatsApp account is done through the Credentials modal (WhatsApp panel), not a workflow node.
Step 1: Connect WhatsApp
- Click the WhatsApp icon in the toolbar to open the WhatsApp panel
- A modal appears with a QR code
- Open WhatsApp on your phone > Settings > Linked Devices > Link a Device
- Scan the QR code
- Wait for “Connected” status
Step 2: Create a Message Responder
Let’s build a workflow that auto-replies to incoming messages.Add WhatsApp Receive Trigger
- Drag WhatsApp Receive from the WhatsApp category
- Configure the trigger:
Filter Options
Step 3: Add an AI Response
- Drag AI Agent from the AI Agents palette section onto the canvas
- Connect WhatsApp Receive’s output to the AI Agent’s main input (top-left handle)
- Click the agent and configure:
Model dropdown empty? Add your provider key first — key icon (API Credentials) in the toolbar.
Step 4: Send the Response
- Drag WhatsApp Send onto the canvas
- Connect the AI Agent’s output to WhatsApp Send’s input
- Configure:
Complete Workflow
Step 5: Start it
- Press the green Start button in the top toolbar
- Send a message to your linked WhatsApp number from another phone
- The workflow triggers and sends an AI response
Available Data from WhatsApp Receive
Group Message Handling
For group messages, use:Example: Keyword-Based Response
Set up different responses based on keywords:Configuration
AI Prompt
Example: Group Bot
Reply only in specific groups:Troubleshooting
QR code not appearing
QR code not appearing
- Ensure the WhatsApp service is running (default port 9400)
- Open the WhatsApp panel from the toolbar and click Restart to relaunch the connection
- Check the Terminal tab for WhatsApp service logs
Messages not being received
Messages not being received
- Verify the workflow is started (Start pressed, not just saved)
- Check “Ignore Own Messages” setting
- Ensure filters aren’t too restrictive
Send fails with error
Send fails with error
- Verify phone number format (include country code)
- Check WhatsApp connection status
- Ensure recipient hasn’t blocked you
Tips
Next Steps
Android Automation
Control Android devices
WhatsApp Node Reference
Full node documentation