Skip to main content

Text Blocks

Use a text block when the template slide contains a textbox region and your request needs to fill it with a heading, paragraph, bullet list, or a combination of those elements. The template supplies placement and default styling. The payload supplies the text content and optional text-block formatting.

Text Surfaces

There are three places text can appear in a generation request. Table-cell text is part of a Table Block. It is not a type: "text" block, even when a table cell contains multiple paragraphs or bullets.

Basic Shape

Inside slide_data.content.blocks, a text block looks like this:
A text block can use any combination of header, text, and bullets. Text renders in this order: header, then text, then bullets.

Bullets

bullets is an array of strings. Each string renders as one bullet paragraph in the matching textbox region.
For bullets inside a table cell, use the table-cell value shape documented in Table Blocks.

Text Blocks With Tables

Some template layouts contain both a table placeholder and a textbox placeholder. In that case, send one table block and one text block in the same content.blocks array.
The table block owns the row and cell content. The text block owns the separate textbox content.

Slide-Level Text

Top-level text fields populate matching slide placeholders.

Text Block Formatting

Use block-level formatting when one text block should differ from the rest of the slide.
For text blocks, use header_format, text_format, and bullets_format. The current text-block renderer applies font_name, font_size, and bold overrides. Unspecified values inherit from the template textbox where available. Use slide_format.textbox to set defaults for all text blocks on the slide.
For richer table-cell text styling, including per-cell and per-paragraph format templates, use Table Blocks.

Layouts

For a single-column layout, content is one column object:
For a two-column layout, content is an array. Each object is one column. The optional column header renders only when the template has matching LHS_header and RHS_header marker textboxes. LHS means left-hand side; RHS means right-hand side.

Fitting

Generation can shrink textbox fonts when text is too long for the available space.
textbox_min_font_size sets the smallest allowed font size during fit optimization. Set auto_paginate_tables: false for layouts that combine a table block and a text block. Table auto-pagination is only for table-only layouts.

Complete Example

The visual example below is generated from the complete payload above. It shows a table block filling the table region and a separate text block filling the bottom textbox region.
Template slide with a table placeholder and a bullet placeholder below it.

Template slide

Generated customer health slide with a table and a Management Focus text block with bullets below it.

Generated slide

Presentation Generation

Generate one slide or a full deck.

Table Blocks

Author table-cell text, rows, formatting, and pagination.

Chart Blocks

Author bar and column charts.