template
.
Overview of Custom Deck Generation Process
Slide Source: The request does not specify a source_document_id, so the system fetches any (Google Slides / PPTX) library document that is in your organization.
Slide Count: The request does not specify a number of slides (number_slides), so the system estimates an appropriate number of slides based on the prompt.
Outline Generation: The request does not specify an outline, so the system creates an outline (content & slide layout description for each slide) based on the slide count and prompt.
Slide Selection: The request does not include an outline parameter with the slide_id key, so the system selects the most relevant slide from the slide source (library document in step 1) given the outline layout description for each slide.
Generation: For each selected slide, the system uses the prompt + outline + placeholders in the slide to generate content for each of the selected slides.
Specify a FlashDocs Slide Library

id
of the document.id
by viewing the URL.

https://dash.flashdocs.ai/document/abc0d0d0-abcd-4141-abc0-abc010101#Slides
, then the id
of the document is the portion between document and #Slides: abc0d0d0-abcd-4141-abc0-abc010101
.
Now that we have the id
of the library FlashDocs document we want our custom deck to come from, we can include the source_document_id
in the generate deck request:
How does this affect the generation of the deck?
Specifying thesource_document_id
affects step 4 in the deck generation process. When the system identifies the most relevant slide layout for each slide in the outline, it chooses a slide layout from the set of slides in the source_document_id
.
Number of Slides
Description
The number_slides parameter allows you to specify the exact number of slides you want in the generated presentation. If omitted, the system automatically estimates an appropriate slide count based on the prompt. (Note: This parameter should not be used if thesource_document_id
points to a template document.)
Generation Process Impact
The number_slides parameter directly affects Step 2: Slide Count. When provided, the system bypasses its automatic estimation and uses the specified number to generate the presentation. Under the hood, this parameter informs the algorithm to tailor the outline and distribute content evenly across the defined number of slides.Outline
Description
The outline parameter lets you supply a custom array of instructions that define both the content and layout for each slide. This is particularly useful for custom decks where you want to control slide-by-slide details. If an outline is not provided, the system automatically generates one based on the prompt. Instead oflayout_instruction
, you can also directly provide slide_id
, which is the id
of the slide in a FlashDocs document. You can view slide IDs in this request: https://docs.flashdocs.com/api-reference/flashdocs-documents/get-document-full-data, with
Generation Process Impact
The outline parameter influences Step 3: Outline Generation. When provided, it overrides the system’s default outline generation process, guiding the creation of slide layouts and content structure. Internally, the provided instructions are mapped to the corresponding slide placeholders to ensure that each slide adheres to your specific design and content requirements.Audience Domain
Description
The audience_domain parameter is used to specify the domain or website of the target audience. This is particularly useful for populating image placeholders with the appropriate company logos (using theaudience-company-logo
category) when the deck is designed for an external audience. If not provided, the system attempts to predict a suitable domain.