FlowsCards

Button Card

Send a text message with buttons that branch the flow, open links or ask for data

The Button Card sends a text message with buttons. Contacts select a button to take a flow branch, open a link or share data, depending on the button type and the channel.

Button card with two buttons and the button type menu open

Configuration

SettingDescription
Message textRich text above the buttons. It can use variables.
ButtonsLabel, type and action for each button. Use Add another button for more.
Keyboard Type (Telegram)Inline buttons sit under the message. Reply buttons replace the keyboard.
HeaderOptional header text. WhatsApp only. Turn it on in the settings panel.
FooterOptional footer text. WhatsApp only. Turn it on in the settings panel.

Button Types

The type picker groups buttons as All Platforms, Telegram Inline, Telegram Reply and WhatsApp.

All Platforms

TypeWhat it does
CallbackTakes its own branch in the flow.
URLOpens a link. The link must start with http or https.

Telegram

TypeWhat it does
LoginTelegram login to your site.
Mini AppOpens a Telegram Mini App.
Switch Inline, Switch Inline Here, Switch Inline PickStart an inline query in any chat, in this chat, or in a chat the contact picks.
GameStarts a Telegram game.
PaymentStarts a Telegram payment.
Request Contact, Request Location, Request Poll, Request Users, Request ChatAsk the contact to share a phone number, a location, a poll, users or a chat. These are reply keyboard buttons.

Telegram cannot show inline and reply buttons together. The editor warns you with This card has both inline-only and reply-only button types. Telegram cannot display both - one set will be filtered out. Split into separate cards. Split it into two cards.

Telegram Button Settings

Some Telegram types ask for more settings. Login, Game and Payment are set in the card settings panel, and you save each with its own button.

TypeSettingDescription
URLButton URLMust start with http or https.
Mini AppWeb App URLThe page the Mini App opens.
Switch Inline typesInline queryOptional default query text.
Request PollPoll typeRegular or Quiz.
LoginLogin URLRequired. Must start with https://.
LoginForward TextOptional. New button text in forwarded messages.
LoginBot UsernameOptional. Defaults to the current bot.
LoginRequest Write AccessAsk the person to let the bot message them.
GameGame Short NameRequired. The short name from @BotFather (/newgame).
GameGame URLRequired. Must start with https://.
PaymentProduct nameRequired, 1 to 32 characters.
PaymentDescriptionRequired, 1 to 255 characters.
PaymentProvider tokenFrom @BotFather. Leave it empty for Telegram Stars (XTR).
PaymentCurrencyPick one. The total must be inside the range the panel shows.
PaymentPrice breakdownPrice lines. Amounts are in the smallest unit, so 100 is 1.00.
PaymentInvoice photoOptional picture on the invoice.
PaymentRequest from customerFull name, Phone number, Email address, Shipping address.
PaymentShare with providerSend phone to provider, Send email to provider.
PaymentMax tip amount, Start parameter, Flexible pricingOptional.

Without an invoice configuration, a Payment button acts as a plain callback. For Login, add the Wexio domain to your bot with @BotFather and /setdomain. The panel shows the domain to copy.

WhatsApp

TypeWhat it does
Location RequestAsks the contact to share a location. Once shared, the flow follows the button's branch.

To send a catalog, a product or a list on WhatsApp, use the dedicated cards: Catalog, Product and List Message.

Channel Limits

ChannelLimit
WhatsApp3 reply buttons. Extra buttons are ignored. A Location Request button must be alone on its card.
Instagram13 quick replies. Extra buttons are ignored.
Viber24 buttons.
TelegramNo limit from Telegram.

A card holds up to 24 buttons. When the flow runs only on WhatsApp, Add another button disappears after three reply buttons, and after a Location Request button.

Output Variable

When a contact selects a callback button, the button's value is stored in flow.{cardId}, where {cardId} is the ID of this card. Use it in any later card:

You selected: {{flow.674000000000000001}}

See Variables for all namespaces.

Connections

  • 1 input port. Receives execution.
  • One output per connectable button. Callback buttons and the Telegram buttons that return a result (Login, Payment, Switch Inline Here, the Request buttons) and Location Request.

The card has no single default output. The flow routes through the button branches.

Operations Cost

1 operation per execution.

Was this page helpful?

On this page