Skip to main content

Poll Progressed

  • Alert key: lumiastream-pollProgressed
  • Source: Lumia
  • Event list label: Poll progressed

Default message template

Poll {{poll_title}} updated and the current leader is {{poll_winning_title}}

Template variables

Use any of these in alert text, TTS, or chat templates. The same names appear under data.extraSettings.* when you subscribe via Overlay.on('alert').

Template variableOverlay payload fieldDescription
{{poll_title}}data.extraSettings.poll_titlePoll title
{{poll_id}}data.extraSettings.poll_idPoll id
{{poll_choices}}data.extraSettings.poll_choicesPoll choices
{{poll_winning_title}}data.extraSettings.poll_winning_titlePoll winning title
{{poll_winning_id}}data.extraSettings.poll_winning_idPoll winning id
{{poll_winning_votes}}data.extraSettings.poll_winning_votesNumber of votes for the winning item
{{poll_total_votes}}data.extraSettings.poll_total_votesTotal number of votes

Example payloads

Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).

Yes is winning

{
"alert": "lumiastream-pollProgressed",
"dynamic": {
"value": "Is Lumia Stream the best"
},
"extraSettings": {
"poll_title": "Is Lumia Stream the best",
"poll_choices": "Yes,No",
"poll_winning_title": "Yes",
"poll_winning_votes": 10,
"poll_id": "",
"poll_winning_id": "",
"poll_total_votes": ""
}
}

No is winning

{
"alert": "lumiastream-pollProgressed",
"dynamic": {
"value": "Is Lumia Stream the best"
},
"extraSettings": {
"poll_title": "Is Lumia Stream the best",
"poll_choices": "Yes,No",
"poll_winning_title": "No",
"poll_winning_votes": 10,
"poll_id": "",
"poll_winning_id": "",
"poll_total_votes": ""
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_STRING - Winning Choice is equal to
  • EQUAL_VARIABLE