Live Vote

Live audience voting: buttons to vote, bar chart results, optional Google Sheets backend

Surfaces
apps-script-web
Fields
FieldType
questionstringrequired
optionsarray of strings (vote choices)required
sheet_urlstring (optional, Google Sheet CSV for live tallies)optional
write_urlstring (optional, GAS doGet URL to record votes)optional
pollnumber (optional, poll interval ms, default 5000)optional
accentstring (optional, hex)optional
Example payload
{
  "type": "live_vote",
  "question": "Which option do you prefer?",
  "options": [
    {
      "label": "Option A",
      "value": "a"
    },
    {
      "label": "Option B",
      "value": "b"
    },
    {
      "label": "Option C",
      "value": "c"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:live_vote",
  "displayName": "Live Vote",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/live_vote",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Live audience voting: buttons to vote, bar chart results, optional Google Sheets backend",
  "representativeQueries": [
    "show a live audience voting with real-time bar chart results",
    "live audience voting: buttons to vote, bar chart results, optional google sheets backend",
    "render a live vote"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →