diff --git a/_i18n/en/integrations/connect-whatsapp.md b/_i18n/en/integrations/connect-whatsapp.md index 1bca9cb2..190704af 100644 --- a/_i18n/en/integrations/connect-whatsapp.md +++ b/_i18n/en/integrations/connect-whatsapp.md @@ -21,29 +21,72 @@ Before you start make sure about the following: ## Getting started -To get started, sign in to Hellotext, choose your business and click on *Settings*. - -Visit the section *Integrations* and click on *Browse integrations*. - - - -From Communication, click on *WhatsApp*. - - - -In the next screen, mark the two checkboxes only if you have a Meta Business Suite account and an available phone number ready to use for WhatsApp and click on *Continue*. - - +To get started, sign in to Hellotext, choose your business and click *Settings*. + +Go to *Integrations* and click *Browse integrations*. + +
+
+
+ Settings, Integrations page for an example business with one email sender connected and the Browse integrations button. +
+
+
Real interface with fictional data: Integrations before WhatsApp is connected.
+
+ +Under *Communication*, click *WhatsApp*. + +
+
+
+ Communication integrations: WhatsApp, Instagram, Messenger, Email, Push notification and TikTok. +
+
+
Real interface: WhatsApp is the first card under Communication.
+
+ +On the next screen, check both boxes only if you have a Facebook account with access to your company's Meta Business Suite and a phone number ready to use for WhatsApp. Then click *Next*. + +
+
+
+ Get Started with WhatsApp Business Platform, with both requirements checked and the Next button. +
+
+
Real interface: Next turns on once both requirements are checked.
+
+ +#### Choose whether to create a catalog + +Hellotext asks whether you want a WhatsApp product catalog, so customers can browse and order your products from your WhatsApp Business profile. Choose *Not now. I'll set it up later.* or *Yes, create my WhatsApp catalog now.* and click *Next*. + +If you choose yes, the wizard adds a *Choose your catalog* step after you connect WhatsApp, where you select the Meta Commerce catalog Hellotext should use. + +
+
+
+ Would you like to create a WhatsApp product catalog?, with Not now. I'll set it up later. selected and the Next button. +
+
+
Real interface: this example continues without a catalog.
+
#### Connect your WhatsApp -Click on *Create your WhatsApp Business Profile*. This will open an embedded sign-up form from Meta as a popup. +Click *Create your WhatsApp Business Profile*. This opens Meta's embedded signup form in a popup.
If the popup doesn't open make sure that the browser is not blocking popups. Sometimes it is required to allow the browser to open popups.
- +
+
+
+ Create profile step with the Create your WhatsApp Business Profile button and the information to have ready: brand display name, legal business name and official address. +
+
+
Real interface: the button opens Meta's signup popup.
+
Follow the steps in the popups. This is a straightforward process. @@ -79,35 +122,72 @@ Congratulations! Your WhatsApp number is created and connected. Click *Finish* t -From the Hellotext wizard you should see a confirmation message like this below. Click on **Continue**. +Back in the Hellotext wizard, you see a confirmation like the one below. Click *Next*. - +
+
+
+ Create profile step after Meta's signup: WhatsApp Business Profile connected, the success message and the Next button. +
+
+
Real interface with fictional data: the profile is connected.
+
+ +On each of the next steps, *Save & Close* keeps your choices and takes you back to *Integrations*, so you can finish later. #### Import existing templates -If you were not working with templates before you can skip by clicking *Skip & Continue*. +If you have worked with WhatsApp Business Platform, you can import your existing templates to Hellotext. Click *Import all templates* or select the templates you want to import. -If you have worked with WhatsApp Business Platform you may be able to import any existing templates to Hellotext. To do so, you can either click on *Import all templates* or manually select the templates you want to import. +To have Hellotext import new templates as you create them in WhatsApp Business Manager, click *Import new templates automatically*. -If you are still creating templates elsewhere that you want Hellotext to import as they are created click the option *Import new templates automatically* and *Save & Continue*. +Click *Next*. If you don't have templates yet, click *Next* without selecting any. - +
+
+
+ Import existing templates, with Import all templates, Import new templates automatically and three example templates to select. +
+
+
Real interface with fictional data: templates from an example WhatsApp Business Account.
+
#### Choose numbers to import -WhatsApp Business Account Profiles can have multiple phone numbers. You can either import all phone numbers or manually select the ones you can import. Click *Continue* when you are done. +A WhatsApp Business Account can have more than one phone number. *Import all phone numbers* is selected; to import only some, select them instead. Click *Next*. - +
+
+
+ Select phone numbers, with Import all phone numbers selected and two example numbers. +
+
+
Real interface with fictional data: two numbers in the example account.
+
#### Finish -Now you have finished the integration with WhatsApp and Hellotext. You can begin sending and receiving customer messages, enabling WhatsApp playbooks or routes, and sending campaigns. Click on *Close*. +Hellotext imports your WhatsApp Business Profile. The page shows *Importing...* for a few seconds and then *You're ready to chat with WhatsApp.* You can begin sending and receiving customer messages, enabling WhatsApp playbooks or routes, and sending campaigns. If your business isn't verified on Meta yet, the page also lists the steps to verify it and increase your limits. Click *Close*. - +
+
+
+ You're ready to chat with WhatsApp, with the steps to verify the Meta Business account and the Close button. +
+
+
Real interface: the last step of the wizard, for a business not yet verified on Meta.
+
-You should be able to see your connected WhatsApp numbers. +Your WhatsApp number now appears in *Integrations*, with its status, quality rating and messaging limit. - +
+
+
+ Integrations page with the example WhatsApp number +15550100123: Connected, High quality, 1,000 Customers/24 hours. +
+
+
Real interface with fictional data: the connected number in Integrations.
+
Next, review [WhatsApp channel fundamentals]({% link _numbers/whatsapp-channel-fundamentals.md %}) to prepare consent, templates, Inbox ownership, playbooks, campaigns, and reporting before launch. @@ -181,6 +261,30 @@ Click on *Profile* and from Official business account click on *Submit request* If Submit request is disabled make sure first that you have added a payment method to your WhatsApp Business Account and you have your business already verified. +#### Turn off Meta's WhatsApp emails {#turn-off-meta-emails} + +Hellotext emails your team about the WhatsApp problems below, so you can turn off Meta's emails about the same problems. + +Hellotext sends an email when: + +- Meta stops your messages because of a payment problem on your WhatsApp account. +- Meta rejects, pauses or disables one of your templates. +- Meta pauses or disables the template of a campaign that is scheduled or sending. +- Meta disables your WhatsApp account, schedules it to be disabled, or restricts it. + +The emails go to the Owner and Administrators of your Hellotext account. Template emails also go to Managers, and campaign emails go to the person who created the campaign. + +To turn off Meta's emails: + +1. Go to [**Settings**](https://business.facebook.com/settings) in Meta Business Suite. +2. Click *Notifications*. +3. Below *Business updates*, find the WhatsApp notifications. +4. Turn off the email toggle only for the notifications about payments, template status and account status, which Hellotext now emails about. You can leave their Meta Business Suite toggle on to keep seeing them there. + +Keep Meta's emails on for every other WhatsApp notification, including phone number quality rating. Hellotext doesn't email about those, so Meta's email is your only warning. + +If other people on your team also get Meta's emails, ask them to follow the same steps. For more help, see Meta's guide [**Change your notification settings in Meta Business Suite**](https://www.facebook.com/business/help/486960815135452). + ## Troubleshooting diff --git a/_i18n/es/integrations/connect-whatsapp.md b/_i18n/es/integrations/connect-whatsapp.md index 7a9e16b2..2f97e116 100644 --- a/_i18n/es/integrations/connect-whatsapp.md +++ b/_i18n/es/integrations/connect-whatsapp.md @@ -21,29 +21,72 @@ Antes de empezar asegúrate de lo siguiente: ## Empezando -Para empezar, inicia sesión en Hellotext, entra a la cuenta de tu negocio y haz clic en *Opciones*. - -Visita la sección *Integraciones* y haz clic en *Explorar integraciones*. - - - -Desde Comunicación, haz clic en *WhatsApp*. - - - -En la siguiente pantalla, marca las dos casillas solo si tienes una cuenta de Meta Business Suite y un número de teléfono disponible para usar con WhatsApp y haz clic en *Continuar*. - - +Para empezar, inicia sesión en Hellotext, entra a la cuenta de tu negocio y haz clic en *Ajustes*. + +Ve a *Integraciones* y haz clic en *Explorar integraciones*. + +
+
+
+ Página Ajustes, Integraciones de un negocio de ejemplo con un remitente de correo conectado y el botón Explorar integraciones. +
+
+
Interfaz real con datos ficticios: Integraciones antes de conectar WhatsApp.
+
+ +En *Comunicación*, haz clic en *WhatsApp*. + +
+
+
+ Integraciones de Comunicación: WhatsApp, Instagram, Messenger, Correo electrónico, Notificación push y TikTok. +
+
+
Interfaz real: WhatsApp es la primera tarjeta de Comunicación.
+
+ +En la siguiente pantalla, marca las dos casillas solo si tienes una cuenta de Facebook con acceso a la Meta Business Suite de tu empresa y un número de teléfono disponible para usar con WhatsApp. Luego haz clic en *Siguiente*. + +
+
+
+ Comienza con WhatsApp Business Platform, con los dos requisitos marcados y el botón Siguiente. +
+
+
Interfaz real: Siguiente se activa cuando marcas los dos requisitos.
+
+ +#### Elige si quieres crear un catálogo + +Hellotext te pregunta si quieres un catálogo de productos de WhatsApp, para que tus clientes puedan explorar y pedir tus productos desde tu perfil de WhatsApp Business. Elige *No ahora. Lo configuraré más tarde.* o *Sí, crear mi catálogo de WhatsApp ahora.* y haz clic en *Siguiente*. + +Si eliges que sí, el asistente agrega el paso *Elige tu catálogo* después de conectar WhatsApp, donde seleccionas el catálogo de Meta Commerce que Hellotext debe usar. + +
+
+
+ ¿Quieres crear un catálogo de productos de WhatsApp?, con No ahora. Lo configuraré más tarde. seleccionado y el botón Siguiente. +
+
+
Interfaz real: este ejemplo continúa sin catálogo.
+
#### Conecta tu WhatsApp -Haz clic en *Crear tu perfil de WhatsApp Business*. Esto abrirá un formulario de registro de Meta como una ventana emergente. +Haz clic en *Crear tu perfil de WhatsApp Business*. Esto abre el formulario de registro de Meta en una ventana emergente.
Si la ventana emergente no se abre, asegúrate de que el navegador no esté bloqueando las ventanas emergentes. A veces es necesario permitir que el navegador abra ventanas emergentes.
- +
+
+
+ Paso Crear perfil con el botón Crear tu perfil de WhatsApp Business y la información que debes tener a mano: nombre de marca, nombre legal de la empresa y dirección oficial. +
+
+
Interfaz real: el botón abre la ventana de registro de Meta.
+
Sigue los pasos en las ventanas emergentes. Este es un proceso sencillo. @@ -79,35 +122,72 @@ Ingresa el código de verificación y haz clic en *Next*. -Desde el asistente de Hellotext deberías ver un mensaje de confirmación como el siguiente. Haz clic en **Continuar**. +De vuelta en el asistente de Hellotext, verás una confirmación como la siguiente. Haz clic en *Siguiente*. - +
+
+
+ Paso Crear perfil después del registro de Meta: Perfil de WhatsApp Business conectado, el mensaje de éxito y el botón Siguiente. +
+
+
Interfaz real con datos ficticios: el perfil quedó conectado.
+
+ +En los pasos siguientes, *Guardar y Cerrar* guarda lo que elegiste y te lleva de vuelta a *Integraciones*, para que termines más tarde. #### Importa plantillas existentes -Si no has trabajado con plantillas antes, puedes omitir haciendo clic en *Omitir & Continuar*. +Si has trabajado con WhatsApp Business Platform, puedes importar tus plantillas existentes a Hellotext. Haz clic en *Importar todas las plantillas* o selecciona las plantillas que quieres importar. -Si has trabajado con WhatsApp Business Platform, puedes importar cualquier plantilla existente a Hellotext. Para hacerlo, puedes hacer clic en *Importar todas las plantillas* o seleccionar manualmente las plantillas que deseas importar. +Para que Hellotext importe las plantillas nuevas a medida que las creas en WhatsApp Business Manager, haz clic en *Importar nuevas plantillas automáticamente*. -Si aún estás creando plantillas en otro lugar que deseas que Hellotext importe a medida que se crean, haz clic en la opción *Importar nuevas plantillas automáticamente* y *Guardar & Continuar*. +Haz clic en *Siguiente*. Si todavía no tienes plantillas, haz clic en *Siguiente* sin seleccionar ninguna. - +
+
+
+ Importar plantillas existentes, con Importar todas las plantillas, Importar nuevas plantillas automáticamente y tres plantillas de ejemplo para seleccionar. +
+
+
Interfaz real con datos ficticios: plantillas de una cuenta de WhatsApp Business de ejemplo.
+
#### Elige números para importar -Los perfiles de cuentas de WhatsApp Business pueden tener múltiples números de teléfono. Puedes importar todos los números de teléfono o seleccionar manualmente los que deseas importar. Haz clic en *Continuar* cuando hayas terminado. +Una cuenta de WhatsApp Business puede tener más de un número de teléfono. *Importar todos los números de teléfono* viene seleccionado; para importar solo algunos, selecciónalos. Haz clic en *Siguiente*. - +
+
+
+ Seleccionar números de teléfono, con Importar todos los números de teléfono seleccionado y dos números de ejemplo. +
+
+
Interfaz real con datos ficticios: dos números en la cuenta de ejemplo.
+
#### Finalizar -Ahora terminaste la integración con WhatsApp y Hellotext. Puedes comenzar a enviar y recibir mensajes de clientes, activar misiones o rutas por WhatsApp y enviar campañas. Haz clic en *Cerrar*. +Hellotext importa tu perfil de WhatsApp Business. La página muestra *Importando...* durante unos segundos y luego *Estás listo para chatear con WhatsApp.* Puedes comenzar a enviar y recibir mensajes de clientes, activar misiones o rutas por WhatsApp y enviar campañas. Si tu negocio todavía no está verificado en Meta, la página también muestra los pasos para verificarlo y aumentar tus límites. Haz clic en *Cerrar*. - +
+
+
+ Estás listo para chatear con WhatsApp, con los pasos para verificar la cuenta de Meta Business y el botón Cerrar. +
+
+
Interfaz real: el último paso del asistente, para un negocio que todavía no está verificado en Meta.
+
-Deberías poder ver tus números de WhatsApp conectados. +Tu número de WhatsApp ahora aparece en *Integraciones*, con su estado, su calificación de calidad y su límite de mensajes. - +
+
+
+ Página Integraciones con el número de WhatsApp de ejemplo +15550100123: Conectado, Alta calidad, 1.000 Clientes/24 horas. +
+
+
Interfaz real con datos ficticios: el número conectado en Integraciones.
+
Luego, revisa [Fundamentos del canal de WhatsApp]({% link _numbers/whatsapp-channel-fundamentals.md %}) para preparar consentimiento, plantillas, responsables de Inbox, misiones, campañas y reportes antes de lanzar. @@ -181,6 +261,30 @@ Haz clic en *Profile* y desde Official business account haz clic en *Submit requ Si la opción Submit request está deshabilitada, asegúrate primero de haber añadido un método de pago a tu cuenta de WhatsApp Business y de que tu empresa ya esté verificada. +#### Desactivar los correos de WhatsApp de Meta {#turn-off-meta-emails} + +Hellotext le avisa a tu equipo por correo de los problemas de WhatsApp que se listan abajo, así que puedes desactivar los correos de Meta sobre esos mismos problemas. + +Hellotext envía un correo cuando: + +- Meta detiene tus mensajes por un problema de pago en tu cuenta de WhatsApp. +- Meta rechaza, pausa o desactiva una de tus plantillas. +- Meta pausa o desactiva la plantilla de una campaña programada o en envío. +- Meta desactiva tu cuenta de WhatsApp, programa su desactivación o la restringe. + +Los correos llegan al Dueño y a los Administradores de tu cuenta de Hellotext. Los de plantillas también llegan a los Managers, y los de campañas, a quien creó la campaña. + +Para desactivar los correos de Meta: + +1. Ve a [**Configuración**](https://business.facebook.com/settings) en Meta Business Suite. +2. Haz clic en *Notificaciones*. +3. Debajo de *Actualizaciones del negocio*, busca las notificaciones de WhatsApp. +4. Desactiva el botón de correo electrónico solo en las notificaciones de pagos, estado de plantillas y estado de la cuenta, que Hellotext ahora te envía por correo. Puedes dejar activado su botón de Meta Business Suite para seguir viéndolas ahí. + +Mantén activados los correos de Meta de todas las demás notificaciones de WhatsApp, incluida la calificación de calidad de los números de teléfono. Hellotext no envía correos sobre ellas, así que el correo de Meta es tu único aviso. + +Si otras personas de tu equipo también reciben los correos de Meta, pídeles que sigan los mismos pasos. Para más ayuda, consulta la guía de Meta [**Cambiar la configuración de notificaciones en Meta Business Suite**](https://www.facebook.com/business/help/486960815135452). + ## Solución de problemas diff --git a/docs/editorial-work/captures/connect-whatsapp-20261204/capture-records.json b/docs/editorial-work/captures/connect-whatsapp-20261204/capture-records.json new file mode 100644 index 00000000..8041cbd7 --- /dev/null +++ b/docs/editorial-work/captures/connect-whatsapp-20261204/capture-records.json @@ -0,0 +1,76 @@ +{ + "batch": "connect-whatsapp-20261204", + "article_source": "_i18n/{en,es}/integrations/connect-whatsapp.md", + "public_url": "https://help.hellotext.com/connect-whatsapp and https://help.hellotext.com/es/conecta-whatsapp", + "application_source": "hellotext master 3717f50d321e84180adf3f70830fee40ef4ea9e3 (2026-12-04), run locally at http://localhost:3180 with HELP_CAPTURE_META_STUB=1 (meta_stub.rb)", + "capture_date": "2026-12-04", + "capture_tool": "Chrome 158.0.8127.108 --headless=new, CDP Page.captureScreenshot (capture.mjs), dedicated temporary profile, DevTools on 127.0.0.1:9551 with exactly one page", + "source_route_and_state": "The real wizard walked in order: /demo-pro/settings/integrations, /settings/integrations/new, /settings/integrations/whatsapp/new (both requirement checkboxes clicked), Next to /mode (Not now selected, the default), Next to /connect. Meta's signup popup cannot run locally: fixture.rb connected creates the profile signup would leave, the capture fills the code and WhatsApp Business Account ID fields signup fills and submits the real form, and the stub's WhatsApp::Integration#integrate returns that profile, so the real success response renders. Templates and phone numbers are opened by URL and never submitted (submitting queues Meta import jobs); fixture.rb ready finishes the profile the way the import job would before the last two captures. Signed in as the seeded design-system demo user (login.sh).", + "demonstration_data": { + "verified": true, + "business": "Café Norte (seeded design-system fixture business, local development database)", + "whatsapp_account": "fictional IDs only: WhatsApp Business Account 100000000000001, Meta business 400000000000001, phone number IDs 200000000000001 and 200000000000002", + "phone_numbers": "+1 555-010-0123 and +1 555-010-0145, in the 555-01xx range reserved for fiction", + "templates": "three fictional templates per locale from meta_stub.rb (order_confirmation, back_in_stock, feedback_request; confirmacion_pedido, vuelve_a_estar_disponible, pedido_opinion)", + "meta_calls": "none: meta_stub.rb answers the phone-number and template reads and raises on any other Graph read", + "messages_sent": "none", + "left_in_database": "fixture.rb reset removes every demo WhatsApp profile, its integration, channels and numbers after the run; the demo user's locale is set back to en" + }, + "logical_viewport": { + "width": 1200, + "height": "per step, recorded on each image: the wizard's footer is fixed to the bottom of the window, so each step gets a window tall enough to show its whole form above it" + }, + "browser_zoom_percent": 100, + "device_emulation": "Emulation.setDeviceMetricsOverride width 1200, height per step, deviceScaleFactor 2, mobile false", + "device_pixel_ratio": 2, + "additional_capture_scale": 1, + "crop_rule": "Whole window for every step except choose-integration: the catalog's header is fixed and translucent, so that capture keeps only the Communication group, 32 CSS px above and below it, full window width.", + "page_checks": "before and after each capture: path, document lang, title, viewport size, devicePixelRatio 2, visualViewport.scale 1, scroll position and the step's ready condition (checkboxes checked and Next enabled, Not now selected, signup button present, success message, 4 template and 3 phone-number inputs, demo number listed); fonts and images loaded. The rack-mini-profiler badge is off (pp=disable).", + "color": { + "launch_flag": "--force-color-profile=display-p3-d65", + "native_color_provenance": "Display P3 values from the compositor. The app's P3 tiger color(display-p3 0.9882 0.3647 0) on the Next and Close buttons reads (252,93,0) in the published files, the value recorded for the email-forwarding-20261130 batch, where an sRGB render of the same color gives (255,76,0).", + "icc_profile_and_verification": "Chrome wrote the iCCP chunk itself this time: ImageMagick reports a 520-byte profile 'Display P3 Gamut with sRGB Transfer' (Google Inc. 2016) on all 20 files, and sips reports the same profile." + }, + "transformations": [ + "none: the published files are Chrome's PNG bytes, unchanged, so each published file is also its original" + ], + "pointer": { + "kind": "none", + "target": null, + "coordinates": null + }, + "images": [ + { "locale": "en", "step_and_target_control": "Getting started: Settings > Integrations, Browse integrations", "route": "/demo-pro/settings/integrations", "published_derivative": "images/editorial/connect-whatsapp-20261204/integrations-en.png", "logical_viewport": { "width": 1200, "height": 720 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 720 }, "source_pixels": { "width": 2400, "height": 1440 }, "native_logical_size_css_pixels": { "width": 1200, "height": 720 }, "max_display_css_pixels": { "width": 810, "height": 486 }, "sha256": "7db3e9f0c4464c10ec81e0e8deb34e8eb8e6ec04c6b578a729ec68b3f579666d" }, + { "locale": "es", "step_and_target_control": "Empezando: Ajustes > Integraciones, Explorar integraciones", "route": "/demo-pro/settings/integrations", "published_derivative": "images/editorial/connect-whatsapp-20261204/integrations-es.png", "logical_viewport": { "width": 1200, "height": 720 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 720 }, "source_pixels": { "width": 2400, "height": 1440 }, "native_logical_size_css_pixels": { "width": 1200, "height": 720 }, "max_display_css_pixels": { "width": 810, "height": 486 }, "sha256": "1f09802a86fa39c951082064c51dd60787fe470d62dc59553f1f19e06417e085" }, + { "locale": "en", "step_and_target_control": "Getting started: WhatsApp card under Communication", "route": "/demo-pro/settings/integrations/new, scrollY 1214", "published_derivative": "images/editorial/connect-whatsapp-20261204/choose-integration-en.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 1332, "width": 1200, "height": 584 }, "source_pixels": { "width": 2400, "height": 1168 }, "native_logical_size_css_pixels": { "width": 1200, "height": 584 }, "max_display_css_pixels": { "width": 810, "height": 394 }, "sha256": "90e308cdd01df98110c63c67279e2f0d58da2e81e6abb2d589030bb696a3563c" }, + { "locale": "es", "step_and_target_control": "Empezando: tarjeta WhatsApp en Comunicación", "route": "/demo-pro/settings/integrations/new, scrollY 1214", "published_derivative": "images/editorial/connect-whatsapp-20261204/choose-integration-es.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 1332, "width": 1200, "height": 584 }, "source_pixels": { "width": 2400, "height": 1168 }, "native_logical_size_css_pixels": { "width": 1200, "height": 584 }, "max_display_css_pixels": { "width": 810, "height": 394 }, "sha256": "15518a3e1d87f381cb7145359151373299acacd09b7d971c6746746d32c40896" }, + { "locale": "en", "step_and_target_control": "Getting started: both requirement checkboxes, Next", "route": "/demo-pro/settings/integrations/whatsapp/new", "published_derivative": "images/editorial/connect-whatsapp-20261204/getting-started-en.png", "logical_viewport": { "width": 1200, "height": 1120 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1120 }, "source_pixels": { "width": 2400, "height": 2240 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1120 }, "max_display_css_pixels": { "width": 810, "height": 756 }, "sha256": "4cc168398f1eec64223794de7e4e815535c361724f0627e58e8259d2a92f7850" }, + { "locale": "es", "step_and_target_control": "Empezando: las dos casillas de requisitos, Siguiente", "route": "/demo-pro/settings/integrations/whatsapp/new", "published_derivative": "images/editorial/connect-whatsapp-20261204/getting-started-es.png", "logical_viewport": { "width": 1200, "height": 1180 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1180 }, "source_pixels": { "width": 2400, "height": 2360 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1180 }, "max_display_css_pixels": { "width": 810, "height": 797 }, "sha256": "d8cd2b68f0f95346f35d796a6351f97201dbed485c292d80b14f929f0f90fc4f" }, + { "locale": "en", "step_and_target_control": "Choose whether to create a catalog: Not now, Yes, Next", "route": "/demo-pro/settings/integrations/whatsapp//mode", "published_derivative": "images/editorial/connect-whatsapp-20261204/catalog-choice-en.png", "logical_viewport": { "width": 1200, "height": 640 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 640 }, "source_pixels": { "width": 2400, "height": 1280 }, "native_logical_size_css_pixels": { "width": 1200, "height": 640 }, "max_display_css_pixels": { "width": 810, "height": 432 }, "sha256": "b9abccb777ce3916367582c4134c46d2a77017e1dfb6a77a75a8bd1b1fa87710" }, + { "locale": "es", "step_and_target_control": "Elige si quieres crear un catálogo: No ahora, Sí, Siguiente", "route": "/demo-pro/settings/integrations/whatsapp//mode", "published_derivative": "images/editorial/connect-whatsapp-20261204/catalog-choice-es.png", "logical_viewport": { "width": 1200, "height": 640 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 640 }, "source_pixels": { "width": 2400, "height": 1280 }, "native_logical_size_css_pixels": { "width": 1200, "height": 640 }, "max_display_css_pixels": { "width": 810, "height": 432 }, "sha256": "ddb47d376fe81bf96cc288382e839f58203531da028a9a72a55ed98f9a4edfa3" }, + { "locale": "en", "step_and_target_control": "Connect your WhatsApp: Create your WhatsApp Business Profile", "route": "/demo-pro/settings/integrations/whatsapp//connect", "published_derivative": "images/editorial/connect-whatsapp-20261204/create-profile-en.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 800 }, "source_pixels": { "width": 2400, "height": 1600 }, "native_logical_size_css_pixels": { "width": 1200, "height": 800 }, "max_display_css_pixels": { "width": 810, "height": 540 }, "sha256": "ec2cc3dd349471ea19c990aa8993cc000c97cbbfc563a33a41b9b36876229651" }, + { "locale": "es", "step_and_target_control": "Conecta tu WhatsApp: Crear tu perfil de WhatsApp Business", "route": "/demo-pro/settings/integrations/whatsapp//connect", "published_derivative": "images/editorial/connect-whatsapp-20261204/create-profile-es.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 800 }, "source_pixels": { "width": 2400, "height": 1600 }, "native_logical_size_css_pixels": { "width": 1200, "height": 800 }, "max_display_css_pixels": { "width": 810, "height": 540 }, "sha256": "1643cdd26f6b0021a9c203014fc5b32564bd2eb6db92175ae31074e718447bd9" }, + { "locale": "en", "step_and_target_control": "Connect your WhatsApp: success message after signup, Next", "route": "/demo-pro/settings/integrations/whatsapp//connect, after the real form submit", "published_derivative": "images/editorial/connect-whatsapp-20261204/profile-created-en.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 800 }, "source_pixels": { "width": 2400, "height": 1600 }, "native_logical_size_css_pixels": { "width": 1200, "height": 800 }, "max_display_css_pixels": { "width": 810, "height": 540 }, "sha256": "c5ff99b925d55be15939d716aad36f49ab03ab471f8225147431b9cdd073bcec" }, + { "locale": "es", "step_and_target_control": "Conecta tu WhatsApp: mensaje de éxito después del registro, Siguiente", "route": "/demo-pro/settings/integrations/whatsapp//connect, after the real form submit", "published_derivative": "images/editorial/connect-whatsapp-20261204/profile-created-es.png", "logical_viewport": { "width": 1200, "height": 800 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 800 }, "source_pixels": { "width": 2400, "height": 1600 }, "native_logical_size_css_pixels": { "width": 1200, "height": 800 }, "max_display_css_pixels": { "width": 810, "height": 540 }, "sha256": "66efde650146e9221dea3a4bcf010c92594bf51d55d4eeef298d609a4fc8493b" }, + { "locale": "en", "step_and_target_control": "Import existing templates: Import all templates, Import new templates automatically, template list, Next", "route": "/demo-pro/settings/integrations/whatsapp//templates", "published_derivative": "images/editorial/connect-whatsapp-20261204/import-templates-en.png", "logical_viewport": { "width": 1200, "height": 1560 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1560 }, "source_pixels": { "width": 2400, "height": 3120 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1560 }, "max_display_css_pixels": { "width": 810, "height": 1053 }, "sha256": "279340c0b299675de648916d63fe0c7391cc8297712c07bd7ebb64090caf2553" }, + { "locale": "es", "step_and_target_control": "Importa plantillas existentes: Importar todas las plantillas, Importar nuevas plantillas automáticamente, lista de plantillas, Siguiente", "route": "/demo-pro/settings/integrations/whatsapp//templates", "published_derivative": "images/editorial/connect-whatsapp-20261204/import-templates-es.png", "logical_viewport": { "width": 1200, "height": 1620 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1620 }, "source_pixels": { "width": 2400, "height": 3240 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1620 }, "max_display_css_pixels": { "width": 810, "height": 1094 }, "sha256": "66c6938412f8f41a8223236f548755d3c96caeb7a26cf2336882f4517db81553" }, + { "locale": "en", "step_and_target_control": "Choose numbers to import: Import all phone numbers, number list, Next", "route": "/demo-pro/settings/integrations/whatsapp//phones", "published_derivative": "images/editorial/connect-whatsapp-20261204/import-phones-en.png", "logical_viewport": { "width": 1200, "height": 1050 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1050 }, "source_pixels": { "width": 2400, "height": 2100 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1050 }, "max_display_css_pixels": { "width": 810, "height": 709 }, "sha256": "93d336c54c136c7db752fed57b5b7c156ccc2c5d6101837aaa13119ce71dffc5" }, + { "locale": "es", "step_and_target_control": "Elige números para importar: Importar todos los números de teléfono, lista de números, Siguiente", "route": "/demo-pro/settings/integrations/whatsapp//phones", "published_derivative": "images/editorial/connect-whatsapp-20261204/import-phones-es.png", "logical_viewport": { "width": 1200, "height": 1050 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 1050 }, "source_pixels": { "width": 2400, "height": 2100 }, "native_logical_size_css_pixels": { "width": 1200, "height": 1050 }, "max_display_css_pixels": { "width": 810, "height": 709 }, "sha256": "8c58c2256332eab89b927ae8da314bda8db5c54d48d66c76688713e41e8668f7" }, + { "locale": "en", "step_and_target_control": "Finish: You're ready to chat with WhatsApp, Close", "route": "/demo-pro/settings/integrations/whatsapp/", "published_derivative": "images/editorial/connect-whatsapp-20261204/done-en.png", "logical_viewport": { "width": 1200, "height": 640 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 640 }, "source_pixels": { "width": 2400, "height": 1280 }, "native_logical_size_css_pixels": { "width": 1200, "height": 640 }, "max_display_css_pixels": { "width": 810, "height": 432 }, "sha256": "b4b690b9025a5f81cb4316d92b0d6823538f51a9b245c99442568eeaaab9913c" }, + { "locale": "es", "step_and_target_control": "Finalizar: Estás listo para chatear con WhatsApp, Cerrar", "route": "/demo-pro/settings/integrations/whatsapp/", "published_derivative": "images/editorial/connect-whatsapp-20261204/done-es.png", "logical_viewport": { "width": 1200, "height": 640 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 640 }, "source_pixels": { "width": 2400, "height": 1280 }, "native_logical_size_css_pixels": { "width": 1200, "height": 640 }, "max_display_css_pixels": { "width": 810, "height": 432 }, "sha256": "56a9c0cfa6d309ca538f4dbbbef56e22586b7769fa068341dafa303a7bfa53a1" }, + { "locale": "en", "step_and_target_control": "Finish: the connected number in Integrations", "route": "/demo-pro/settings/integrations", "published_derivative": "images/editorial/connect-whatsapp-20261204/ready-en.png", "logical_viewport": { "width": 1200, "height": 720 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 720 }, "source_pixels": { "width": 2400, "height": 1440 }, "native_logical_size_css_pixels": { "width": 1200, "height": 720 }, "max_display_css_pixels": { "width": 810, "height": 486 }, "sha256": "c5bc2c3ddb91b3a3153701e39822e2f80993e7b9b76fffea6d8b84f629eaf129" }, + { "locale": "es", "step_and_target_control": "Finalizar: el número conectado en Integraciones", "route": "/demo-pro/settings/integrations", "published_derivative": "images/editorial/connect-whatsapp-20261204/ready-es.png", "logical_viewport": { "width": 1200, "height": 720 }, "css_crop": { "x": 0, "y": 0, "width": 1200, "height": 720 }, "source_pixels": { "width": 2400, "height": 1440 }, "native_logical_size_css_pixels": { "width": 1200, "height": 720 }, "max_display_css_pixels": { "width": 810, "height": 486 }, "sha256": "b761b80e61da5c386f1909e472f341efa5750825a05b522f48b50a6817d26f6a" } + ], + "verification": { + "density": "passed: 2x native, displayed at most 810 CSS px wide, below the 1200 CSS px native width", + "desktop": "pending", + "mobile": "pending", + "served_asset": "pending" + }, + "limitations": [ + "Meta's signup popup and the template and phone-number reads are stubbed (meta_stub.rb); the screens are the real views rendering the demo data. The popup's own screens (facebook1-8) are Meta's and were not recaptured.", + "The catalog step that follows Yes (Choose your catalog) is described, not captured: it needs a Meta Commerce catalog.", + "The Importing... state on the last step is described, not captured: fixture.rb ready finishes the profile first." + ], + "status": "captured" +} diff --git a/docs/editorial-work/captures/connect-whatsapp-20261204/capture.mjs b/docs/editorial-work/captures/connect-whatsapp-20261204/capture.mjs new file mode 100644 index 00000000..2c00276f --- /dev/null +++ b/docs/editorial-work/captures/connect-whatsapp-20261204/capture.mjs @@ -0,0 +1,230 @@ +// Captures the Hellotext side of connecting WhatsApp for the Connect WhatsApp Help guide. +// node capture.mjs [only-figure ...] +// Walks the real wizard in the local capture app (http://localhost:3180, Meta stubbed by +// meta_stub.rb), calling fixture.rb between steps. Isolated headless Chrome (own profile, DevTools +// on 127.0.0.1 only), Display P3, device scale factor 2. Each page is checked before and after its +// capture; a mismatch discards the file. Form steps that would queue a Meta import (templates and +// phone numbers) are opened by URL and never submitted. +import { spawn, spawnSync } from 'node:child_process' +import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' + +const [jarPath, outDir, locale, railsRoot, ...only] = process.argv.slice(2) +const base = 'http://localhost:3180' +const business = '/demo-pro' +const port = 9551 +// The wizard's footer is fixed to the bottom of the window, so each step gets a window tall enough +// to show its whole form above it. +const viewport = { width: 1200, height: 800, deviceScaleFactor: 2, mobile: false } +async function setHeight(ws, height) { + viewport.height = height + await send(ws, 'Emulation.setDeviceMetricsOverride', viewport) +} +const fixture = join(dirname(fileURLToPath(import.meta.url)), 'fixture.rb') + +function runFixture(...args) { + const result = spawnSync('bin/rails', ['runner', fixture, ...args], { cwd: railsRoot, encoding: 'utf8', env: { ...process.env, AIKIDO_DISABLE: 'true' } }) + if (result.status !== 0) throw new Error(`fixture ${args.join(' ')} failed: ${result.stderr.split('\n')[0]}`) + return result.stdout.trim().split('\n').at(-1) +} + +const profile = mkdtempSync(join(tmpdir(), 'ht-help-capture-')) +const chrome = spawn('/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', [ + '--headless=new', `--remote-debugging-port=${port}`, '--remote-debugging-address=127.0.0.1', + `--user-data-dir=${profile}`, '--force-color-profile=display-p3-d65', '--hide-scrollbars', + '--no-first-run', '--no-default-browser-check', '--disable-extensions', 'about:blank', +], { stdio: 'ignore' }) + +const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) + +async function pageTarget() { + for (let i = 0; i < 50; i++) { + try { + const targets = await (await fetch(`http://127.0.0.1:${port}/json/list`)).json() + const pages = targets.filter((t) => t.type === 'page') + if (pages.length === 1) return pages[0] + } catch {} + await sleep(200) + } + throw new Error('no single page target on the debugging port') +} + +let id = 0 +const pending = new Map() +function connect(wsUrl) { + const ws = new WebSocket(wsUrl) + ws.onmessage = ({ data }) => { + const message = JSON.parse(data) + if (message.id && pending.has(message.id)) { + const { resolve, reject } = pending.get(message.id) + pending.delete(message.id) + message.error ? reject(new Error(JSON.stringify(message.error))) : resolve(message.result) + } + } + return new Promise((resolve) => { ws.onopen = () => resolve(ws) }) +} +function send(ws, method, params = {}) { + return new Promise((resolve, reject) => { + const messageId = ++id + pending.set(messageId, { resolve, reject }) + ws.send(JSON.stringify({ id: messageId, method, params })) + }) +} +async function evaluate(ws, expression) { + const { result, exceptionDetails } = await send(ws, 'Runtime.evaluate', { expression, awaitPromise: true, returnByValue: true }) + if (exceptionDetails) throw new Error(JSON.stringify(exceptionDetails)) + return result.value +} +async function waitFor(ws, expression, what) { + for (let i = 0; i < 60; i++) { + if (await evaluate(ws, `!!(${expression})`)) return + await sleep(250) + } + throw new Error(`timed out waiting for ${what}`) +} +async function go(ws, path) { + await send(ws, 'Page.navigate', { url: base + path }) + await sleep(1500) + await waitFor(ws, 'document.readyState === "complete"', `load of ${path}`) +} + +// Netscape cookie jar from curl: domain, flag, path, secure, expiry, name, value. +function cookies() { + return readFileSync(jarPath, 'utf8').split('\n') + .map((line) => line.replace(/^#HttpOnly_/, '')) + .filter((line) => line && !line.startsWith('#')) + .map((line) => line.split('\t')) + .filter((fields) => fields.length >= 7) + .map(([domain, , path, secure, , name, value]) => ({ name, value, domain, path, secure: secure === 'TRUE', url: base })) +} + +const stateCheck = (ready) => `(async () => { + await document.fonts.ready + await Promise.all([...document.images].map((img) => img.complete ? null : new Promise((r) => { img.onload = img.onerror = r }))) + return { + path: location.pathname, lang: document.documentElement.lang, title: document.title, + width: innerWidth, height: innerHeight, dpr: devicePixelRatio, visualScale: visualViewport.scale, + scrollY, ready: !!(${ready}), + } +})()` + +// crop, when given, is an expression for the window band to keep, as { top, height } in CSS px. +async function shoot(ws, name, { path, ready, crop }) { + if (only.length && !only.includes(name)) return + await waitFor(ws, ready, `${name} to be ready`) + await sleep(600) + const before = await evaluate(ws, stateCheck(ready)) + if (!path.test(before.path) || before.lang !== locale || !before.ready || before.width !== viewport.width || + before.height !== viewport.height || before.dpr !== viewport.deviceScaleFactor || before.visualScale !== 1) { + throw new Error(`${name}: unexpected page state before capture: ${JSON.stringify(before)}`) + } + // The whole window, or the crop's band of it, full width. Clip coordinates are the document's, so + // a scrolled page starts at scrollY. + const band = crop ? await evaluate(ws, crop) : { top: 0, height: viewport.height } + if (band.top < 0 || band.top + band.height > viewport.height) throw new Error(`${name}: crop outside the window: ${JSON.stringify(band)}`) + const clip = { x: 0, y: before.scrollY + band.top, width: viewport.width, height: band.height, scale: 1 } + const { data } = await send(ws, 'Page.captureScreenshot', { format: 'png', clip }) + const after = await evaluate(ws, stateCheck(ready)) + if (JSON.stringify(after) !== JSON.stringify(before)) throw new Error(`${name}: page changed during capture: ${JSON.stringify(after)}`) + + const file = join(outDir, `${name}-${locale}.png`) + writeFileSync(file, Buffer.from(data, 'base64')) + console.log(JSON.stringify({ name, file, state: before, viewport, css_clip: clip })) +} + +const click = (selector) => `(() => { const el = document.querySelector(${JSON.stringify(selector)}); el.click(); return true })()` + +try { + console.log(runFixture('reset')) + console.log(runFixture('locale', locale)) + + const target = await pageTarget() + const ws = await connect(target.webSocketDebuggerUrl) + await send(ws, 'Network.enable') + await send(ws, 'Network.setCookies', { cookies: cookies() }) + await send(ws, 'Emulation.setDeviceMetricsOverride', viewport) + await send(ws, 'Page.enable') + + // The development profiler badge would sit over the logo: pp=disable turns it off for this session. + await go(ws, `${business}/settings/integrations?pp=disable`) + + // Settings > Integrations, before WhatsApp is connected. + await setHeight(ws, 720) + await go(ws, `${business}/settings/integrations`) + await shoot(ws, 'integrations', { path: /\/settings\/integrations$/, ready: 'document.querySelector(`a[href$="/settings/integrations/new"]`)' }) + + // Browse integrations: the catalog's Communication group, where WhatsApp is. The header is fixed + // and translucent, so whatever scrolls under it shows through: the group is scrolled below it and + // cropped with 32 CSS px around it, leaving the header and the neighbouring groups out. + await setHeight(ws, 800) + await go(ws, `${business}/settings/integrations/new`) + const communication = 'document.querySelector(`a[href$="/settings/integrations/whatsapp/new"]`).closest("section.card-group")' + await evaluate(ws, `(() => { scrollTo(0, scrollY + ${communication}.getBoundingClientRect().top - 150); return true })()`) + await shoot(ws, 'choose-integration', { + path: /\/settings\/integrations\/new$/, + ready: 'document.querySelector(`a[href$="/settings/integrations/whatsapp/new"]`)', + crop: `(() => { const rect = ${communication}.getBoundingClientRect(); return { top: Math.round(rect.top) - 32, height: Math.round(rect.height) + 64 } })()`, + }) + + // Getting started: both requirements checked, Next enabled. + // Spanish wraps to more lines on this step and on the templates step, so those windows are taller. + await setHeight(ws, locale === 'es' ? 1180 : 1120) + await go(ws, `${business}/settings/integrations/whatsapp/new`) + await evaluate(ws, `(() => { document.querySelectorAll('[data-whatsapp--profile-target="requirementCheckbox"]').forEach((box) => { if (!box.checked) box.click() }); return true })()`) + await shoot(ws, 'getting-started', { + path: /\/settings\/integrations\/whatsapp\/new$/, + ready: `[...document.querySelectorAll('[data-whatsapp--profile-target="requirementCheckbox"]')].every((box) => box.checked) && !document.querySelector('[data-whatsapp--profile-target="continueButton"]').disabled`, + }) + + // Next creates the draft profile and opens the catalog choice. + await setHeight(ws, 640) + await evaluate(ws, click('[data-whatsapp--profile-target="continueButton"]')) + await sleep(2500) + await shoot(ws, 'catalog-choice', { path: /\/settings\/integrations\/whatsapp\/[^/]+\/mode$/, ready: 'document.querySelector(`input[type="radio"][value="no"]:checked`)' }) + + // Next without a catalog opens the connect step. + await setHeight(ws, 800) + await evaluate(ws, click('[data-whatsapp--profile-target="submitButton"]')) + await sleep(2500) + await shoot(ws, 'create-profile', { path: /\/settings\/integrations\/whatsapp\/[^/]+\/connect$/, ready: 'document.querySelector("#facebook-login-button") && !document.querySelector("#embed-result:not(.hidden)")' }) + + // Meta's signup popup cannot run here. Its result is what it leaves in the form: a code and the + // WhatsApp Business Account ID. The fixture creates the profile that signup would connect, and + // the stubbed integration returns it, so the real success response renders. + console.log(runFixture('connected')) + await evaluate(ws, `(() => { + document.querySelector('input[name="code"]').value = 'help-capture-demo-code' + document.querySelector('input[name="waba_id"]').value = '100000000000001' + const submit = document.querySelector('#submit') + submit.disabled = false + submit.click() + return true + })()`) + await shoot(ws, 'profile-created', { path: /\/settings\/integrations\/whatsapp\/[^/]+\/connect$/, ready: 'document.querySelector("x-embed-success")' }) + + const profileId = runFixture('profile-id') + await setHeight(ws, locale === 'es' ? 1620 : 1560) + await go(ws, `${business}/settings/integrations/whatsapp/${profileId}/templates`) + await shoot(ws, 'import-templates', { path: /\/templates$/, ready: 'document.querySelectorAll(`input[name="whatsapp_profile[metadata][templates_to_import][]"]`).length === 4' }) + + await setHeight(ws, 1050) + await go(ws, `${business}/settings/integrations/whatsapp/${profileId}/phones`) + await shoot(ws, 'import-phones', { path: /\/phones$/, ready: 'document.querySelectorAll(`input[name="whatsapp_profile[metadata][phone_numbers_to_import][]"]`).length === 3' }) + + // The last step shows "Importing…" until the import job finishes; the fixture finishes it the + // way that job would, so the page shows its final state. + console.log(runFixture('ready')) + await setHeight(ws, 640) + await go(ws, `${business}/settings/integrations/whatsapp/${profileId}`) + await shoot(ws, 'done', { path: new RegExp(`/settings/integrations/whatsapp/${profileId}$`), ready: 'document.querySelector("a[href$=\\"/settings/integrations\\"], button")' }) + + await setHeight(ws, 720) + await go(ws, `${business}/settings/integrations`) + await shoot(ws, 'ready', { path: /\/settings\/integrations$/, ready: 'document.body.innerText.includes("555")' }) + + ws.close() +} finally { + chrome.kill() +} diff --git a/docs/editorial-work/captures/connect-whatsapp-20261204/fixture.rb b/docs/editorial-work/captures/connect-whatsapp-20261204/fixture.rb new file mode 100644 index 00000000..21b137e5 --- /dev/null +++ b/docs/editorial-work/captures/connect-whatsapp-20261204/fixture.rb @@ -0,0 +1,56 @@ +# Prepares the fictional WhatsApp connection shown in the Connect WhatsApp Help screenshots. +# Local development database only. Meta is never called: the capture server runs with +# HELP_CAPTURE_META_STUB=1 (meta_stub.rb), which answers the wizard's Meta requests with +# demonstration data. No message is sent. +# bin/rails runner fixture.rb reset remove every demo WhatsApp profile (start of a locale run) +# bin/rails runner fixture.rb connected the profile Meta's signup would leave: integrating, no numbers yet +# bin/rails runner fixture.rb ready finish it: active, with the first demo number imported +# bin/rails runner fixture.rb profile-id print that profile's hashed ID, for the wizard URLs +# bin/rails runner fixture.rb locale set the demo user's interface locale +abort 'not development' unless Rails.env.development? + +business = Business.find(4) +abort "unexpected business #{business.name}" unless business.name == 'Café Norte' +user = User.find_by!(email: 'design-system@example.test') +waba_id = '100000000000001' + +case ARGV[0] +when 'reset' + # The association's delete_all would nullify business_id, so delete through the model. + ids = business.whatsapp_profiles.ids + business.integrations.where(integratable_type: 'WhatsApp::Profile', integratable_id: ids).delete_all + business.channels.where(channable: WhatsApp::ProfilePhoneNumber.where(profile_id: ids)).delete_all + WhatsApp::ProfilePhoneNumber.where(profile_id: ids).delete_all + WhatsApp::Profile.where(id: ids).delete_all + puts "removed #{ids.size} demo WhatsApp profiles" +when 'connected' + # What WhatsApp::Integration#connect saves after Meta's signup, with fictional Meta IDs. + meta_business = Meta::Business.find_or_initialize_by(business:, reference: '400000000000001') + meta_business.update!( + name: 'Café Norte', url: 'https://business.facebook.com/settings/info', discarded_at: nil, verification_status: 'not_verified' + ) + profile = business.whatsapp_profiles.find_or_initialize_by(business_account_id: waba_id) + profile.update!( + name: 'Café Norte', state: :integrating, state_updated_at: Time.current, verified: false, creator: user, + meta_business:, old_meta_business_id: meta_business.reference, + access_token: 'help-capture-demo-token', expires_at: 1.year.from_now, discarded_at: nil, + metadata: { 'step' => 'templates' } + ) + business.integrations.find_or_create_by!(integratable: profile) + puts "profile #{profile.hashed_id}" +when 'ready' + profile = business.whatsapp_profiles.find_by!(business_account_id: waba_id) + number = PhoneNumber.find_or_create_by!(e164: '+15550100123') + line = profile.phone_numbers.find_or_initialize_by(waid: '200000000000001') + line.update!(phone_number: number, limit: 1000, quality: 'high', status: 'connected', discarded_at: nil) + business.channels.find_or_initialize_by(channable: line, technology: Technology.whatsapp, routable: profile).update!(status: :active) + profile.update!(state: :active, state_updated_at: Time.current) + puts "profile #{profile.hashed_id} active with #{number.e164}" +when 'profile-id' + puts business.whatsapp_profiles.find_by!(business_account_id: waba_id).hashed_id +when 'locale' + user.update_column(:locale, ARGV.fetch(1)) + puts "locale #{user.reload.locale}" +else + abort 'usage: reset | connected | ready | profile-id | locale ' +end diff --git a/docs/editorial-work/captures/connect-whatsapp-20261204/login.sh b/docs/editorial-work/captures/connect-whatsapp-20261204/login.sh new file mode 100644 index 00000000..afc1a72a --- /dev/null +++ b/docs/editorial-work/captures/connect-whatsapp-20261204/login.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Signs the seeded local demo user in to the capture app at http://localhost:3180 and keeps the +# session in the cookie jar given as $1. Local development host only. The password is the local +# seed's (db/seeds/local/design_system_businesses.rb), passed as HELP_CAPTURE_PASSWORD. +set -euo pipefail +jar="$1" +base='http://localhost:3180' +rm -f "$jar" + +token() { sed -n "/$1/,/<\/form>/p" | grep -o 'name="authenticity_token" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"$//'; } + +email_page=$(curl -s -c "$jar" -b "$jar" "$base/login") +password_url=$(curl -s -i -c "$jar" -b "$jar" -X POST "$base/authentication/login" \ + --data-urlencode "authenticity_token=$(echo "$email_page" | token 'id="new_user"')" \ + --data-urlencode 'user[email]=design-system@example.test' --data-urlencode 'locale=en' \ + | grep -i '^location' | tr -d '\r' | cut -d' ' -f2) + +password_page=$(curl -s -c "$jar" -b "$jar" "$password_url") +attempt=$(echo "$password_url" | sed 's/.*attempt=\([^&]*\).*/\1/') + +curl -s -i -c "$jar" -b "$jar" -X POST "$base/login" \ + --data-urlencode "authenticity_token=$(echo "$password_page" | token 'action="\/login"')" \ + --data-urlencode "attempt=$attempt" --data-urlencode 'locale=en' \ + --data-urlencode "user[password]=${HELP_CAPTURE_PASSWORD:?set HELP_CAPTURE_PASSWORD}" | grep -i -E '^HTTP|^location' diff --git a/docs/editorial-work/captures/connect-whatsapp-20261204/meta_stub.rb b/docs/editorial-work/captures/connect-whatsapp-20261204/meta_stub.rb new file mode 100644 index 00000000..2c857865 --- /dev/null +++ b/docs/editorial-work/captures/connect-whatsapp-20261204/meta_stub.rb @@ -0,0 +1,79 @@ +# Help Center capture only (hellotext/help, connect-whatsapp 2026-12-04). This file lives in a +# throwaway capture worktree and is never committed. +# +# The WhatsApp wizard's connect, templates and phone-number steps talk to Meta's Graph API. With +# HELP_CAPTURE_META_STUB=1 in development, those calls answer with fictional demonstration data +# instead, so the real views render without a real WhatsApp Business Account: +# - WhatsApp::Client#get answers the phone-number and template lists. Any other Graph read raises, +# so nothing silently reaches Meta. +# - WhatsApp::Integration#integrate stands in for Meta's embedded signup and returns the demo +# profile that the capture fixture created, as a successful connection. +module HelpCaptureMetaStub + WABA_ID = '100000000000001' + + PHONE_NUMBERS = [ + { + id: '200000000000001', verified_name: 'Café Norte', display_phone_number: '+1 555-010-0123', + status: 'CONNECTED', quality_score: { score: 'GREEN' }, whatsapp_business_manager_messaging_limit: 'TIER_1K', + }, + { + id: '200000000000002', verified_name: 'Café Norte Delivery', display_phone_number: '+1 555-010-0145', + status: 'CONNECTED', quality_score: { score: 'GREEN' }, whatsapp_business_manager_messaging_limit: 'TIER_1K', + }, + ] + + TEMPLATES = { + en: [ + ['300000000000001', 'order_confirmation', 'UTILITY', 'Hi {{1}}, thanks for your order! We are preparing it and will let you know when it ships.'], + ['300000000000002', 'back_in_stock', 'MARKETING', 'Good news, {{1}}: the item you liked is back in stock. Order it before it runs out again.'], + ['300000000000003', 'feedback_request', 'MARKETING', 'Hi {{1}}, how was your order? Reply with a number from 1 to 5.'], + ], + es: [ + ['300000000000001', 'confirmacion_pedido', 'UTILITY', 'Hola {{1}}, ¡gracias por tu pedido! Lo estamos preparando y te avisaremos cuando salga.'], + ['300000000000002', 'vuelve_a_estar_disponible', 'MARKETING', 'Buenas noticias, {{1}}: el producto que te gustó volvió a estar disponible. Pídelo antes de que se agote.'], + ['300000000000003', 'pedido_opinion', 'MARKETING', 'Hola {{1}}, ¿qué tal tu pedido? Responde con un número del 1 al 5.'], + ], + } + + def self.templates_for(locale) + TEMPLATES.fetch(locale.to_sym, TEMPLATES[:en]).map do |id, name, category, body| + { + id:, name:, category:, status: 'APPROVED', language: locale.to_s, quality_score: { score: 'GREEN' }, + components: [{ type: 'BODY', text: body }], + } + end + end + + module Client + def get(url: @url, **) + case url.to_s + when %r{/phone_numbers\z} + WhatsApp::Client::Response.new({ code: 200, data: HelpCaptureMetaStub::PHONE_NUMBERS }) + when %r{/message_templates\z} + WhatsApp::Client::Response.new({ code: 200, data: HelpCaptureMetaStub.templates_for(I18n.locale), paging: {} }) + else + raise "Help capture stub: unexpected Meta read #{url}" + end + end + end + + module Integration + # Like the real connect, a successful signup replaces the wizard's draft profiles. + def integrate + profile = @business.whatsapp_profiles.kept.find_by!(business_account_id: HelpCaptureMetaStub::WABA_ID) + + drafts = WhatsApp::Profile.where(business: @business, state: :draft) + @business.integrations.where(integratable: drafts).delete_all + drafts.delete_all + + ApplicationResult.new(success: true, message: :embed_success, record: profile) + end + end +end + +if Rails.env.development? && ENV['HELP_CAPTURE_META_STUB'] == '1' + Rails.application.config.to_prepare do + WhatsApp::Client.prepend(HelpCaptureMetaStub::Client) unless WhatsApp::Client < HelpCaptureMetaStub::Client + WhatsApp::Integration.prepend(HelpCaptureMetaStub::Integration) unless WhatsApp::Integration < HelpCaptureMetaStub::Integration + end +end diff --git a/docs/editorial-work/meta-whatsapp-emails-20261204.md b/docs/editorial-work/meta-whatsapp-emails-20261204.md new file mode 100644 index 00000000..e40505d5 --- /dev/null +++ b/docs/editorial-work/meta-whatsapp-emails-20261204.md @@ -0,0 +1,47 @@ +# Turn off Meta's WhatsApp emails, and the current WhatsApp wizard + +Status: bilingual text and wizard screenshots prepared on branch `meta-whatsapp-emails-guide`; browser review, the Meta menu check and publication are pending. Publish only after the Hellotext WhatsApp alert emails (hellotext/hellotext#7457) are deployed, because the new section tells customers those emails replace Meta's. + +## Scope and originals + +- `integrations/connect-whatsapp.md` (en/es): one new subsection at the end of **Next Steps** / **Próximos pasos**, after the green badge and before troubleshooting. Its fixed anchor `#turn-off-meta-emails` is the same in both locales, so the last screen of the Hellotext WhatsApp wizard can link to it with `help_guide_url(permalink: 'integrations.whatsapp', section: 'turn-off-meta-emails')`. +- Same article, **Getting started** / **Empezando**: the Hellotext wizard walkthrough now follows the current wizard, with new screenshots (below). Changes: + - The catalog choice step is new: *Choose whether to create a catalog* / *Elige si quieres crear un catálogo*, and what choosing yes adds (*Choose your catalog* after connecting). + - Button names now match the app: *Next* / *Siguiente* instead of *Continue*, *Skip & Continue* and *Save & Continue*. One sentence explains *Save & Close* / *Guardar y Cerrar*. + - Templates: with none to import, click *Next* without selecting any (there is no skip button any more). + - Phone numbers: *Import all phone numbers* is selected by default. + - Finish: the *Importing...* state, and the verification steps the last screen shows for unverified businesses. + - The connected number in Integrations shows its status, quality and limit. + - Spanish: *Opciones* → *Ajustes*, the menu's current name. +- The Meta signup popup steps (`facebook1-8.jpeg`) are Meta's screens and are unchanged. +- The 18 old wizard JPEGs (`images/integrations/whatsapp/{en,es}/{integrations,choose-integration,getting-started,create-profile,profile-created,import-templates,import-phones,done,ready}.jpeg`) are removed; only this article used them (and the snapshots under `originals/`, which are not built). +- Originals as on `main` are in `originals/meta-whatsapp-emails-20261204/`. SHA-256: EN `88fbc4e5b5e752cb5753a583ed7b1256c3b1d54ee0b96796ebc96a4d678076b9`, ES `3226cd98446348a02c467b83b356ee84df29f53fb9a2c37c7b5756c72ce23e96`. +- Titles, routes, the rest of the guide and its publication state are unchanged. + +## Evidence + +- Meta's steps come from its help article "Change your notification settings in Meta Business Suite" (https://www.facebook.com/business/help/486960815135452), read on 2026-12-04 in English and Spanish: **Settings** / **Configuración** → **Notifications** / **Notificaciones** → below **Business updates** / **Actualizaciones del negocio**, a Meta Business Suite toggle and an email toggle for each type of notification. The settings link is `https://business.facebook.com/settings`. The article does not list the notification types. +- The emails and their recipients, from the Rails branch `whatsapp-alert-emails`: + +| Event | Recipients | +| --- | --- | +| A send fails with Meta's payment error (131042) | Owner and Administrators | +| A template is rejected, paused or disabled | Owner, Administrators and Managers | +| The template of a scheduled or sending campaign is paused or disabled | The campaign's creator, or the Owner if the creator is gone | +| The WhatsApp account is disabled, scheduled to be disabled, or restricted | Owner and Administrators | + + The business's CX contact gets a copy of each one. The section leaves that out, because it is an internal arrangement. +- The Rails branch no longer emails when a phone number's quality rating drops: production received no `phone_number_quality_update` webhooks in the 30 days before 2026-12-04, so that email was dropped. The table above is the branch's complete list. +- So step 4 turns off Meta's emails only for payments, template status and account status, the events in the table, and the section tells readers to keep every other WhatsApp email on, quality rating included, because Meta's email is their only warning for those (review comment on PR #431). Hellotext's emails cover the template statuses that need action; Meta's template approvals need none. +- The wizard text comes from Hellotext master `3717f50d32`: `WhatsApp::ProfilesController` (catalog choice, connect), `WhatsApp::TemplatesController` (*Next* with nothing selected goes to phone numbers; *Save & Close* returns to Integrations), `WhatsApp::PhoneNumbersController`, the wizard views and their en/es locale files. + +## Figures + +- Wizard screenshots: 10 per locale in `images/editorial/connect-whatsapp-20261204/`, captured on 2026-12-04 from the local application at master `3717f50d32` with fictional data (Café Norte, fictional Meta IDs, +1 555-010-01xx numbers, fictional templates). Meta's API was stubbed and no message was sent. The scripts, the stub and the full capture record (crop, viewport, density, color profile and SHA-256 of each file) are in `captures/connect-whatsapp-20261204/`. Chrome embedded the Display P3 profile itself, so the published files are Chrome's bytes and also the originals. +- Turn off Meta's emails: still no screenshot. The useful capture is Meta Business Suite's **Notifications** page with the WhatsApp email toggles, and capturing it needs a signed-in business portfolio. Step 3 says "find the WhatsApp notifications" without naming them for the same reason. + +## Pending + +- In a real Meta Business Suite (EN and ES), confirm that WhatsApp notification types appear below **Business updates**, note their exact labels, and capture the toggles with demonstration data. Then replace the topics in step 4 (payments, template status, account status, quality rating) with Meta's labels and add the screenshot after step 4. +- Rendered review of both locales at desktop and mobile widths: the 10 wizard figures and the `#turn-off-meta-emails` anchor. The production build passes and renders 10 figures per locale with no old wizard images. +- Rails follow-up: the "How to turn them off" link in the wizard's last screen points to this anchor. diff --git a/docs/editorial-work/originals/meta-whatsapp-emails-20261204/en/connect-whatsapp.md b/docs/editorial-work/originals/meta-whatsapp-emails-20261204/en/connect-whatsapp.md new file mode 100644 index 00000000..1bca9cb2 --- /dev/null +++ b/docs/editorial-work/originals/meta-whatsapp-emails-20261204/en/connect-whatsapp.md @@ -0,0 +1,231 @@ +With Hellotext you can connect a new or existing WhatsApp account to manage customer conversations, run WhatsApp playbooks or routes, send targeted campaigns, and let AI agents respond when appropriate. + +This is a step-by-step guide to help you set up your WhatsApp account with Hellotext. + +If WhatsApp is already connected and you want to decide how to use it across Inbox, playbooks, routes, campaigns, captures, and commerce, read [WhatsApp channel fundamentals]({% link _numbers/whatsapp-channel-fundamentals.md %}). + +## Before you start + +Before you start make sure about the following: + +#### You have a Facebook account with access to your company Meta Business Suite. +* You’ll need to sign in to your Facebook account in the next steps. If you do not have a Facebook account you can [**create one here**](https://www.facebook.com/reg/) first. +* If your company doesn't have a Meta Business account, make sure to [**create one here**](https://www.facebook.com/business/help/1710077379203657?id=180505742745347). +* Make sure you have admin access to your company’s Meta Business account. + +#### You have an available phone number to use for WhatsApp. +* You can use a phone number already registered with WhatsApp or WhatsApp Business. If you do so, you must first delete your WhatsApp account [**following these instructions**](https://faq.whatsapp.com/3059780464322392/). Please note that any existing conversations will be deleted and cannot be recovered. If you want to keep your conversations we suggest using a new phone number. +* If you already have a WhatsApp Business Platform account (already connected to similar service to Hellotext) you will be likely able to proceed without the account deletion. However, any existing conversations will not be imported. +* You must be able to receive SMS or phone calls on this phone number. +* Use a phone number your business already controls. Hellotext does not provide or migrate WhatsApp phone numbers during this setup. + +## Getting started + +To get started, sign in to Hellotext, choose your business and click on *Settings*. + +Visit the section *Integrations* and click on *Browse integrations*. + + + +From Communication, click on *WhatsApp*. + + + +In the next screen, mark the two checkboxes only if you have a Meta Business Suite account and an available phone number ready to use for WhatsApp and click on *Continue*. + + + +#### Connect your WhatsApp + +Click on *Create your WhatsApp Business Profile*. This will open an embedded sign-up form from Meta as a popup. + +
+ If the popup doesn't open make sure that the browser is not blocking popups. Sometimes it is required to allow the browser to open popups. +
+ + + +Follow the steps in the popups. This is a straightforward process. + +Begin by making sure you are logged in to Facebook with the account that has access to your Meta Business Suite Account and click *Continue*. This will authorize Hellotext to have access only to your name and Facebook profile picture. + + + +Authorize Hellotext to access your WhatsApp Business Account and click *Get started*. + + + +Create a new business portfolio if you don't have one yet or choose an existing one. Enter the details of your business and click *Next*. + + + +You can choose an existing WhatsApp Business Account and a WhatsApp Business Profile (phone number). If you don't have one previously created you can create one in the next step. Click on *Next*. + + + +Type the name of your company and the name of your business that you want to display on WhatsApp. Please make sure that your name matches the name of your company and click *Next*. + + + +Enter the phone number that you want to use with WhatsApp. You need to have SMS or voice access to the phone number as you will receive a verification code in the next step. Choose between text message or phone call for receiving the verification code and click *Next*. + + + +Enter the verification code and click *Next*. + + + +Congratulations! Your WhatsApp number is created and connected. Click *Finish* to continue and finish the process in Hellotext. + + + +From the Hellotext wizard you should see a confirmation message like this below. Click on **Continue**. + + + +#### Import existing templates + +If you were not working with templates before you can skip by clicking *Skip & Continue*. + +If you have worked with WhatsApp Business Platform you may be able to import any existing templates to Hellotext. To do so, you can either click on *Import all templates* or manually select the templates you want to import. + +If you are still creating templates elsewhere that you want Hellotext to import as they are created click the option *Import new templates automatically* and *Save & Continue*. + + + +#### Choose numbers to import + +WhatsApp Business Account Profiles can have multiple phone numbers. You can either import all phone numbers or manually select the ones you can import. Click *Continue* when you are done. + + + +#### Finish + +Now you have finished the integration with WhatsApp and Hellotext. You can begin sending and receiving customer messages, enabling WhatsApp playbooks or routes, and sending campaigns. Click on *Close*. + + + +You should be able to see your connected WhatsApp numbers. + + + +Next, review [WhatsApp channel fundamentals]({% link _numbers/whatsapp-channel-fundamentals.md %}) to prepare consent, templates, Inbox ownership, playbooks, campaigns, and reporting before launch. + +## Next Steps + +#### Associate a payment method on WhatsApp + +In order to be able to send messages to your customers you need to set up a payment method on Meta. You can associate a credit card or a credit line if you are already using Meta Ads with your new WhatsApp Account. + +Visit the [**Meta WhatsApp Manager**](https://business.facebook.com/wa/manage/home/) page from the WhatsApp account you want to associate a payment method, select the three dots and click on *Manage account settings*. + + + +From the WhatsApp account Settings page click on *Payment Settings*. + + + +From *Payment methods* click on *Add payment method*. + + + +Select your business country, currency and time zone and click on *Next*. + + + +Select your preferred payment method (availability depends on your country) and click on *Next*. + + + +Enter your payment information and click on *Save*. + + + +The credit card is added to your WhatsApp Business Platform account. You can view the added credit card in the Settings tab. + +If you need more help, you can [**follow these official Meta instructions**](https://www.facebook.com/business/help/488291839463771#) and you can learn more about billing for your WhatsApp Business account [**here**](https://www.facebook.com/business/help/2225184664363779?id=2129163877102343). + +#### Verify your business + +You need to verify your business on Meta if you haven't already. + +Visit the [**Meta Business Settings**](https://business.facebook.com/wa/manage/) page and from the left side click on *Security Center*. + +From the Verification area click on *Start verification* and follow the steps. You'll be asked for your company information and Meta may request some information about your business as well as additional legal documents. + + + +This process can take several days while Meta reviews your documentation, so we recommend starting it as early as possible to increase your sending limits and to prevent Meta from deactivating your WhatsApp account. + + + +#### How to get a green badge on WhatsApp + +

Once your account is verified, you can apply for a green badge in your WhatsApp Business Account. This is recommended as it increases trust and gives reassurance to customers that they are communicating with your business.

+ +
+ Before you apply for a green badge you need to have a WhatsApp Business Account created with at least one verified phone number, a payment method associated with your WhatsApp Business Account and you need to complete your business verification. +
+ +Visit the [**Meta WhatsApp Manager**](https://business.facebook.com/wa/manage/home/), click on *Account tools* and select *Phone numbers*. + + + +Click on the settings icon of the desired phone number you want to obtain a badge. + + + +Click on *Profile* and from Official business account click on *Submit request* and follow the steps. + + + +If Submit request is disabled make sure first that you have added a payment method to your WhatsApp Business Account and you have your business already verified. + + +## Troubleshooting + +#### Can't add a payment method + +If your WhatsApp Business Platform Account was previously associated with a different provider and the provider was a BSP (managed the payments) it may be required that your service provider removes the line of credit from your account before you can add yours. + +You can ask your previous service provider to remove your line of credit from your account before attempting again. + +## Common Questions + +#### Do I need to pay both Meta and Hellotext? + +Hellotext uses a performance-based model: you pay **2–5%** of the revenue attributed to Hellotext, depending on your plan. **[More about Pricing]({% link _billing/how-pricing-works.md %})**. + +**Key rule:** each month you pay a single item—the highest among: plan minimum, performance fee, SMS cost, or variable messaging fee (US $ 2 per 1,000). The variable fee is only charged if it’s higher than the other three. + +This means that AI-powered messages through WhatsApp/Instagram/Webchat are usually included; the variable fee only applies in months when plan minimum, performance, and SMS are **lower** than that amount. + +
+ Important: Meta bills its WhatsApp message fees separately, and they are not part of your Hellotext invoice. See Meta’s rates. +
+ +#### Is the charge per message or per conversation? + +Meta charges per delivered message, based on the message category and the recipient's market. Since October 1, 2026, it also charges service messages, with a free tier of 1,000 delivered service messages per month for each phone number. See [Meta fees for WhatsApp]({% link _billing/whatsapp-fees.md %}) for details. + +In Hellotext, the variable fee of US $ 2 per 1,000 applies based on message volume only when none of the other items (plan minimum, performance, or SMS) are higher. + +#### What are the sending limits? + +Meta monitors the quality of the messages you send to your customers. + +Meta limits how many unique customers you can reach outside the customer service window in a moving 24-hour period. A new business portfolio starts with a limit of 250 and moves to 2,000 when you verify your business or deliver 2,000 messages with high-quality templates in 30 days. + +We recommend checking your quality rating often and making sure your rating is high. + +To see the quality of your WhatsApp Business Account numbers visit the [**Phone numbers**](https://business.facebook.com/wa/manage/phone-numbers) section. + + + +If you keep quality high and used at least half of your limit in the last 7 days, Meta raises it to 10,000, 100,000, or unlimited. + +You can get more information about the current messaging limits of each of your phone numbers by clicking on the *Settings* icon. + + + +Read more about best practices for [**increasing messaging limits**](https://www.facebook.com/business/help/756123206477156#) on Meta. diff --git a/docs/editorial-work/originals/meta-whatsapp-emails-20261204/es/connect-whatsapp.md b/docs/editorial-work/originals/meta-whatsapp-emails-20261204/es/connect-whatsapp.md new file mode 100644 index 00000000..7a9e16b2 --- /dev/null +++ b/docs/editorial-work/originals/meta-whatsapp-emails-20261204/es/connect-whatsapp.md @@ -0,0 +1,231 @@ +Con Hellotext puedes conectar una cuenta de WhatsApp nueva o existente para gestionar conversaciones con clientes, ejecutar misiones o rutas por WhatsApp, enviar campañas dirigidas y permitir que agentes de IA respondan cuando corresponda. + +Esta es una guía paso a paso para ayudarte a configurar tu cuenta de WhatsApp con Hellotext. + +Si WhatsApp ya está conectado y quieres decidir cómo usarlo en Inbox, misiones, rutas, campañas, capturas y comercio, lee [Fundamentos del canal de WhatsApp]({% link _numbers/whatsapp-channel-fundamentals.md %}). + +## Antes de empezar + +Antes de empezar asegúrate de lo siguiente: + +#### Tienes una cuenta de Facebook con acceso a tu Meta Business Suite de la empresa. +* Necesitarás iniciar sesión en tu cuenta de Facebook en los siguientes pasos. Si no tienes una cuenta de Facebook, puedes [**crear una aquí**](https://www.facebook.com/reg/) primero. +* Si tu empresa no tiene una cuenta de Meta Business, asegúrate de [**crear una aquí**](https://www.facebook.com/business/help/1710077379203657?id=180505742745347). +* Asegúrate de tener acceso de administrador a la cuenta de Meta Business de tu empresa. + +#### Tienes un número de teléfono disponible para usar con WhatsApp. +* Puedes usar un número de teléfono ya registrado con WhatsApp o WhatsApp Business. Si es así, primero debes eliminar la cuenta de WhatsApp [**siguiendo estas instrucciones**](https://faq.whatsapp.com/3059780464322392/). Ten en cuenta que cualquier conversación existente se eliminará y no se podrán recuperar. Si deseas conservar tus conversaciones, te sugerimos usar un nuevo número de teléfono. +* Si ya tienes una cuenta de WhatsApp Business Platform (ya conectada a un servicio similar a Hellotext), probablemente podrás proceder sin la eliminación de la cuenta. Sin embargo, cualquier conversación existente no se importará. +* Debes poder recibir SMS o llamadas telefónicas en este número de teléfono. +* Usa un número de teléfono que tu negocio ya controle. Hellotext no provee ni migra números de WhatsApp durante esta configuración. + +## Empezando + +Para empezar, inicia sesión en Hellotext, entra a la cuenta de tu negocio y haz clic en *Opciones*. + +Visita la sección *Integraciones* y haz clic en *Explorar integraciones*. + + + +Desde Comunicación, haz clic en *WhatsApp*. + + + +En la siguiente pantalla, marca las dos casillas solo si tienes una cuenta de Meta Business Suite y un número de teléfono disponible para usar con WhatsApp y haz clic en *Continuar*. + + + +#### Conecta tu WhatsApp + +Haz clic en *Crear tu perfil de WhatsApp Business*. Esto abrirá un formulario de registro de Meta como una ventana emergente. + +
+ Si la ventana emergente no se abre, asegúrate de que el navegador no esté bloqueando las ventanas emergentes. A veces es necesario permitir que el navegador abra ventanas emergentes. +
+ + + +Sigue los pasos en las ventanas emergentes. Este es un proceso sencillo. + +Comienza asegurándote de que estás conectado en Facebook con la cuenta que tiene acceso a tu cuenta de Meta Business Suite y haz clic en *Continue*. Esto autorizará a Hellotext a acceder solo a tu nombre y foto de perfil de Facebook. + + + +Autoriza a Hellotext para acceder a tu cuenta de WhatsApp Business y haz clic en *Get started*. + + + +Crea un nuevo portafolio empresarial si aún no tienes uno o elige uno existente. Ingresa los detalles de tu empresa y haz clic en *Next*. + + + +Puedes elegir una cuenta de WhatsApp Business existente y un perfil de WhatsApp Business (número de teléfono). Si no tienes uno previamente creado, puedes crear uno en el siguiente paso. Haz clic en *Next*. + + + +Escribe el nombre de tu empresa y el nombre de tu negocio que deseas mostrar en WhatsApp. Asegúrate de que tu nombre coincida con el nombre de tu empresa y haz clic en *Next*. + + + +Ingresa el número de teléfono que deseas usar con WhatsApp. Necesitas tener acceso a SMS o voz en el número de teléfono, ya que recibirás un código de verificación en el siguiente paso. Elige entre mensaje de texto o llamada telefónica para recibir el código de verificación y haz clic en *Next*. + + + +Ingresa el código de verificación y haz clic en *Next*. + + + +¡Felicidades! Tu número de WhatsApp está creado y conectado. Haz clic en *Finish* para continuar y finalizar el proceso en Hellotext. + + + +Desde el asistente de Hellotext deberías ver un mensaje de confirmación como el siguiente. Haz clic en **Continuar**. + + + +#### Importa plantillas existentes + +Si no has trabajado con plantillas antes, puedes omitir haciendo clic en *Omitir & Continuar*. + +Si has trabajado con WhatsApp Business Platform, puedes importar cualquier plantilla existente a Hellotext. Para hacerlo, puedes hacer clic en *Importar todas las plantillas* o seleccionar manualmente las plantillas que deseas importar. + +Si aún estás creando plantillas en otro lugar que deseas que Hellotext importe a medida que se crean, haz clic en la opción *Importar nuevas plantillas automáticamente* y *Guardar & Continuar*. + + + +#### Elige números para importar + +Los perfiles de cuentas de WhatsApp Business pueden tener múltiples números de teléfono. Puedes importar todos los números de teléfono o seleccionar manualmente los que deseas importar. Haz clic en *Continuar* cuando hayas terminado. + + + +#### Finalizar + +Ahora terminaste la integración con WhatsApp y Hellotext. Puedes comenzar a enviar y recibir mensajes de clientes, activar misiones o rutas por WhatsApp y enviar campañas. Haz clic en *Cerrar*. + + + +Deberías poder ver tus números de WhatsApp conectados. + + + +Luego, revisa [Fundamentos del canal de WhatsApp]({% link _numbers/whatsapp-channel-fundamentals.md %}) para preparar consentimiento, plantillas, responsables de Inbox, misiones, campañas y reportes antes de lanzar. + +## Próximos pasos + +#### Asociar un método de pago en WhatsApp + +Para poder enviar mensajes a tus clientes, necesitas configurar un método de pago en Meta. Puedes asociar una tarjeta de crédito o una línea de crédito si ya estás usando Meta Ads en tu nueva cuenta de WhatsApp. + +Visita la página [**Meta WhatsApp Manager**](https://business.facebook.com/wa/manage/home/) desde la cuenta de WhatsApp en la que deseas asociar un método de pago, selecciona los tres puntos y haz clic en *Manage account settings*. + + + +Desde la página de Configuración de la cuenta de WhatsApp, haz clic en *Payment Settings*. + + + +Desde *Payment methods* haz clic en *Add payment method*. + + + +Selecciona tu país de negocios, moneda y zona horaria y haz clic en *Next*. + + + +Selecciona tu método de pago preferido (la disponibilidad depende de tu país) y haz clic en *Next*. + + + +Ingresa tu información de pago y haz clic en *Save*. + + + +La tarjeta de crédito se añade a tu cuenta de WhatsApp Business Platform. Puedes ver la tarjeta de crédito añadida en la pestaña de Configuración. + +Si necesitas más ayuda, puedes [**seguir estas instrucciones oficiales de Meta**](https://www.facebook.com/business/help/488291839463771#) y puedes aprender más sobre la facturación de tu cuenta de WhatsApp Business [**aquí**](https://www.facebook.com/business/help/2225184664363779?id=2129163877102343). + +#### Verificar tu empresa + +Necesitas verificar tu empresa en Meta si aún no lo has hecho. + +Visita la página de [**Configuración de Meta Business**](https://business.facebook.com/wa/manage/) y desde el lado izquierdo haz clic en *Security Center*. + +Desde el área de Verificación, haz clic en *Start verification* y sigue los pasos. Te pedirán información de tu empresa y Meta puede solicitar información adicional sobre tu negocio, así como documentos legales adicionales. + + + +Este proceso puede tardar varios días mientras Meta revisa tu documentación, por lo que recomendamos comenzarlo lo antes posible para aumentar tus límites de envío y prevenir que Meta desactive tu cuenta de WhatsApp. + + + +#### Cómo obtener una insignia verde en WhatsApp + +

Una vez que tu cuenta esté verificada, puedes solicitar una insignia verde en tu cuenta de WhatsApp Business. Esto se recomienda ya que aumenta la confianza y da tranquilidad a los clientes de que están comunicándose con tu negocio.

+ +
+ Antes de solicitar una insignia verde, necesitas tener una cuenta de WhatsApp Business creada con al menos un número de teléfono verificado, un método de pago asociado a tu cuenta de WhatsApp Business y completar la verificación de tu empresa. +
+ +Visita la página [**Meta WhatsApp Manager**](https://business.facebook.com/wa/manage/home/), haz clic en *Account tools* y selecciona *Phone numbers*. + + + +Haz clic en el icono de configuración del número de teléfono deseado para obtener una insignia. + + + +Haz clic en *Profile* y desde Official business account haz clic en *Submit request* y sigue los pasos. + + + +Si la opción Submit request está deshabilitada, asegúrate primero de haber añadido un método de pago a tu cuenta de WhatsApp Business y de que tu empresa ya esté verificada. + + +## Solución de problemas + +#### No puedo añadir un método de pago + +Si tu cuenta de WhatsApp Business Platform estuvo previamente asociada a un proveedor diferente y el proveedor era un BSP (administraba los pagos), puede ser necesario que tu proveedor de servicios elimine la línea de crédito de tu cuenta antes de que puedas añadir la tuya. + +Puedes pedir a tu proveedor de servicios anterior que elimine tu línea de crédito de tu cuenta antes de intentarlo nuevamente. + +## Preguntas frecuentes + +#### ¿Necesito pagar tanto a Meta como a Hellotext? + +Hellotext usa un modelo basado en performance: pagas **2–5 %** de los ingresos atribuidos a Hellotext, según tu plan. **[Más sobre Tarifas]({% link _billing/how-pricing-works.md %})**. + +**Regla clave:** cada mes pagas un solo concepto—el mayor entre: piso del plan, tarifa por performance, costo de SMS o tarifa variable por mensajes (US $ 2 por cada 1.000). La tarifa variable solo se cobra si es mayor que los otros tres. + +Esto significa que los mensajes con IA por WhatsApp/Instagram/Webchat suelen estar incluidos; la tarifa variable solo aplica en meses donde piso, performance y SMS sean **menores** que ese monto. + +
+ Importante: Meta cobra por separado los mensajes de WhatsApp que factura, y esos cargos no forman parte de tu factura de Hellotext. Ver tarifas de Meta. +
+ +#### ¿El cargo es por mensaje o por conversación? + +Meta cobra por mensaje entregado, según la categoría del mensaje y el mercado del destinatario. Desde el 1 de octubre de 2026 también cobra los mensajes de servicio, con un nivel gratuito de 1.000 mensajes de servicio entregados por mes para cada número de teléfono. Los detalles están en [Tarifas de Meta para WhatsApp]({% link _billing/whatsapp-fees.md %}). + +En Hellotext, la tarifa variable de US $ 2 por cada 1.000 se aplica por volumen de mensajes solo cuando ninguno de los otros conceptos (piso, performance o SMS) es mayor. + +#### ¿Cuáles son los límites de envío? + +Meta monitorea la calidad de los mensajes que envías a tus clientes. + +Meta limita cuántos clientes distintos puedes contactar fuera de la ventana de atención en un período móvil de 24 horas. Un portfolio comercial nuevo empieza con un límite de 250 y pasa a 2.000 cuando verificas tu empresa o entregas 2.000 mensajes con plantillas de calidad alta en 30 días. + +Recomendamos revisar tu calificación de calidad a menudo y asegurarte de que tu calificación sea alta. + +Para ver la calidad de los números de tu cuenta de WhatsApp Business, visita la sección de [**Phone numbers**](https://business.facebook.com/wa/manage/phone-numbers). + + + +Si mantienes una calidad alta y usaste al menos la mitad de tu límite en los últimos 7 días, Meta lo aumenta a 10.000, 100.000 o ilimitado. + +Puedes obtener más información sobre los límites actuales de mensajería de cada uno de tus números de teléfono haciendo clic en el icono de *Settings*. + + + +Lee más sobre las mejores prácticas para [**aumentar los límites de mensajería**](https://www.facebook.com/business/help/756123206477156#) en Meta. diff --git a/docs/editorial-work/progress.csv b/docs/editorial-work/progress.csv index bf4cd166..f8b9ad04 100644 --- a/docs/editorial-work/progress.csv +++ b/docs/editorial-work/progress.csv @@ -79,7 +79,7 @@ integrations/connect-instagram-dm.md,pending,, integrations/connect-mercado-libre.md,pending,, integrations/connect-shopify.md,pending,, integrations/connect-vtex.md,in_progress,,docs/editorial-work/connect-vtex.md -integrations/connect-whatsapp.md,pending,, +integrations/connect-whatsapp.md,in_progress,,docs/editorial-work/meta-whatsapp-emails-20261204.md integrations/connect-wix.md,pending,, integrations/connect-woo.md,pending,, integrations/custom-domain-for-short-links.md,local_verified,75252a1f5bc4662d5522e0974c56842caaff04f5,docs/editorial-work/custom-domain-for-short-links.md diff --git a/images/editorial/connect-whatsapp-20261204/catalog-choice-en.png b/images/editorial/connect-whatsapp-20261204/catalog-choice-en.png new file mode 100644 index 00000000..88c88de5 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/catalog-choice-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/catalog-choice-es.png b/images/editorial/connect-whatsapp-20261204/catalog-choice-es.png new file mode 100644 index 00000000..cc636fc9 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/catalog-choice-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/choose-integration-en.png b/images/editorial/connect-whatsapp-20261204/choose-integration-en.png new file mode 100644 index 00000000..12ec148c Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/choose-integration-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/choose-integration-es.png b/images/editorial/connect-whatsapp-20261204/choose-integration-es.png new file mode 100644 index 00000000..2ec85c47 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/choose-integration-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/create-profile-en.png b/images/editorial/connect-whatsapp-20261204/create-profile-en.png new file mode 100644 index 00000000..aa64774d Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/create-profile-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/create-profile-es.png b/images/editorial/connect-whatsapp-20261204/create-profile-es.png new file mode 100644 index 00000000..1d033223 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/create-profile-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/done-en.png b/images/editorial/connect-whatsapp-20261204/done-en.png new file mode 100644 index 00000000..75bef071 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/done-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/done-es.png b/images/editorial/connect-whatsapp-20261204/done-es.png new file mode 100644 index 00000000..3a7b79c1 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/done-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/getting-started-en.png b/images/editorial/connect-whatsapp-20261204/getting-started-en.png new file mode 100644 index 00000000..635071a7 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/getting-started-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/getting-started-es.png b/images/editorial/connect-whatsapp-20261204/getting-started-es.png new file mode 100644 index 00000000..7e2c6c1d Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/getting-started-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/import-phones-en.png b/images/editorial/connect-whatsapp-20261204/import-phones-en.png new file mode 100644 index 00000000..5c3e1ad4 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/import-phones-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/import-phones-es.png b/images/editorial/connect-whatsapp-20261204/import-phones-es.png new file mode 100644 index 00000000..f9188224 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/import-phones-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/import-templates-en.png b/images/editorial/connect-whatsapp-20261204/import-templates-en.png new file mode 100644 index 00000000..3026cbb7 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/import-templates-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/import-templates-es.png b/images/editorial/connect-whatsapp-20261204/import-templates-es.png new file mode 100644 index 00000000..fb20811d Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/import-templates-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/integrations-en.png b/images/editorial/connect-whatsapp-20261204/integrations-en.png new file mode 100644 index 00000000..0a54ca09 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/integrations-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/integrations-es.png b/images/editorial/connect-whatsapp-20261204/integrations-es.png new file mode 100644 index 00000000..aa7bbe3d Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/integrations-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/profile-created-en.png b/images/editorial/connect-whatsapp-20261204/profile-created-en.png new file mode 100644 index 00000000..e6f0398a Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/profile-created-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/profile-created-es.png b/images/editorial/connect-whatsapp-20261204/profile-created-es.png new file mode 100644 index 00000000..903ce6c0 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/profile-created-es.png differ diff --git a/images/editorial/connect-whatsapp-20261204/ready-en.png b/images/editorial/connect-whatsapp-20261204/ready-en.png new file mode 100644 index 00000000..f53b1ca0 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/ready-en.png differ diff --git a/images/editorial/connect-whatsapp-20261204/ready-es.png b/images/editorial/connect-whatsapp-20261204/ready-es.png new file mode 100644 index 00000000..6e083ec1 Binary files /dev/null and b/images/editorial/connect-whatsapp-20261204/ready-es.png differ diff --git a/images/integrations/whatsapp/en/choose-integration.jpeg b/images/integrations/whatsapp/en/choose-integration.jpeg deleted file mode 100644 index 152df966..00000000 Binary files a/images/integrations/whatsapp/en/choose-integration.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/create-profile.jpeg b/images/integrations/whatsapp/en/create-profile.jpeg deleted file mode 100644 index 0ab70421..00000000 Binary files a/images/integrations/whatsapp/en/create-profile.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/done.jpeg b/images/integrations/whatsapp/en/done.jpeg deleted file mode 100644 index aa1fba87..00000000 Binary files a/images/integrations/whatsapp/en/done.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/getting-started.jpeg b/images/integrations/whatsapp/en/getting-started.jpeg deleted file mode 100644 index d38d3068..00000000 Binary files a/images/integrations/whatsapp/en/getting-started.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/import-phones.jpeg b/images/integrations/whatsapp/en/import-phones.jpeg deleted file mode 100644 index 2fdb1d30..00000000 Binary files a/images/integrations/whatsapp/en/import-phones.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/import-templates.jpeg b/images/integrations/whatsapp/en/import-templates.jpeg deleted file mode 100644 index 5dc2ab84..00000000 Binary files a/images/integrations/whatsapp/en/import-templates.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/integrations.jpeg b/images/integrations/whatsapp/en/integrations.jpeg deleted file mode 100644 index 9f1d99a0..00000000 Binary files a/images/integrations/whatsapp/en/integrations.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/profile-created.jpeg b/images/integrations/whatsapp/en/profile-created.jpeg deleted file mode 100644 index 918b0088..00000000 Binary files a/images/integrations/whatsapp/en/profile-created.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/en/ready.jpeg b/images/integrations/whatsapp/en/ready.jpeg deleted file mode 100644 index 00ccf839..00000000 Binary files a/images/integrations/whatsapp/en/ready.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/choose-integration.jpeg b/images/integrations/whatsapp/es/choose-integration.jpeg deleted file mode 100644 index f58b2325..00000000 Binary files a/images/integrations/whatsapp/es/choose-integration.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/create-profile.jpeg b/images/integrations/whatsapp/es/create-profile.jpeg deleted file mode 100644 index 97f1beab..00000000 Binary files a/images/integrations/whatsapp/es/create-profile.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/done.jpeg b/images/integrations/whatsapp/es/done.jpeg deleted file mode 100644 index d185c482..00000000 Binary files a/images/integrations/whatsapp/es/done.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/getting-started.jpeg b/images/integrations/whatsapp/es/getting-started.jpeg deleted file mode 100644 index 6aad5f12..00000000 Binary files a/images/integrations/whatsapp/es/getting-started.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/import-phones.jpeg b/images/integrations/whatsapp/es/import-phones.jpeg deleted file mode 100644 index 1e349ee2..00000000 Binary files a/images/integrations/whatsapp/es/import-phones.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/import-templates.jpeg b/images/integrations/whatsapp/es/import-templates.jpeg deleted file mode 100644 index ab3b3276..00000000 Binary files a/images/integrations/whatsapp/es/import-templates.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/integrations.jpeg b/images/integrations/whatsapp/es/integrations.jpeg deleted file mode 100644 index 8669d151..00000000 Binary files a/images/integrations/whatsapp/es/integrations.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/profile-created.jpeg b/images/integrations/whatsapp/es/profile-created.jpeg deleted file mode 100644 index f315020a..00000000 Binary files a/images/integrations/whatsapp/es/profile-created.jpeg and /dev/null differ diff --git a/images/integrations/whatsapp/es/ready.jpeg b/images/integrations/whatsapp/es/ready.jpeg deleted file mode 100644 index 931dbc32..00000000 Binary files a/images/integrations/whatsapp/es/ready.jpeg and /dev/null differ