Working with MPTS format

Introduction

To allow MetaPoll authors greater flexibility with how they create MetaPolls, we’ve created a format for the option tree of a MetaPoll that can be easily copy and pasted into and out of text editors. It’s called "MPTS" which stands for “MetaPoll TreeSpec”, it’s a minimalistic format used to create or modify a portable MetaPoll option tree within any basic text editor.

The format works like a bridge between flexible text editing and the structured data MetaPoll needs. You write your option tree using MPTS syntax in your preferred editor, and when ready, paste the MPTS formatted text into the app for a quick import.

Why use MPTS?

Creating polls in the MetaPoll app interface isn't always ideal. In some cases it makes more sense to draft them in collaborative documents where you can:

  • Receive feedback and comments from others

  • Get assistance from AI tools

  • Enable portability between environments (local to production)

  • Share and fork MetaPolls within communities

MPTS example usecase:


MPTS definition and structure

The MPTS format begins with the title of the MetaPoll:

MetaPoll title is a string written after “title” inside a set of [ ] brackets.

Example: title [name of metapoll]

Options appear after the title between to [ ] brackets with an implied hierarchical nested structure:

  • Each option exists on it’s own line

  • The option name comes after the = symbol followed by one space, example: = option_name

  • Root options are preceded by a single = symbol

  • Each nested layer adds an additional = symbol

  • The line order of each option indicates parent/child relationships. Example: the first “= Option A” with a single = symbol above “== Option A1” implies that Option A1 is a child of Option A.

Option tree example:

Using MPTS:

Now that we know the structure, let's make it more concrete with an example of what a short MPTS MetaPoll might actually look like:

As you can see, there are two "root level" options: = Dog and = Cat . Next, nested inside Dog in the 2nd "Layer" are two more options: == Golden Retriever and == Beagle , and within == Golden Retriever in the 3rd "Layer" are two more options: === Long hair and === Short hair variants.

You can also share your MetaPolls in this format on the web with the MetaPoll poll creator community. This could be helpful for spreading standardized MetaPolls using best practices, or furthering research into developing new ways of building effective MetaPolls.

Looking forward, we will continue to develop MPTS with feedback from the community. One thing we'd like to do in the future is to create "Templates" that Authors can distribute to the community, potentially with financial rewards.

Using MPTS with AI:

AI can be a powerful tool to author new MetaPolls with. For your convenience, we've put together a generic prompt that you can copy/paste into an LLM to help you output valid MPTS formatted text.

We hope you found this guide on using MPTS helpful. We extend a warm invitation to join our encouraging and friendly Poll Creator community on Discord here: https://discord.com/invite/KMfUndbgpr

Join the community!


PS, here were some considerations when designing MPTS:

We believe a successful format for our community is extremely simple, quick to learn even for non-developers, and can be copied/pasted in most text editors or LLMs without formatting issues or lost symbols (avoiding bullets and numbered lists).

  1. Minimal Syntax: Easy to learn quickly with keyboard-friendly characters

  2. Non-Developer Friendly: Readable by users without technical backgrounds

  3. No Rank Ordering: Option ranking not needed in creation mode

  4. AI Compatible: Format should be machine-readable and writable

  5. Visual Simplicity: Clean and straightforward presentation

Last updated