feat(4904): Add WhatsApp widget message prefill support#54
Open
anyelopetit wants to merge 1 commit into
Open
Conversation
anyelopetit
force-pushed
the
feat/4904-whatsapp-widget
branch
2 times, most recently
from
July 16, 2026 19:01
d7cf660 to
3395f69
Compare
anyelopetit
force-pushed
the
feat/4904-whatsapp-widget
branch
from
July 16, 2026 19:07
3395f69 to
f230307
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f230307. Configure here.
anyelopetit
force-pushed
the
feat/4904-whatsapp-widget
branch
from
July 16, 2026 19:32
f230307 to
835310a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Related to hellotext/hellotext#4904. Adds WhatsApp Widget support to
hellotext.jsusing public config keywhatsappWidget.Issue
The Rails app can expose a configured WhatsApp Widget, but
hellotext.jsneeded to load it, pass install-level overrides, and coexist safely with Web Chat when both widgets are enabled.Root Cause
hellotext.jsonly loaded Web Chat from dashboard metadata.Solution
whatsappWidgetconfig support toHellotext.initialize.whatsappWidget; no publicwhatsappalias./v1/widgets/whatsapp/:id.number,body,placement, and launchericonUrlas request params.containermounting andwhatsappWidget: falseto disable automatic mounting.lib//dist/artifacts.Public API
Disable automatic mounting:
Decisions And Trade-Offs
whatsappWidgetas the only public config key becausewhatsappwas never shipped onmain.business.whatsappbecause it represents dashboard metadata, not public install config.Merge Recommendation
/v1/widgets/whatsapp/:id.Retro-Compatibility
webchat.business.whatsapp; public install config remainswhatsappWidget.whatsappalias or WhatsAppstrategyoption is exposed.whatsappWidget: falsedisables automatic WhatsApp Widget mounting without affecting Web Chat.Production Risks
dist/hellotext.jsartifact to be published./v1/widgets/whatsapp/:idbeing deployed with this SDK release.Post-Deploy Checklist
whatsappWidgetmounts the widget.webchatsnippets still mount Web Chat.Test Verification
npm run buildnpm test -- --runTestsByPath __tests__/api/whatsapp_widgets_test.js __tests__/core/whatsapp_configuration_test.js __tests__/models/whatsapp_widget_test.js __tests__/hellotext_test.js --runInBandnode --check src/hellotext.js && node --check src/core/configuration.js && node --check src/core/configuration/whatsapp.js && node --check src/api/whatsapp_widgets.jsgit diff --check