Skip to Content
Vatson Office

Deck spec

The DeckSpec that create_deck takes. Slides are kinds with slots; the compiler owns positions, sizes and fitting text.

A DeckSpec is a list of slides, each one of sixteen kinds. The model picks the kind that fits the content and fills its slots: a title that states the takeaway, bullets, a chart, stats, a timeline. It never sets positions or sizes (D9). The compiler fits text with a size ladder and warns when it does not fit.

A stat slide with three large numbers and their captions
stat
A chart slide with a native column chart of two series
chart
A timeline slide
timeline

Slide kinds

KindUse it for
title, section, closingthe cover, section dividers past eight slides, the ask or next steps at the end
bullets, twoColumn, comparisonshort points; two sides; options against criteria
charta number series as a native chart with a takeaway
stat, kpisa few large numbers with captions
tablesmall, genuinely tabular data with totals
timeline, agendaa sequence of steps or dates; the order of the meeting
cards, decisionrisks, next steps or a summary as cards; the decision asked for, with one line per fact
imageText, quotean image with text; a quote with its source

Smallest example

create_deck input
{
  "filename": "q3-review",
  "spec": {
    "title": "Q3 review",
    "slides": [
      { "kind": "title", "title": "Q3 review", "subtitle": "Sales and service" },
      {
        "kind": "chart",
        "title": "Service revenue passed bike sales in September",
        "chart": {
          "type": "column",
          "categories": ["July", "August", "September"],
          "series": [
            { "name": "Bike sales", "values": [48, 44, 39] },
            { "name": "Service", "values": [31, 38, 42] }
          ]
        }
      }
    ]
  }
}

A full example

The spec behind the quarterly update deck.

Fields

Generated from the schema the tools send to the model. A field with ? is optional.

FieldTypeDescription
version?1
lang?stringBCP 47 language tag of the slide text; default from the host settings
titlestring (max 200 chars)Deck title in sentence case, e.g. 'Q3 results'
author?string (max 200 chars)
company?string (max 200 chars)
aspect?"16:9" | "4:3"
theme?object
footer?string (max 120 chars)
slideNumbers?boolean
slidesobject[] (at least 1, at most 60)

theme

FieldTypeDescription
headFont?string (max 64 chars)
bodyFont?string (max 64 chars)
colors?object

theme.colors

FieldTypeDescription
ink?stringMain text colour
paper?stringSlide background
accent?stringPrimary accent, chosen from the topic
accent2?stringSecondary accent for charts and highlights
muted?stringCaptions, footers, axis labels

slides[] kind: "title"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"title"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
subtitle?string (max 400 chars)

slides[] kind: "section"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"section"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
subtitle?string (max 400 chars)

slides[] kind: "bullets"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"bullets"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
bullets(string | object)[] (at least 1, at most 10)

slides[].bullets[]

FieldTypeDescription
textstring (max 400 chars)
level?integer (min 0, max 2)

slides[] kind: "twoColumn"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"twoColumn"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
leftobject
rightobject

slides[].left

FieldTypeDescription
heading?string (max 80 chars)
bullets(string | object)[] (at least 1, at most 8)
tone?"positive" | "negative" | "neutral"A + or - marker before the heading, e.g. what worked / what did not

slides[].right

FieldTypeDescription
heading?string (max 80 chars)
bullets(string | object)[] (at least 1, at most 8)
tone?"positive" | "negative" | "neutral"A + or - marker before the heading, e.g. what worked / what did not

slides[] kind: "table"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"table"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
columnsstring[] (at least 1, at most 8)
rows((string | number | null)[])[] (at least 1, at most 15)
align?("left" | "center" | "right")[]Per-column alignment; numbers default right
highlightLastRow?booleanEmphasise a totals row
total?boolean | stringAdds a totals row the compiler computes: figure columns summed, a placeholder column gets [[Total <column>]]. A string is the row label
currency?string (max 8 chars)Money columns: ISO code (EUR, USD) or symbol; number cells show it in the deck language's format, e.g. €1,200
note?string (max 200 chars)One short line under the table: the main message, source or assumption

slides[] kind: "chart"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"chart"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
chartobject
takeaway?string (max 400 chars)One sentence: what the chart shows
stats?object[] (at least 1, at most 3)Up to 3 key figures shown as cards beside the chart, e.g. the gap to target

slides[].chart

FieldTypeDescription
type"column" | "bar" | "line" | "area" | "pie" | "doughnut" | "waterfall"waterfall: one series, the start value then the changes, drawn as stacked columns
stacked?boolean | "percent"true stacks; "percent" stacks to 100%
categoriesstring[] (at least 1, at most 24)
seriesobject[] (at least 1, at most 6)
totalLast?booleanwaterfall: the last value is a total bar, not a change
numFmt?string (max 64 chars)Value axis/label format, e.g. #,##0 or 0%
unit?string (max 30 chars)Unit shown in the axis title, e.g. USD thousands
showValues?boolean

slides[].chart.series[]

FieldTypeDescription
namestring (max 60 chars)
values(number | null)[] (at least 1, at most 24)
type?"column" | "line"Combo chart: this series as columns or a line
secondaryAxis?booleanPlot on a second value axis on the right

slides[].stats[]

FieldTypeDescription
valuestring (max 16 chars)
captionstring (max 120 chars)

slides[] kind: "stat"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"stat"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
statsobject[] (at least 1, at most 4)

slides[].stats[]

FieldTypeDescription
valuestring (max 16 chars)
captionstring (max 120 chars)
icon?string (max 100,000 chars)Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI

slides[] kind: "imageText"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"imageText"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
imageobject
imageSide?"left" | "right"
body?string (max 400 chars)
bullets?(string | object)[] (at most 6)

slides[].image

FieldTypeDescription
srcstringdata: URI (PNG, JPEG, GIF or SVG), https URL, a file path or an asset id the caller resolves (asset:<id>)
altstring (max 255 chars)Alt text, required for accessibility
fit?"contain" | "cover"contain (default) shows the whole image; cover fills the frame and crops the edges

slides[] kind: "timeline"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"timeline"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
stepsobject[] (at least 2, at most 6)

slides[].steps[]

FieldTypeDescription
labelstring (max 24 chars)Date or phase, e.g. Q4 2026
titlestring (max 60 chars)
body?string (max 160 chars)
icon?string (max 100,000 chars)Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI

slides[] kind: "closing"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"closing"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
subtitle?string (max 400 chars)
contact?string (max 200 chars)

slides[] kind: "cards"

Risks (Impact, Likelihood, Mitigation), next steps (Owner, Due), a summary of 3-5 messages, what worked and what did not

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"cards"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
cardsobject[] (at least 2, at most 6)
layout?"row" | "list"row: cards side by side (2-4 short cards); list: one band per card. Default from the content

slides[].cards[]

FieldTypeDescription
titlestring (max 80 chars)
body?string (max 200 chars)
fields?object[] (at most 4)Labelled facts, e.g. Owner, Due, Status, Impact, Likelihood, Mitigation
tone?"positive" | "negative" | "caution" | "neutral"Marker colour and sign: positive +, negative -, caution !; default a number

slides[].cards[].fields[]

FieldTypeDescription
labelstring (max 30 chars)
valuestring (max 120 chars)

slides[] kind: "decision"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"decision"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
askstring (max 200 chars)What the audience is asked to decide, one sentence
fieldsobject[] (at least 1, at most 5)Cost or impact, recommendation, owner, deadline: one labelled line each

slides[].fields[]

FieldTypeDescription
labelstring (max 30 chars)
valuestring (max 120 chars)

slides[] kind: "quote"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"quote"
title?string (max 120 chars)Optional small heading above the quote
quotestring (max 300 chars)
attribution?string (max 80 chars)Who said it, as the person gave it
role?string (max 80 chars)

slides[] kind: "agenda"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"agenda"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
items(string | object)[] (at least 2, at most 8)
current?integer (min 0, max 7)0-based item to highlight, for an agenda shown between sections

slides[].items[]

FieldTypeDescription
titlestring (max 80 chars)
detail?string (max 120 chars)
icon?string (max 100,000 chars)Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI

slides[] kind: "comparison"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"comparison"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
optionsstring[] (at least 2, at most 4)What is compared, one column each
rowsobject[] (at least 1, at most 8)true and false show as a tick and a cross
highlight?integer (min 0, max 3)0-based option to emphasise (the recommendation)

slides[].rows[]

FieldTypeDescription
criterionstring (max 60 chars)
values(string | boolean | null)[]

slides[] kind: "kpis"

FieldTypeDescription
id?string (max 64 chars)
notes?string (max 4,000 chars)Speaker notes
kind"kpis"
titlestring (max 120 chars)Sentence case: capital on the first word and on names only
itemsobject[] (at least 2, at most 8)

slides[].items[]

FieldTypeDescription
valuestring (max 16 chars)
labelstring (max 60 chars)
delta?string (max 16 chars)Change, e.g. +12% or -3
trend?"up" | "down" | "flat"Arrow and colour of the delta
good?"up" | "down"Which direction is good news; default up
icon?string (max 100,000 chars)Icon name, e.g. chart, users, clock, check; or a data:image/svg+xml URI

On this page