Skip to content

External WhatsApp gateway: generic webhook adapter (closes #62) - #63

Merged
lezama merged 1 commit into
mainfrom
ship/issue-62-external-wa-gateway
May 18, 2026
Merged

External WhatsApp gateway: generic webhook adapter (closes #62)#63
lezama merged 1 commit into
mainfrom
ship/issue-62-external-wa-gateway

Conversation

@lezama

@lezama lezama commented May 17, 2026

Copy link
Copy Markdown
Owner

Closes #62

@lezama
lezama force-pushed the ship/issue-62-external-wa-gateway branch from e32f2c1 to 891f886 Compare May 18, 2026 11:37
Provider-agnostic adapter that takes any long-lived WhatsApp gateway
(evolution-api, wacli, baileys, whatsmeow, …) and bridges it to the
openclaWP agent runtime without the plugin depending on any specific
project.

v1 scope is text-only. HMAC-SHA256 over the raw body (X-OpenclaWP-Signature)
is the only auth boundary; empty secrets are rejected fail-closed so a
mis-configured install can't accept arbitrary traffic. Outbound replies POST
back to a configured URL signed with the same secret.

Two filters adapt non-conforming gateways without forking:
  - openclawp_external_wa_inbound_map  (raw → canonical)
  - openclawp_external_wa_outbound_map (canonical → gateway-shaped)

Off by default behind openclawp_register_external_whatsapp_gateway,
mirroring the Cloud API and example-workflow registration pattern.

Closes #62

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lezama
lezama force-pushed the ship/issue-62-external-wa-gateway branch from 891f886 to fe0188b Compare May 18, 2026 11:49
@lezama
lezama merged commit 5a5a3ad into main May 18, 2026
5 checks passed
@lezama
lezama deleted the ship/issue-62-external-wa-gateway branch May 18, 2026 11:49
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.

Generic external WhatsApp gateway adapter (webhook in + send out)

1 participant