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 variable | Overlay payload field | Description |
|---|---|---|
{{poll_title}} | data.extraSettings.poll_title | Poll title |
{{poll_id}} | data.extraSettings.poll_id | Poll id |
{{poll_choices}} | data.extraSettings.poll_choices | Poll choices |
{{poll_winning_title}} | data.extraSettings.poll_winning_title | Poll winning title |
{{poll_winning_id}} | data.extraSettings.poll_winning_id | Poll winning id |
{{poll_winning_votes}} | data.extraSettings.poll_winning_votes | Number of votes for the winning item |
{{poll_total_votes}} | data.extraSettings.poll_total_votes | Total 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:
RANDOMEQUAL_STRING- Winning Choice is equal toEQUAL_VARIABLE
Related
- Alert Explorer - live preview of every alert
- Overlay Type Definitions - full
AlertEventTypeScript type