Ensure bsuid is included and add tracking fields#1236
Open
japarradev wants to merge 34 commits into
Open
Conversation
…integration
Introduces a new plugin category (packages/plugins/) and the first plugin: @builderbot/plugin-chatwoot.
The plugin automatically creates inboxes, saves contacts, and syncs conversations with Chatwoot
using a simple DX: createChatwootPlugin({ token, url, accountId }) + chatwoot.attach(bot).
https://claude.ai/code/session_01KYzSLXHCUPi1G8rR6GDcKm
…t-plugin-package-pm1iX feat(plugin-chatwoot): add Chatwoot plugin package for automatic CRM integration
… note (PTT) - sendAudio() now auto-converts MP3/WAV/etc to OGG/Opus using utils.convertAudio() - All audio messages now sent with voice: true for PTT (green bubble) instead of audio file (orange) - sendMedia() no longer double-converts audio (removed MP3 intermediate step) - Updated tests for new behavior Fixes audio arriving as 'orange file' instead of voice note
…on orderMessage
fix(provider-baileys): fallback @lid JID when remoteJidAlt is absent …
Ensure the BSUID is implicitly included in the Meta provider lifecycle when it is missing from the incoming payload, and extend the provider context structure to capture new tracking properties from Click-to-WhatsApp ads, specifically mapping source_id and ctwa_clid (ads click ID) to support granular referral attribution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Que tipo de Pull Request es?
Descripción
Se ha modificado el ciclo de vida y la estructura del contexto del proveedor de Meta (
provider-meta) para mejorar la trazabilidad y atribución de los mensajes entrantes, especialmente aquellos derivados de campañas publicitarias.🚀 Cambios introducidos:
Inclusión implícita de BSUID: Se asegura de forma automática que el identificador único con alcance comercial (Business-Scoped User ID - BSUID) esté presente en el ciclo de vida del flujo del proveedor de Meta, previniendo fallos o pérdidas de contexto cuando este valor venga ausente en ciertos payloads nativos de la API de Meta.
Soporte para Atribución de Anuncios (Click-to-WhatsApp Ads):
Se extendieron las propiedades de almacenamiento del contexto del proveedor para mapear y capturar de forma nativa los siguientes metadatos críticos de referidos:
source_id: El identificador de origen del anuncio o canal.ctwa_clid: El ID de clic del anuncio de Facebook/Instagram (Click-to-WhatsApp Ads Click ID).