Skip to content

Add WhatsApp channel onboarding support#8

Open
Photon1c wants to merge 1 commit intochrysb:mainfrom
Photon1c:feature/whatsapp-support-clean
Open

Add WhatsApp channel onboarding support#8
Photon1c wants to merge 1 commit intochrysb:mainfrom
Photon1c:feature/whatsapp-support-clean

Conversation

@Photon1c
Copy link
Copy Markdown

This PR adds WhatsApp as an onboarding channel option alongside the existing channel flow.

Changes include:

  • WhatsApp option added to onboarding channel selection
  • pairing utilities updated to support WhatsApp-only setups
  • server validation and constants updated
  • onboarding logic extended to handle WhatsApp channel configuration

Test status:
All tests pass locally.

Passing test suites:

  • tests/server/routes-onboarding.test.js
  • tests/server/secret-detector.test.js
  • tests/server/onboarding-openclaw.test.js
  • tests/server/routes-pairings.test.js
  • tests/frontend/pairing-utils.test.js

Total:
5 test files
63 tests passed

Notes:
The setup flow now displays WhatsApp correctly during onboarding. I encountered a separate workspace initialization issue during setup which appears unrelated to this patch and may be part of the repository initialization workflow.

Happy to adjust implementation details if maintainers prefer a different integration approach.

@chrysb
Copy link
Copy Markdown
Owner

chrysb commented Mar 11, 2026

Hi @Photon1c - thanks for the submission. I reviewed this and it still needs a bit of work to integrate fully with the system and QR code pairing. I'm opening another PR that extends this into a complete solution, and will credit you for it!

@Photon1c
Copy link
Copy Markdown
Author

Hi @chrysb,

Thanks for taking a look and extending it!

Glad the initial patch helped identify the integration points.
Happy to test or adjust anything if needed.

keaganstokoe added a commit to keaganstokoe/alphaclaw that referenced this pull request Mar 12, 2026
Adds full Slack channel support across AlphaClaw — onboarding wizard,
channel dashboard, pairings, gateway sync, watchdog notifications,
and the channel creation modal.

Slack uses Socket Mode which requires two tokens (Bot Token + App Token)
rather than one. This is handled via a new `extraEnvKeys` property on
channel definitions and dual-token logic in the gateway sync and
onboarding flows.

Changes:
- Add Slack to channel definitions, env keys, and known vars
- Add Slack Bot Token and App Token fields to onboarding wizard
- Wire Slack into openclaw.json generation (fresh + import flows)
- Handle dual-token channel sync in gateway (--bot-token / --app-token)
- Use Object.keys(kChannelDefs) instead of hardcoded channel arrays
- Add Slack to channel dashboard, pairings UI, and pairing routes
- Add App Token field to create-channel modal (Slack is single-account)
- Add watchdog crash notifications via Slack DM
- Add slack-api.js (minimal Web API wrapper matching existing patterns)
- Add Slack SVG icon
- Update agents-service test for Slack channel account

Ref: chrysb#8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chrysb added a commit that referenced this pull request Mar 13, 2026
Restore the WhatsApp provisioning and login behavior on top of current main, including plugin setup, route response parity, onboarding/watchdog wiring, and a resizable QR output UI. References #8.
chrysb added a commit that referenced this pull request Mar 22, 2026
Restore the WhatsApp provisioning and login behavior on top of current main, including plugin setup, route response parity, onboarding/watchdog wiring, and a resizable QR output UI. References #8.
chrysb added a commit that referenced this pull request Mar 22, 2026
Restore the WhatsApp provisioning and login behavior on top of current main, including plugin setup, route response parity, onboarding/watchdog wiring, and a resizable QR output UI. References #8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants