FlowRunner.CustomBlocks.WhatsAppCallToAction (flow_runner v6.15.1)

Copy Markdown

A block to handle WhatsApp interactive Call-to-Action (CTA) URL messages.

CTA URL messages display a tappable button that opens a URL in the user's browser. They are useful when you want to direct users to a website without exposing the raw URL in the message body.

See https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/interactive-cta-url-messages

The whatsapp_cta block compiles to this FLOIP block. The url, cta, and text config parameters are required.

The header and footer are optional. A header can be text, image, video or document and is represented as an object with a type ("text", "image", "video" or "document") and a value holding the value for that media/text.

Summary

Functions

Returns all block documentation defined in this module.

Functions

block_docs()

@spec block_docs() :: [Keyword.t()]

Returns all block documentation defined in this module.

Each block doc entry is a keyword list with keys like :type, :description, :config, etc., plus a :category key added from @block_category.