Skip to main content
Templates define how your artifact content is rendered. Each template accepts specific content fields and produces a distinct visual output.

Available Templates

Template Comparison

TemplateBest ForContent Type
markdownDocumentation, reports, formatted textMarkdown string
chartData visualization, analyticsChart.js config
tableStructured data, listsRows and columns
pdfPrintable documents, exportsHTML or Markdown

Common Fields

All templates share these optional fields:
title
string
Display title shown in the artifact header
description
string
Short description shown below the title
expiresIn
string
Auto-expiration duration (e.g., 1h, 7d, 30d)

Example: Choosing a Template

Scenario: You want to show quarterly sales data.
  • For a written summary → Use markdown
  • For a bar chart visualization → Use chart
  • For a detailed breakdown by product → Use table
  • For a printable report → Use pdf

Template-Specific Content

Each template has its own content schema. See the individual template pages for detailed documentation: