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'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"gamma_id": "<gamma_id>"
},
"name": "gamma_generate_from_template"
}
}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 |