Prompt Template

Displays an LLM prompt with interpolation slots highlighted in a distinct colour. Includes an optional copy-to-clipboard button. Ideal for AI documentation, tutorials, and prompt engineering articles.

Surfaces
webmeet-stagepdfapps-script-web
Degraded on
SurfaceNote
googlechatRenders as plain code block without slot highlighting
emailRenders as plain code block without slot highlighting
Fields
FieldType
templatestring. The prompt text containing {slot} placeholders.required
accentstring (optional, defaultoptional
copyableboolean (optional, default true). Show copy button.optional
labelstring. Small label shown above the template block.optional
Example payload
{
  "type": "prompt_template",
  "template": "Hello, {{name}}!"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:prompt_template",
  "displayName": "Prompt Template",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/prompt_template",
  "capabilities": [
    "web",
    "meet-stage",
    "pdf",
    "apps-script-web"
  ],
  "description": "Displays an LLM prompt with interpolation slots highlighted in a distinct colour. Includes an optional copy-to-clipboard button. Ideal for AI documentation, tutorials, and prompt engineering articles.",
  "representativeQueries": [
    "show a LLM prompt with highlighted {variable} slots and copy button",
    "displays an llm prompt with interpolation slots highlighted in a distinct colour. includes an option",
    "render a prompt template"
  ]
}
← 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 →