10 Mar 2023: Template with buttons in stacks

Neelke Stadler Updated by Neelke Stadler

Make it easy for users to navigate your service with buttons

Buttons on WhatsApp are great! It makes navigation much simpler for a user. You can now also use templates with buttons in stacks. Remember, templates are needed to initiate conversation when the user hasn't interacted with the service for more than 24-hours.

Template with buttons syntax

See full documentation for template with buttons

Here is how you could send that template and direct the flow of the stack depending on the button the user clicks:

card SendTemplate do
send_message_template(
"updates",
"en",
["Mark"],
buttons: [Yes, No]
)
end

card Yes do
text("Great! You will receive updates from now on.")
end

card No do
text("Ok, you will not receive updates.")
end

Was this article helpful?

17 Mar 2023: Scan the list for unassigned chats

9 March 2023: More data in BigQuery!

Contact