Build PowerPoint slide decks with title slides, content slides, and call-to-action pages.
Who this is for
Sales and marketing teams use this recipe to generate branded slide decks programmatically. Build a complete presentation with a title slide, problem and solution framing, feature highlights, pricing tables, and a call to action — delivered as a ready-to-present PPTX file.
curl -X POST https://api.iterationlayer.com/document-generation/v1/generate \
-H"Authorization: Bearer YOUR_API_KEY"\
-H"Content-Type: application/json"\
-d'{
"format": "pptx",
"document": {
"metadata": {
"title": "Launchpad Analytics — Product Launch",
"author": "Launchpad Analytics Inc."
},
"page": {
"size": { "preset": "A4" },
"margins": { "top_in_pt": 54, "right_in_pt": 54, "bottom_in_pt": 54, "left_in_pt": 54 }
},
"styles": {
"text": { "font_family": "Helvetica", "font_size_in_pt": 14.0, "line_height": 1.5, "color": "#333333" },
"headline": { "font_family": "Helvetica", "font_size_in_pt": 32.0, "color": "#111111", "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 6.0, "is_bold": true },
"link": { "color": "#0066CC", "is_underlined": true },
"list": { "text_style": { "font_family": "Helvetica", "font_size_in_pt": 14.0, "line_height": 1.5, "color": "#333333" }, "marker_color": "#333333", "marker_gap_in_pt": 8.0 },
"table": { "header": { "background_color": "#333333", "text_color": "#FFFFFF", "font_size_in_pt": 12.0, "is_bold": true }, "body": { "background_color": "#FFFFFF", "text_color": "#333333", "font_size_in_pt": 12.0 }, "border": { "outer": { "top": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "right": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "bottom": { "color": "#CCCCCC", "width_in_pt": 1.0 }, "left": { "color": "#CCCCCC", "width_in_pt": 1.0 } }, "inner": { "horizontal": { "color": "#EEEEEE", "width_in_pt": 0.5 }, "vertical": { "color": "#EEEEEE", "width_in_pt": 0.5 } } } },
"grid": { "background_color": "#FFFFFF", "border_color": "#CCCCCC", "border_width_in_pt": 0.0, "gap_in_pt": 12.0 },
"separator": { "color": "#CCCCCC", "thickness_in_pt": 1.0, "spacing_before_in_pt": 12.0, "spacing_after_in_pt": 12.0 },
"image": { "border_color": "#000000", "border_width_in_pt": 0.0 }
},
"content": [
{ "type": "headline", "level": "h1", "text": "Launchpad Analytics" },
{ "type": "paragraph", "runs": [
{ "text": "Real-time product analytics for teams that ship fast.", "is_bold": true }
] },
{ "type": "paragraph", "runs": [{ "text": "Product Launch — Q2 2026" }] },
{ "type": "page-break" },
{ "type": "headline", "level": "h1", "text": "The Problem" },
{ "type": "paragraph", "markdown": "Product teams today are **flying blind**. Existing analytics tools are built for data engineers, not product managers. Teams wait days for answers to simple questions like *\"Which feature drives retention?\"* or *\"Where do users drop off in onboarding?\"*" },
{ "type": "list", "variant": "unordered", "items": [
{ "text": "Average time to insight: 3–5 business days" },
{ "text": "72% of product managers rely on engineers for data queries" },
{ "text": "Only 18% of companies act on analytics within the same sprint" }
] },
{ "type": "page-break" },
{ "type": "headline", "level": "h1", "text": "Our Solution" },
{ "type": "paragraph", "markdown": "Launchpad Analytics gives product teams **instant answers** without writing SQL. Our AI-powered query engine translates natural language questions into real-time insights, delivered as interactive dashboards that update as your users interact with your product." },
{ "type": "list", "variant": "unordered", "items": [
{ "text": "Ask questions in plain English — no SQL required" },
{ "text": "Real-time event streaming with sub-second latency" },
{ "text": "Auto-generated dashboards for onboarding, retention, and feature adoption" },
{ "text": "One-click integration with Segment, Amplitude, and Mixpanel" }
] },
{ "type": "page-break" },
{ "type": "headline", "level": "h1", "text": "Key Features" },
{
"type": "grid",
"columns": [
{
"column_span": 6,
"blocks": [
{ "type": "headline", "level": "h3", "text": "Natural Language Queries" },
{ "type": "paragraph", "runs": [{ "text": "Ask \"What percentage of users completed onboarding last week?\" and get an instant chart. No SQL, no waiting." }] },
{ "type": "headline", "level": "h3", "text": "Funnel Analysis" },
{ "type": "paragraph", "runs": [{ "text": "Visualize user journeys from signup to conversion. Identify drop-off points and A/B test improvements in real time." }] }
]
},
{
"column_span": 6,
"blocks": [
{ "type": "headline", "level": "h3", "text": "Cohort Retention" },
{ "type": "paragraph", "runs": [{ "text": "Track retention by signup cohort, plan tier, or acquisition channel. See trends over 7, 30, and 90-day windows." }] },
{ "type": "headline", "level": "h3", "text": "Team Collaboration" },
{ "type": "paragraph", "runs": [{ "text": "Share dashboards with your team via link. Add annotations, set alerts, and comment on data points directly." }] }
]
}
]
},
{ "type": "page-break" },
{ "type": "headline", "level": "h1", "text": "Pricing" },
{ "type": "paragraph", "runs": [{ "text": "Simple, transparent pricing that scales with your product." }] },
{
"type": "table",
"column_widths_in_percent": [25, 25, 25, 25],
"header": {
"cells": [
{ "text": "" },
{ "text": "Starter", "horizontal_alignment": "center" },
{ "text": "Growth", "horizontal_alignment": "center" },
{ "text": "Enterprise", "horizontal_alignment": "center" }
]
},
"rows": [
{ "cells": [
{ "text": "Monthly Price" },
{ "text": "$299/mo", "horizontal_alignment": "center" },
{ "text": "$799/mo", "horizontal_alignment": "center" },
{ "text": "Custom", "horizontal_alignment": "center" }
] },
{ "cells": [
{ "text": "Monthly Events" },
{ "text": "5M", "horizontal_alignment": "center" },
{ "text": "50M", "horizontal_alignment": "center" },
{ "text": "Unlimited", "horizontal_alignment": "center" }
] },
{ "cells": [
{ "text": "Team Members" },
{ "text": "5", "horizontal_alignment": "center" },
{ "text": "25", "horizontal_alignment": "center" },
{ "text": "Unlimited", "horizontal_alignment": "center" }
] },
{ "cells": [
{ "text": "Data Retention" },
{ "text": "12 months", "horizontal_alignment": "center" },
{ "text": "24 months", "horizontal_alignment": "center" },
{ "text": "Unlimited", "horizontal_alignment": "center" }
] },
{ "cells": [
{ "text": "Support" },
{ "text": "Email", "horizontal_alignment": "center" },
{ "text": "Priority", "horizontal_alignment": "center" },
{ "text": "Dedicated CSM", "horizontal_alignment": "center" }
] }
]
},
{ "type": "page-break" },
{ "type": "headline", "level": "h1", "text": "Get Started Today" },
{ "type": "paragraph", "markdown": "Join **340+ product teams** already using Launchpad Analytics to ship better products, faster." },
{ "type": "list", "variant": "ordered", "items": [
{ "text": "Sign up for a free 14-day trial at launchpad-analytics.com" },
{ "text": "Connect your event source in under 5 minutes" },
{ "text": "Ask your first question and get instant insights" }
] },
{ "type": "separator" },
{ "type": "paragraph", "runs": [
{ "text": "Contact us: ", "is_bold": true },
{ "text": "sales@launchpad-analytics.com · (415) 555-0192 · launchpad-analytics.com" }
] }
]
}
}'
import{IterationLayer}from"iterationlayer";constclient=newIterationLayer({apiKey:"YOUR_API_KEY"});constresult=awaitclient.generateDocument({format:"pptx",document:{metadata:{title:"Launchpad Analytics — Product Launch",author:"Launchpad Analytics Inc.",},page:{size:{preset:"A4"},margins:{top_in_pt:54,right_in_pt:54,bottom_in_pt:54,left_in_pt:54},},styles:{text:{font_family:"Helvetica",font_size_in_pt:14.0,line_height:1.5,color:"#333333"},headline:{font_family:"Helvetica",font_size_in_pt:32.0,color:"#111111",spacing_before_in_pt:12.0,spacing_after_in_pt:6.0,is_bold:true},link:{color:"#0066CC",is_underlined:true},list:{text_style:{font_family:"Helvetica",font_size_in_pt:14.0,line_height:1.5,color:"#333333"},marker_color:"#333333",marker_gap_in_pt:8.0},table:{header:{background_color:"#333333",text_color:"#FFFFFF",font_size_in_pt:12.0,is_bold:true},body:{background_color:"#FFFFFF",text_color:"#333333",font_size_in_pt:12.0},border:{outer:{top:{color:"#CCCCCC",width_in_pt:1.0},right:{color:"#CCCCCC",width_in_pt:1.0},bottom:{color:"#CCCCCC",width_in_pt:1.0},left:{color:"#CCCCCC",width_in_pt:1.0}},inner:{horizontal:{color:"#EEEEEE",width_in_pt:0.5},vertical:{color:"#EEEEEE",width_in_pt:0.5}}}},grid:{background_color:"#FFFFFF",border_color:"#CCCCCC",border_width_in_pt:0.0,gap_in_pt:12.0},separator:{color:"#CCCCCC",thickness_in_pt:1.0,spacing_before_in_pt:12.0,spacing_after_in_pt:12.0},image:{border_color:"#000000",border_width_in_pt:0.0},},content:[{type:"headline",level:"h1",text:"Launchpad Analytics"},{type:"paragraph",runs:[{text:"Real-time product analytics for teams that ship fast.",is_bold:true},]},{type:"paragraph",runs:[{text:"Product Launch — Q2 2026"}]},{type:"page-break"},{type:"headline",level:"h1",text:"The Problem"},{type:"paragraph",markdown:"Product teams today are **flying blind**. Existing analytics tools are built for data engineers, not product managers. Teams wait days for answers to simple questions like *\"Which feature drives retention?\"* or *\"Where do users drop off in onboarding?\"*"},{type:"list",variant:"unordered",items:[{text:"Average time to insight: 3\u20135 business days"},{text:"72% of product managers rely on engineers for data queries"},{text:"Only 18% of companies act on analytics within the same sprint"},]},{type:"page-break"},{type:"headline",level:"h1",text:"Our Solution"},{type:"paragraph",markdown:"Launchpad Analytics gives product teams **instant answers** without writing SQL. Our AI-powered query engine translates natural language questions into real-time insights, delivered as interactive dashboards that update as your users interact with your product."},{type:"list",variant:"unordered",items:[{text:"Ask questions in plain English \u2014 no SQL required"},{text:"Real-time event streaming with sub-second latency"},{text:"Auto-generated dashboards for onboarding, retention, and feature adoption"},{text:"One-click integration with Segment, Amplitude, and Mixpanel"},]},{type:"page-break"},{type:"headline",level:"h1",text:"Key Features"},{type:"grid",columns:[{column_span:6,blocks:[{type:"headline",level:"h3",text:"Natural Language Queries"},{type:"paragraph",runs:[{text:"Ask \"What percentage of users completed onboarding last week?\" and get an instant chart. No SQL, no waiting."}]},{type:"headline",level:"h3",text:"Funnel Analysis"},{type:"paragraph",runs:[{text:"Visualize user journeys from signup to conversion. Identify drop-off points and A/B test improvements in real time."}]},],},{column_span:6,blocks:[{type:"headline",level:"h3",text:"Cohort Retention"},{type:"paragraph",runs:[{text:"Track retention by signup cohort, plan tier, or acquisition channel. See trends over 7, 30, and 90-day windows."}]},{type:"headline",level:"h3",text:"Team Collaboration"},{type:"paragraph",runs:[{text:"Share dashboards with your team via link. Add annotations, set alerts, and comment on data points directly."}]},],},],},{type:"page-break"},{type:"headline",level:"h1",text:"Pricing"},{type:"paragraph",runs:[{text:"Simple, transparent pricing that scales with your product."}]},{type:"table",column_widths_in_percent:[25,25,25,25],header:{cells:[{text:""},{text:"Starter",horizontal_alignment:"center"},{text:"Growth",horizontal_alignment:"center"},{text:"Enterprise",horizontal_alignment:"center"},],},rows:[{cells:[{text:"Monthly Price"},{text:"$299/mo",horizontal_alignment:"center"},{text:"$799/mo",horizontal_alignment:"center"},{text:"Custom",horizontal_alignment:"center"},]},{cells:[{text:"Monthly Events"},{text:"5M",horizontal_alignment:"center"},{text:"50M",horizontal_alignment:"center"},{text:"Unlimited",horizontal_alignment:"center"},]},{cells:[{text:"Team Members"},{text:"5",horizontal_alignment:"center"},{text:"25",horizontal_alignment:"center"},{text:"Unlimited",horizontal_alignment:"center"},]},{cells:[{text:"Data Retention"},{text:"12 months",horizontal_alignment:"center"},{text:"24 months",horizontal_alignment:"center"},{text:"Unlimited",horizontal_alignment:"center"},]},{cells:[{text:"Support"},{text:"Email",horizontal_alignment:"center"},{text:"Priority",horizontal_alignment:"center"},{text:"Dedicated CSM",horizontal_alignment:"center"},]},],},{type:"page-break"},{type:"headline",level:"h1",text:"Get Started Today"},{type:"paragraph",markdown:"Join **340+ product teams** already using Launchpad Analytics to ship better products, faster."},{type:"list",variant:"ordered",items:[{text:"Sign up for a free 14-day trial at launchpad-analytics.com"},{text:"Connect your event source in under 5 minutes"},{text:"Ask your first question and get instant insights"},]},{type:"separator"},{type:"paragraph",runs:[{text:"Contact us: ",is_bold:true},{text:"sales@launchpad-analytics.com \u00b7 (415) 555-0192 \u00b7 launchpad-analytics.com"},]},],},});awaitBun.write("product-launch-deck.pptx",Buffer.from(result.data.buffer,"base64"));
importbase64fromiterationlayerimportIterationLayerclient=IterationLayer(api_key="YOUR_API_KEY")result=client.generate_document(format="pptx",document={"metadata":{"title":"Launchpad Analytics \u2014 Product Launch","author":"Launchpad Analytics Inc.",},"page":{"size":{"preset":"A4"},"margins":{"top_in_pt":54,"right_in_pt":54,"bottom_in_pt":54,"left_in_pt":54},},"styles":{"text":{"font_family":"Helvetica","font_size_in_pt":14.0,"line_height":1.5,"color":"#333333"},"headline":{"font_family":"Helvetica","font_size_in_pt":32.0,"color":"#111111","spacing_before_in_pt":12.0,"spacing_after_in_pt":6.0,"is_bold":True},"link":{"color":"#0066CC","is_underlined":True},"list":{"text_style":{"font_family":"Helvetica","font_size_in_pt":14.0,"line_height":1.5,"color":"#333333"},"marker_color":"#333333","marker_gap_in_pt":8.0},"table":{"header":{"background_color":"#333333","text_color":"#FFFFFF","font_size_in_pt":12.0,"is_bold":True},"body":{"background_color":"#FFFFFF","text_color":"#333333","font_size_in_pt":12.0},"border":{"outer":{"top":{"color":"#CCCCCC","width_in_pt":1.0},"right":{"color":"#CCCCCC","width_in_pt":1.0},"bottom":{"color":"#CCCCCC","width_in_pt":1.0},"left":{"color":"#CCCCCC","width_in_pt":1.0}},"inner":{"horizontal":{"color":"#EEEEEE","width_in_pt":0.5},"vertical":{"color":"#EEEEEE","width_in_pt":0.5}}}},"grid":{"background_color":"#FFFFFF","border_color":"#CCCCCC","border_width_in_pt":0.0,"gap_in_pt":12.0},"separator":{"color":"#CCCCCC","thickness_in_pt":1.0,"spacing_before_in_pt":12.0,"spacing_after_in_pt":12.0},"image":{"border_color":"#000000","border_width_in_pt":0.0},},"content":[{"type":"headline","level":"h1","text":"Launchpad Analytics"},{"type":"paragraph","runs":[{"text":"Real-time product analytics for teams that ship fast.","is_bold":True},]},{"type":"paragraph","runs":[{"text":"Product Launch \u2014 Q2 2026"}]},{"type":"page-break"},{"type":"headline","level":"h1","text":"The Problem"},{"type":"paragraph","markdown":"Product teams today are **flying blind**. Existing analytics tools are built for data engineers, not product managers. Teams wait days for answers to simple questions like *\"Which feature drives retention?\"* or *\"Where do users drop off in onboarding?\"*"},{"type":"list","variant":"unordered","items":[{"text":"Average time to insight: 3\u20135 business days"},{"text":"72% of product managers rely on engineers for data queries"},{"text":"Only 18% of companies act on analytics within the same sprint"},]},{"type":"page-break"},{"type":"headline","level":"h1","text":"Our Solution"},{"type":"paragraph","markdown":"Launchpad Analytics gives product teams **instant answers** without writing SQL. Our AI-powered query engine translates natural language questions into real-time insights, delivered as interactive dashboards that update as your users interact with your product."},{"type":"list","variant":"unordered","items":[{"text":"Ask questions in plain English \u2014 no SQL required"},{"text":"Real-time event streaming with sub-second latency"},{"text":"Auto-generated dashboards for onboarding, retention, and feature adoption"},{"text":"One-click integration with Segment, Amplitude, and Mixpanel"},]},{"type":"page-break"},{"type":"headline","level":"h1","text":"Key Features"},{"type":"grid","columns":[{"column_span":6,"blocks":[{"type":"headline","level":"h3","text":"Natural Language Queries"},{"type":"paragraph","runs":[{"text":"Ask \"What percentage of users completed onboarding last week?\" and get an instant chart. No SQL, no waiting."}]},{"type":"headline","level":"h3","text":"Funnel Analysis"},{"type":"paragraph","runs":[{"text":"Visualize user journeys from signup to conversion. Identify drop-off points and A/B test improvements in real time."}]},],},{"column_span":6,"blocks":[{"type":"headline","level":"h3","text":"Cohort Retention"},{"type":"paragraph","runs":[{"text":"Track retention by signup cohort, plan tier, or acquisition channel. See trends over 7, 30, and 90-day windows."}]},{"type":"headline","level":"h3","text":"Team Collaboration"},{"type":"paragraph","runs":[{"text":"Share dashboards with your team via link. Add annotations, set alerts, and comment on data points directly."}]},],},],},{"type":"page-break"},{"type":"headline","level":"h1","text":"Pricing"},{"type":"paragraph","runs":[{"text":"Simple, transparent pricing that scales with your product."}]},{"type":"table","column_widths_in_percent":[25,25,25,25],"header":{"cells":[{"text":""},{"text":"Starter","horizontal_alignment":"center"},{"text":"Growth","horizontal_alignment":"center"},{"text":"Enterprise","horizontal_alignment":"center"},],},"rows":[{"cells":[{"text":"Monthly Price"},{"text":"$299/mo","horizontal_alignment":"center"},{"text":"$799/mo","horizontal_alignment":"center"},{"text":"Custom","horizontal_alignment":"center"},]},{"cells":[{"text":"Monthly Events"},{"text":"5M","horizontal_alignment":"center"},{"text":"50M","horizontal_alignment":"center"},{"text":"Unlimited","horizontal_alignment":"center"},]},{"cells":[{"text":"Team Members"},{"text":"5","horizontal_alignment":"center"},{"text":"25","horizontal_alignment":"center"},{"text":"Unlimited","horizontal_alignment":"center"},]},{"cells":[{"text":"Data Retention"},{"text":"12 months","horizontal_alignment":"center"},{"text":"24 months","horizontal_alignment":"center"},{"text":"Unlimited","horizontal_alignment":"center"},]},{"cells":[{"text":"Support"},{"text":"Email","horizontal_alignment":"center"},{"text":"Priority","horizontal_alignment":"center"},{"text":"Dedicated CSM","horizontal_alignment":"center"},]},],},{"type":"page-break"},{"type":"headline","level":"h1","text":"Get Started Today"},{"type":"paragraph","markdown":"Join **340+ product teams** already using Launchpad Analytics to ship better products, faster."},{"type":"list","variant":"ordered","items":[{"text":"Sign up for a free 14-day trial at launchpad-analytics.com"},{"text":"Connect your event source in under 5 minutes"},{"text":"Ask your first question and get instant insights"},]},{"type":"separator"},{"type":"paragraph","runs":[{"text":"Contact us: ","is_bold":True},{"text":"sales@launchpad-analytics.com \u00b7 (415) 555-0192 \u00b7 launchpad-analytics.com"},]},],},)withopen("product-launch-deck.pptx","wb")asf:f.write(base64.b64decode(result["data"]["buffer"]))
packagemainimportil"github.com/iterationlayer/sdk-go"client:=il.NewClient("YOUR_API_KEY")result,err:=client.GenerateDocument(il.GenerateDocumentRequest{Format:"pptx",Document:il.DocumentDefinition{Metadata:il.DocumentMetadata{Title:"Launchpad Analytics \u2014 Product Launch",Author:"Launchpad Analytics Inc.",},Page:il.DocumentPage{Size:il.DocPageSize{Preset:"A4"},Margins:il.DocMargins{TopInPt:54,RightInPt:54,BottomInPt:54,LeftInPt:54},},Content:[]il.ContentBlock{il.NewHeadlineBlock("h1","Launchpad Analytics"),il.NewPageBreakBlock(),il.NewHeadlineBlock("h1","The Problem"),il.NewListBlock("unordered",[]il.ListItem{{Text:"Average time to insight: 3\u20135 business days"},{Text:"72% of product managers rely on engineers for data queries"},{Text:"Only 18% of companies act on analytics within the same sprint"},}),il.NewPageBreakBlock(),il.NewHeadlineBlock("h1","Our Solution"),il.NewPageBreakBlock(),il.NewHeadlineBlock("h1","Pricing"),il.NewTableBlock([]il.TableRow{{Cells:[]il.TableCell{{Text:"Monthly Price"},{Text:"$299/mo"},{Text:"$799/mo"},{Text:"Custom"}}},{Cells:[]il.TableCell{{Text:"Monthly Events"},{Text:"5M"},{Text:"50M"},{Text:"Unlimited"}}},{Cells:[]il.TableCell{{Text:"Team Members"},{Text:"5"},{Text:"25"},{Text:"Unlimited"}}},}),il.NewPageBreakBlock(),il.NewHeadlineBlock("h1","Get Started Today"),il.NewListBlock("ordered",[]il.ListItem{{Text:"Sign up for a free 14-day trial at launchpad-analytics.com"},{Text:"Connect your event source in under 5 minutes"},{Text:"Ask your first question and get instant insights"},}),},},})