Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin-flow-builder: add whatsapp CTA url button #2811

Conversation

Iru89
Copy link
Contributor

@Iru89 Iru89 commented Apr 19, 2024

Description

Now we can have a whatsapp node containing a single button that redirects to a URL. When the plugin receives the JSON that defines a node of this type it will use a WhatsappCTAUrlButton from @botonic/react to render it.

Context

Example of JSON defining this node

{
  "id": "a0898927-42f6-45a5-8c6a-66bdd92f0e13",
  "code": "test url",
  "is_code_ai_generated": false,
  "meta": {
    "x": -80.59924537568803,
    "y": -221.97477364675905
  },
  "follow_up": null,
  "target": null,
  "flow_id": "8d527e7d-ea6d-5422-b810-5b4c8be7657b",
  "type": "whatsapp-cta-url-button",
  "content": {
    "text": [
      {
        "message": "this is a text",
        "locale": "es"
      },
      {
        "message": "this is a text",
        "locale": "it"
      }
    ],
    "header": [
      {
        "message": "this is a header",
        "locale": "es"
      }
    ],
    "footer": [
      {
        "message": "this is a footer",
        "locale": "es"
      }
    ],
    "button": {
      "id": "85fd9960-1892-4117-96af-e07f5c0c76ca",
      "text": [
        {
          "message": "this is the text of a btn url",
          "locale": "es"
        }
      ],
      "url": [
        {
          "id": "945a346d-ab2f-4dc0-8206-5be281ee9799",
          "locale": "es"
        }
      ],
      "target": null,
      "payloads": [],
      "hidden": [],
    }
  }
}

To document / Usage example

Captura de pantalla 2024-04-19 a las 10 23 19
Captura de pantalla 2024-04-19 a las 10 23 01

Copy link

linear bot commented Apr 19, 2024

@Iru89 Iru89 changed the title plugin-flow-builder: add whatsapp cta url button on flow builder plugin plugin-flow-builder: add whatsapp cta url button Apr 22, 2024
@Iru89 Iru89 changed the title plugin-flow-builder: add whatsapp cta url button plugin-flow-builder: add whatsapp CTA url button Apr 22, 2024
@vanbasten17 vanbasten17 force-pushed the feature/blt-662-task-support-cta_url-whatsapp-message-type-in-botonic branch from a898296 to 6b356dc Compare April 24, 2024 10:43
Base automatically changed from feature/blt-662-task-support-cta_url-whatsapp-message-type-in-botonic to master-lts April 24, 2024 10:57
@Iru89 Iru89 force-pushed the feature/blt-700-task-add-whatsapp-cta-url-button-on-flow-builder-plugin branch from 93e800f to 987cd16 Compare April 26, 2024 07:16
@vanbasten17 vanbasten17 force-pushed the feature/blt-700-task-add-whatsapp-cta-url-button-on-flow-builder-plugin branch from 987cd16 to a453993 Compare April 29, 2024 08:29
@vanbasten17 vanbasten17 force-pushed the feature/blt-700-task-add-whatsapp-cta-url-button-on-flow-builder-plugin branch from 11af447 to 5c249ec Compare April 29, 2024 10:10
@Iru89 Iru89 merged commit 36aa9fb into master-lts Apr 30, 2024
1 check passed
@Iru89 Iru89 deleted the feature/blt-700-task-add-whatsapp-cta-url-button-on-flow-builder-plugin branch April 30, 2024 12:08
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.

None yet

3 participants