gamma_generate_from_template
Generate a new variant from a Gamma template by replacing content while preserving layout. Use for batch creations like investor decks or LinkedIn cards with consistent branding.
Instructions
Generate a variant from an existing Gamma template with swapped content.
Uses POST /generations/from-template. The template Gamma must have exactly one Page. Layout is preserved; new content is generated from the prompt. Ideal for batch content with consistent branding — per-segment investor decks, per-lead LinkedIn cards, rebranded decks per channel partner.
Args: prompt: Content description for the new variant (1-400000 chars). gamma_id: The Gamma ID of the template file (required). theme_id: Optional theme ID to override the template's theme. image_options: Same shape as gamma_generate's image_options. sharing_options: Same shape as gamma_generate's sharing_options. folder_ids: Workspace folder IDs to place the output in (max 10). export_as: Auto-export format — 'pdf', 'pptx', or 'png'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| gamma_id | Yes | ||
| theme_id | No | ||
| image_options | No | ||
| sharing_options | No | ||
| folder_ids | No | ||
| export_as | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |