> For the complete documentation index, see [llms.txt](https://docs.liveblog.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liveblog.pro/readme/writing-posts/polls.md). Agents can also search and read this documentation through its [MCP server](https://docs.liveblog.pro/~gitbook/mcp).

# Polls

A poll asks readers a question with a few answers to choose from. Readers vote on the public blog, and you follow the results in the timeline while the poll is open. This page shows how to add a poll to a post, what readers see, and what you can change once the poll is published.

Polls are marked **beta** in the editor.

## Add a poll to a post

{% stepper %}
{% step %}

### Add a poll block

In the editor, click **ADD CONTENT HERE** and choose **Poll**. A **Create poll** box appears in the post.
{% endstep %}

{% step %}

### Write the question and the answers

Type the question in **QUESTION:**. Type the answers in **Option 1** and **Option 2**. Click **+ Add Option** for more answers, and the **X** at the end of an answer to remove it.
{% endstep %}

{% step %}

### Set how long the poll stays open

Under **Poll length:**, fill in **DAYS:**, **HOURS:** and **MINUTES:**. The poll closes that long after you publish it. Hours go up to 24 and minutes up to 60.
{% endstep %}

{% step %}

### Publish

Add text or other blocks around the poll if you like, then click **Publish**. See [Writing and publishing a post](https://docs.liveblog.pro/readme/writing-posts/writing-and-publishing-a-post.md).
{% endstep %}
{% endstepper %}

<figure><img src="https://3069567940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiE9YRT74G1RgbPMObBM4%2Fuploads%2Fgit-blob-091e25c19cefb14b228e5d29b689d9f15505e0ee%2Fpoll-form.png?alt=media" alt="The Create poll box in the editor with a question, three answers each with an X, the Add Option link, a poll length of 2 hours and the RESET POLL button" width="585"><figcaption><p>A poll being written in the editor</p></figcaption></figure>

**Publish** stays greyed out until the poll has a question, at least two answers and a length longer than zero.

{% hint style="warning" %}
Before you publish, check that no answer is empty. If you add an answer and leave it blank, the editor keeps the poll as it was the last time every field was filled in, so the poll is published without your later changes.
{% endhint %}

**RESET POLL** empties the question and the answers and sets the length back to zero. **Reset** at the top of the editor throws away the whole post.

## Follow the results

Once published, the poll shows in the timeline with the number of votes and the share of each answer, the total and how long the poll still runs. The results update as readers vote.

<figure><img src="https://3069567940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiE9YRT74G1RgbPMObBM4%2Fuploads%2Fgit-blob-114027e72973f4f781636b66bb98a9b576a77e77%2Fpoll-timeline.png?alt=media" alt="A published poll in the timeline of the editor, with four answers, a bar, a percentage and a vote count for each, Total votes 926 and Ends in 14 days" width="705"><figcaption><p>A published poll in the timeline, with its results</p></figcaption></figure>

The answers are sorted by number of votes, and the percentages are rounded so that they add up to 100. When the time is up, **Ends in** is replaced by **Poll Closed**.

## What readers see

In the default theme, readers see the question, one round button per answer and **VOTE**. Under the answers they see the total number of votes and when the poll ends.

<figure><img src="https://3069567940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiE9YRT74G1RgbPMObBM4%2Fuploads%2Fgit-blob-b8d370de9a5949e1435ea6e195370045a31de953%2Fpoll-public.png?alt=media" alt="The poll on the public blog with the question, four answers with round buttons, Total Votes 926, Ends in 14 days and the VOTE button" width="866"><figcaption><p>The same poll on the public blog</p></figcaption></figure>

After voting, the reader sees the results instead of the buttons. A reader can vote once per poll in the same browser: Live Blog remembers the vote in that browser for a year, and a second try shows "You have already voted on this poll." When the poll has closed, the **VOTE** button disappears and readers see **Poll closed** and the results.

Not every theme shows polls. See [What each theme supports](https://docs.liveblog.pro/readme/publishing-to-readers/what-each-theme-supports.md).

## Change a published poll

Click the edit icon of the poll post in the timeline. The poll opens in the editor as **Edit poll**.

* The question and the answers are greyed out. They cannot change once readers may have voted.
* The poll length shows the time left. Change it to make the poll longer or shorter. When you click **Update**, the poll closes that long after the moment you update.
* If the poll has already closed, the editor says "Note: The poll time elapsed so it cannot be updated."

The votes are kept when you update the post. See [Editing, unpublishing and deleting posts](https://docs.liveblog.pro/readme/writing-posts/editing-and-unpublishing-posts.md).

## Delete a poll

Deleting the post deletes the poll and its votes. The confirmation warns you: "It contains a poll with important data that will be permanently lost if you proceed."

{% hint style="warning" %}
The votes cannot be recovered after you delete the post. If you only want readers to stop voting, shorten the poll instead.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.liveblog.pro/readme/writing-posts/polls.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
