This article explains how to configure repeating content blocks and sections in Custom Document Agents. Repeating lets an agent generate multiple instances of a content block or section based on written instructions, without requiring you to configure each instance manually.
Prerequisites
|
About repeating content blocks and sections
Use Repeating when the number of slides or sections needs to adapt to the user’s request or uploaded content.
You can configure repetition for:
- Content blocks. Repeat a static slide, selected layout, pinned file, or a block where AI selects a layout from a collection.
- Sections. Repeat a group of content blocks together, preserving their configured order and using the relevant context for each repetition.
You define the structure and content selection instructions once. The agent then uses your repeating instructions and the user’s input to determine how many instances to generate.
ImportantRepeating instructions do not enforce a fixed number of repetitions. For example, if your instructions specify three case studies but the user provides four, the agent may generate four. |
Configure a repeating content block
- Open the Custom Agent configuration page.
- Under Outline, create a content block and configure its content.
- Enable Repeating.
- In the text field that appears, enter instructions describing when the content block should repeat.
- Click Save to save your changes.
Example: Repeat CV slides
To include a CV slide for each person identified in an uploaded document, configure a content block with the required CV layout and enter the following repeating instruction:
"Repeat for each person highlighted in the uploaded document."
The agent generates a separate instance of the content block for each identified person, using the configured layout.
Configure a repeating section
- Open the Custom Agent configuration page.
- Under Outline, create a section.
- Add and configure the content blocks that belong to the section.
- Enable Repeating for the section.
- In the text field that appears, enter instructions describing when the section should repeat.
- Click Save to save your changes.
Example: Repeat case study sections
Create a section containing the content blocks needed for one case study. Configure those blocks to select relevant case study content based on the user’s request, then enter the following repeating instruction for the section:
"Repeat for each case study requested by the user."
The agent repeats the section for each case study, keeping its content blocks together and in their configured order. Each repetition uses the relevant case study as context, so you do not need to configure a separate section for every case study.
Comments
Article is closed for comments.