Skip to content

botonic-react & plugin-flow-builder: add support to whatsapp templates with flow action buttons #BLT-2485#3251

Open
Iru89 wants to merge 2 commits into
masterfrom
BLT-2485-update-botonic-whataspp-template-component-with-new-flow-button-subtype
Open

botonic-react & plugin-flow-builder: add support to whatsapp templates with flow action buttons #BLT-2485#3251
Iru89 wants to merge 2 commits into
masterfrom
BLT-2485-update-botonic-whataspp-template-component-with-new-flow-button-subtype

Conversation

@Iru89

@Iru89 Iru89 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

Adds support for WhatsApp template FLOW buttons in Botonic and Flow Builder. The new button payload supports a flow token and optional action data, with runtime variable interpolation.

Context

WhatsApp templates that launch Meta Flows require an ACTION parameter. Previously, Botonic did not model or serialize this button subtype, so Flow Builder could not send these templates correctly.

Approach taken / Explain the design

  • Extends the WhatsApp template types with FLOW and ACTION support, plus strongly typed template components.
  • Maps flow_button_action_values from Flow Builder content to the WhatsApp API payload, resolving bot-context variables in flow_token and flow_action_data.
  • Omits action data for data_exchange flows, validates required FLOW configuration, and handles PHONE_NUMBER buttons explicitly.
  • Adds coverage for navigation and data-exchange flows, missing configuration, empty flow tokens, and component serialization.

To document / Usage example

Configure the template locale with a value for each FLOW button index:

flow_button_action_values: {
  '0': {
    flow_token: '{ticketId}',
    flow_action_data: { ticket_id: '{ticketId}' },
  },
}

flow_action_data is sent for navigation flows and omitted for data_exchange flows.

Testing

The pull request...

  • has unit tests for the new WhatsApp template types and serialization
  • has Flow Builder integration tests covering FLOW button payload generation and validation
  • has passing CI checks for botonic-react and botonic-plugin-flow-builder test suites

@Iru89
Iru89 force-pushed the BLT-2485-update-botonic-whataspp-template-component-with-new-flow-button-subtype branch from c8dc96d to 3e96bb8 Compare July 15, 2026 12:57
@Iru89
Iru89 force-pushed the BLT-2485-update-botonic-whataspp-template-component-with-new-flow-button-subtype branch from 3e96bb8 to 87a7ec5 Compare July 15, 2026 14:40
@Iru89 Iru89 self-assigned this Jul 15, 2026
@Iru89
Iru89 requested a review from Davidhidalgo July 15, 2026 14:48
@Iru89 Iru89 changed the title WIP botonic-react & plugin-flow-builder: add support to whatsapp templates with flow action buttons Jul 15, 2026
@Iru89
Iru89 marked this pull request as ready for review July 15, 2026 14:49
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@Iru89 Iru89 changed the title botonic-react & plugin-flow-builder: add support to whatsapp templates with flow action buttons botonic-react & plugin-flow-builder: add support to whatsapp templates with flow action buttons #BLT-2485 Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant