ربط واتساب
Connect WhatsApp
Purpose
Connecting WhatsApp enables you to send and receive WhatsApp messages directly in SkyLight Chat. All conversations sync to the unified inbox, AI agents can respond automatically, and you can run campaigns to your WhatsApp contacts.
Who Can Access
| Requirement | Details |
|---|---|
| Permission | manage_whatsapp |
| Plan | Must include whatsapp_access feature |
| Role | Admin or Agent with permission |
Prerequisites
Before connecting WhatsApp, ensure:
- WhatsApp installed — On your mobile phone (iOS or Android)
- Active phone number — WhatsApp account must be active
- Internet connection — Both phone and computer need internet
- Plan includes WhatsApp — Check Settings → Subscription for
whatsapp_access - Permission granted — Your user has
manage_whatsapppermission
Full Walkthrough
Step 1: Navigate to WhatsApp
- Log in to your SkyLight Chat dashboard
- Click WhatsApp in the sidebar under Channels
- If not connected, you'll see the connection screen
Step 2: Generate QR Code
- Click Connect WhatsApp or Generate QR Code
- A QR code appears on screen
- The QR code is valid for approximately 60 seconds
- A countdown timer shows remaining time
Step 3: Open WhatsApp on Your Phone
On iPhone:
- Open WhatsApp
- Tap Settings (gear icon, bottom right)
- Tap Linked Devices
- Tap Link a Device
- Authenticate with Face ID, Touch ID, or passcode
On Android:
- Open WhatsApp
- Tap Menu (three dots, top right)
- Tap Linked Devices
- Tap Link a Device
- Authenticate if prompted
Step 4: Scan the QR Code
- Point your phone's camera at the QR code on screen
- Hold steady until the code is recognized
- WhatsApp will show "Logging in..."
Step 5: Wait for Connection
- The dashboard shows "Connecting..." with a spinner
- Connection typically takes 5-15 seconds
- Once connected, you'll see a success message
- Your WhatsApp number appears in the settings
Step 6: Initial Sync
After connection:
- Recent conversations begin syncing
- Contact names are imported
- Profile photos are downloaded
- This process may take 1-5 minutes depending on history
Field & Control Glossary
Connection Screen
| Control | Type | Description |
|---|---|---|
| QR Code | Image | Scannable code for WhatsApp linking |
| Countdown Timer | Display | Time remaining before QR expires |
| Refresh QR Code | Button | Generate a new QR code |
| Cancel | Button | Return to previous screen |
Connected State
| Control | Type | Description |
|---|---|---|
| Phone Number | Display | Connected WhatsApp number |
| Status Indicator | Badge | Connection health (OK, Error, etc.) |
| Last Synced | Timestamp | When messages last synced |
| Refresh Status | Button | Manually check connection |
| Settings | Button | Open WhatsApp settings |
| Disconnect | Button | Remove WhatsApp connection |
Statuses & Badges
Connection Status
| Status | Badge | Meaning |
|---|---|---|
| Connected | 🟢 Green | Active and healthy |
| Connecting | 🟡 Yellow | Initial setup in progress |
| Syncing | 🔵 Blue | Syncing message history |
| Error | 🔴 Red | Connection issue — action required |
| Disconnected | ⚪ Gray | Not connected |
Sync Status Values
| Status | Description |
|---|---|
OK | Connected and functioning normally |
CONNECTING | Account is initializing |
SYNC_SUCCESS | Sync completed successfully |
CREDENTIALS | Re-authentication required |
ERROR | Generic error — try refresh |
STOPPED | Account paused |
CREATION_FAIL | QR connection attempt failed |
Nested Screens
QR Expired Modal
When the QR code expires:
┌─────────────────────────────────────────────────────────────────┐
│ QR Code Expired [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ The QR code has expired. Generate a new one to continue. │
│ │
│ [Generate New QR Code] │
│ │
└─────────────────────────────────────────────────────────────────┘
Connection Success Modal
After successful connection:
┌─────────────────────────────────────────────────────────────────┐
│ WhatsApp Connected! ✓ [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Your WhatsApp account +966 50 123 4567 is now connected. │
│ │
│ Your messages will start appearing in the inbox shortly. │
│ │
│ [Go to Inbox] [Configure Settings] │
│ │
└─────────────────────────────────────────────────────────────────┘
Disconnect Confirmation Modal
When disconnecting WhatsApp:
┌─────────────────────────────────────────────────────────────────┐
│ Disconnect WhatsApp [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Are you sure you want to disconnect +966 50 123 4567? │
│ │
│ What would you like to do with your contacts? │
│ │
│ ○ Keep contacts in SkyLight Chat │
│ ○ Remove contacts imported from this channel │
│ │
│ ⚠️ Active campaigns using this channel will be paused. │
│ │
│ [Cancel] [Disconnect] │
│ │
└─────────────────────────────────────────────────────────────────┘
How It Connects
| Feature | Relationship |
|---|---|
| Inbox | WhatsApp conversations appear in unified inbox |
| Contacts | WhatsApp contacts sync to contact database |
| AI Agents | Can auto-reply to WhatsApp messages |
| Campaigns | WhatsApp is available as a campaign channel |
| Knowledge Base | AI uses KB to answer WhatsApp queries |
| Bookings | Booking confirmations can be sent via WhatsApp |
Limits & Plan Behavior
Plan Requirements
| Plan | WhatsApp Access |
|---|---|
| Starter | Not included |
| Pro | ✓ Included |
| Business | ✓ Included |
| Enterprise | ✓ Included |
Channel Limits
| Plan | Total Channels |
|---|---|
| Starter | 1 |
| Pro | 3 |
| Business | 5 |
| Enterprise | Unlimited |
What Happens Without whatsapp_access
If your plan doesn't include WhatsApp:
- WhatsApp menu item shows a lock icon
- Clicking it shows an upgrade prompt
- You cannot generate QR codes
- Existing connections (if any) become read-only
Troubleshooting
QR Code Won't Scan
Symptoms: WhatsApp doesn't recognize the QR code
Solutions:
- Ensure QR code hasn't expired (check timer)
- Click Refresh QR Code to generate new one
- Clean your phone camera lens
- Increase screen brightness
- Move phone closer or further from screen
- Try in a well-lit environment
"Link a Device" Not Appearing
Symptoms: Option missing in WhatsApp settings
Solutions:
- Update WhatsApp to latest version
- Restart WhatsApp app
- Restart your phone
- Ensure WhatsApp has camera permission
Connection Stuck on "Connecting"
Symptoms: Spinner shows indefinitely after scanning
Solutions:
- Wait up to 60 seconds — first connection can be slow
- Check phone has stable internet connection
- Check computer has stable internet connection
- Try on a different network (avoid VPNs)
- Refresh the page and try again
"Already Connected" Error
Symptoms: Error says WhatsApp is already connected
Solutions:
- Check if another team member connected this number
- Go to WhatsApp Settings to see existing connection
- Click Disconnect first, then reconnect
- If connected elsewhere, unlink from WhatsApp app first:
- WhatsApp → Linked Devices → Select device → Log Out
Connection Drops Frequently
Symptoms: WhatsApp disconnects repeatedly
Solutions:
- Ensure phone stays connected to internet
- Don't force-close WhatsApp on phone
- Disable battery optimization for WhatsApp
- Keep phone connected to Wi-Fi when possible
- Check Settings → Linked Devices on phone for issues
Messages Not Syncing
Symptoms: Connected but messages don't appear
Solutions:
- Wait 1-5 minutes for initial sync
- Click Refresh Status in WhatsApp settings
- Send a test message from your phone
- Check connection status badge
- Verify
global_inboxpermission or conversation assignment
Error: "Campaign Running"
Symptoms: Cannot disconnect WhatsApp
Solutions:
WhatsApp cannot be disconnected while campaigns are active:
- Go to Campaigns
- Find campaigns using WhatsApp
- Pause or Cancel the campaigns
- Return to WhatsApp settings
- Disconnect should now work
Best Practices
Before Connecting
- Dedicated number recommended: Use a business phone number, not personal
- Backup important chats: Connection won't affect existing chats, but good practice
- Inform your team: Let colleagues know you're connecting
After Connecting
- Test with a message: Send yourself a test message
- Configure settings: Set up greeting messages and auto-replies
- Enable AI (optional): Configure AI agents for automated responses
- Set up notifications: Configure how you'll be notified of messages
Maintaining Connection
- Keep WhatsApp active: Don't uninstall or log out of WhatsApp
- Monitor status: Check connection status periodically
- Update WhatsApp: Keep the app updated for compatibility
