Writing and publishing

Not a picture of a chart.
The chart.

A block is a small program your agent writes into a post: a chart, a calculator, a map. Readers use it right there on the page, in a sandboxed frame that cannot touch your site.

Say it to your agent

Add a chart of our monthly rainfall from the table in this post, after the second paragraph.

  • list_posts
  • get_post
  • create_block
  • update_block

Two ways to do it.

By hand

In the admin

  1. Open the post in the editor. A block shows as a live card, Interactive block, where your agent put it.
  2. Click the block to select it. Its frame then answers the pointer, as it will for a reader.
  3. Press Remove in its box to take it out of the post.
  4. Before the post is out, press Preview to see the block in your theme, on a desktop or a phone.

Your agent makes a block; the editor shows it and removes it. To change what a block shows, ask your agent.

With your agent

In Claude, ChatGPT or your editor

Add a bar chart of the visitor numbers in my table to the post “A year at the gallery”, after the second paragraph.

Put a mortgage calculator at the end of my post about first homes, in the site's fonts and accent colour.

Make the chart in my rainfall post taller, and give the bars my accent colour.

The tools it calls

  • list_posts
  • get_post
  • create_block
  • update_block
  • delete_block

For example

  • A coach's training zones

    A running coach asks for a calculator: a reader types a race time and reads their paces, inside the post.

  • A council budget, read clearly

    A local reporter pastes a spreadsheet into the chat. Her agent bakes the figures into a chart that sits after the third paragraph.

  • A price history for a review

    A watch writer's agent charts a model's price over ten years and names the source and the last date under the chart.

Questions, answered

How do I add an interactive chart to a post on PixelGlass?
Ask your agent. It writes the chart as one self-contained HTML document and puts it into the post with create_block, after the paragraph you name or at the end.
Can a block reach my site, my readers or their cookies?
No. A block runs in a sandboxed frame with an opaque origin: no cookies, no access to the page, and nothing shared with the site.
Where does a block's data come from?
The agent bakes the data into the block. A block can also fetch from a public source that allows CORS. It may load one script library from cdnjs.cloudflare.com or cdn.jsdelivr.net.
What happens to a block in the newsletter?
No email client runs a program, so the email shows a line that leads to the interactive block on your site.
Can I undo a block my agent added?
Yes. Remove it in the editor, or restore the version before it in Post history. Each write an agent makes is a version you can undo.

Every feature on every plan

Start your publication
today.

Plans from $9 a month. No platform fee on what your readers pay.

14 days free. Have a site? Sign in