# AI Canvas — generate widgets from prompts

**Ask the AI for a market-data widget in natural language. It generates safe, sandboxed HTML/JS and drops it into your workspace.**

Section: Automation · Last updated: 2026-07-28

---

## The idea

Every trader wants a slightly different view of Polymarket data. Rather than ship 50 pre-baked widgets, AI Canvas generates them on demand: "show me a live ladder of the top 5 BTC-related markets" → the AI writes the widget, we sandbox it and drop it in.

## Safety model

Every generated widget runs in a strict CSP iframe: no network, no external resources, no access to the parent page. We inject live market data via `postMessage`. Widgets can only READ what we send — they can never place trades.

## Where to use

  - `/app/canvas` — dedicated Canvas page
  - Inside Terminal — pin a Canvas widget alongside your standard tiles
  - Marketplace — share widgets with the community

## Cost

Free tier: 3 widget generations/day. Pro: 100/day. Uses the same LLM cascade as everything else.