Official plugin. Ask a question in an email and count the answers.
- Create a poll on the Polls page. The preview shows it as readers see it in the email; pick a
button color that fits your emails, or type a hex code of your own (for example
#006d77). You can also set the title and message of the page readers see after a click; empty fields use "Thanks for your answer" and "We saved your answer." - In a broadcast, sequence or template email, open Insert from a plugin (From plugins in the block editor) and pick the poll. You can also copy its HTML into an HTML block. Each answer is a button that works in Gmail, Outlook and Apple Mail.
- Read the results on the poll's page. It also shows the answer ids for the segment rule and, with Tag voters on, the tag of each answer.
A person can change their answer; the last click counts. Answers that come within 10 seconds of each other, as a mail scanner clicks them, count as no vote; the person's own later click counts. Use the segment rule "Answered a poll" to reach people by their answer. It matches anyone who gave that answer at any time, also a person who changed it later. Transactional emails do not make the links. In a test send, a click shows that it was a test and saves nothing.
The button color
A new poll starts with the brand color of the channel: the accent color of your brand kit
(Settings, Design), when you saved one. It is the first color choice, "Your brand color". You can
pick another color or type a hex code of your own. In the create API, a request with no color
takes the brand color too. A channel with no accent in its brand kit starts with ink (#111827).
A poll keeps the color it was made with. A later change of the brand kit does not change the polls you already made. The brand color needs Broadcast 3.2 or later; on Broadcast 3.1 a new poll starts with ink.
The line under the buttons
Under the answers, the email has one line: "One click votes. You can change your answer later.", in
the language of the channel. Each poll can have its own line: type it in "Line under the buttons"
when you make the poll (200 characters), or send note in the create API. Use it for your own tone,
for example the informal "du" in German. An empty field means the default: a poll always has a
line. The line is shown as text, so HTML and merge tags in it do not work.
The page after a vote
After a click on an answer, the reader sees a page with your thank-you title and message. Each poll has two switches for that page, both off until you turn them on when you make the poll:
- Show results after a vote. The reader sees the question and the share of each answer as bars, with their own answer marked. The page shows shares, not the number of votes.
- Ask for feedback. The reader gets a text field "Additional feedback" and a send button. What they write (up to 1,000 characters) is saved with their answer. A second text from the same person replaces the first.
With "Ask for feedback" on, a poll can have its own words for the field and its thank-you: "Feedback
question", "Feedback placeholder", "Title after feedback" and "Message after feedback" (in the API:
feedback_label, feedback_placeholder, feedback_title, feedback_message). Use them for your
own tone, for example the informal "du" in German. An empty field means the default in the language
of the page.
You read the feedback on the poll's page, newest first, and on the page of each subscriber (the
panel "Poll feedback"). The API results call has it too. The feedback of a subscriber is deleted
with the subscriber, and the feedback of a poll with the poll.
This needs Broadcast 3.2 or later. On Broadcast 3.1 the reader sees the thank-you title and message only.
Languages
What readers see is in their language: the line under the buttons in the email ("One click votes. You can change your answer later.") and the page after a click. Polls has them in English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Swedish, Danish, Norwegian, Finnish and Japanese.
- The email block is in the language of the channel (Settings, General, Language).
- The page after a click is in the language of that page: the channel's, or the reader's browser language when the channel matches browser languages.
- A poll's own line under the buttons and its own thank-you title and message are shown as you wrote them, in every language.
- The feedback field, its button and its thank-you text are in the language of the page too.
This needs Broadcast 3.2 or later. On Broadcast 3.1 these texts are English.
Tag voters
Turn on the Tag voters setting to tag each person who answers with poll:<poll id>:<answer id>. A
changed answer removes the earlier tag. The setting is off by default. A tag that is a topic is
refused, because a topic is consent: the page log shows the refusal, and the vote still counts.
Webhooks
To send each answer to a webhook endpoint, tick plugin.broadcast.polls.poll.answered under Plugin
events in the endpoint form. It is off until you do. The webhook has the poll id, the answer id and
the subscriber id, never an email address.
To get each feedback text, tick plugin.broadcast.polls.poll.commented. The webhook has the poll id
(poll), the answer id of that person (answer, empty when they have no vote), the text
(comment, its first 500 characters) and the subscriber id.
API
An automation, for example n8n, can do the same with an API token. The token needs
broadcasts_write to change polls and broadcasts_read to read them, and must allow the endpoint
(broadcast.polls/* in Plugin endpoints).
| Call | Input | Answer |
|---|---|---|
POST /api/plugins/broadcast.polls/create |
question, answers, optional idempotency_key, color (the button color as #rrggbb, for example #006d77; absent: the brand color of the channel, else #111827), note (the line under the buttons, 200 characters; empty or absent: the default), thank_you_title (200 characters), thank_you_message (500), show_results and ask_feedback (true or false, default false: the page after a vote), feedback_label, feedback_placeholder, feedback_title (200 characters each) and feedback_message (500): the poll's own texts of the feedback field and its thank-you |
201 with poll_id, answers, color, note, show_results, ask_feedback, html |
GET /api/plugins/broadcast.polls/list |
none | polls |
GET /api/plugins/broadcast.polls/results?poll_id=x |
poll_id |
the poll with count per answer and total, comment_count, and comments: the newest 100 feedback texts, each with subscriber_id, answer (the answer id, or null), text and at |
POST /api/plugins/broadcast.polls/close |
poll_id |
closed: true |
POST /api/plugins/broadcast.polls/delete |
poll_id |
deleted: true |
A repeat of create with the same idempotency_key makes no second poll. It answers 200 with the
first poll and replayed: true. The same key with a different question or answers answers 409.
Put html in the body of POST /api/v1/broadcasts with content_type: "html".