Building an AI Agent Team to Generate HTML Presentations
A multi-agent workflow can make AI-generated HTML presentations cleaner and more coherent by separating content planning from rendering. This article explains how a dedicated orchestration agent uses Audience-State-Transfer (AST) to organize source materials, filter out planning artifacts, and coordinate HTML slide generation with video production when needed.
1. From Manual Slides to an Agent Pipeline
I have been using AI extensively to generate HTML presentations and gradually turning the process into a workflow supported by a team of agents. Two recurring limitations motivated this approach.
The first is cost and output noise. When a general-purpose large language model generates slides directly, it sometimes includes intermediate reasoning and planning notes in the pages. The result is a screen filled with small, dense text that distracts from the presentation. These intermediate artifacts belong in the preparation process, not in front of the audience. Switching to a more cost-effective model may reduce spending, but it does not necessarily solve the output-noise problem.
The second limitation is a narrow range of visual assets. Relying only on AI-generated images can produce poorly proportioned visuals that convey too little information. Slides then become little more than text paired with an unattractive image. As slide counts and content density increase, static images may no longer be sufficient, making richer media such as video worth considering.
Together, these problems lead to repeated revisions. To address them, I began packaging a content-planning layer into a dedicated agent that serves as a quality gate for the entire pipeline.
2. Core Design: A Dedicated Content-Filtering Agent
The content-filtering layer is not a generator. It is an orchestration and filtering layer between source materials and downstream generation skills.
It has three responsibilities:
- Aggregate: Collect the reference files, documents, and links supplied by the user, rather than letting downstream tools reproduce them in their original order.
- Reorganize: Restructure the content around the audience and narrative goals, removing transitions that add no meaningful information.
- Deliver a simplified handoff: Pass a clean outline to the HTML slide-generation skills so they can focus on rendering rather than deciding what to say.
This separation keeps planning artifacts out of the slide layout. Content decisions happen within the orchestration layer, while only a clean, structured outline reaches the renderer.
3. The Planning Method: Audience-State-Transfer (AST)
I call the orchestration layer’s core method Audience-State-Transfer (AST). It draws on a pattern shared by effective conference speakers: slides present information at key moments without disappearing from the narrative or competing with it. The speaker and the content remain the focus.
Before creating the outline, AST requires the agent to establish two things:
- Audience: Is the presentation intended for complete beginners or people who already have relevant knowledge?
- State transfer: How should the audience’s understanding or attitude change from one slide to the next? Why would they want to keep listening?
For example, a presentation might aim to move an audience from knowing nothing about a tool to understanding how to use it for a concrete task, such as raising lobsters. The orchestration layer builds the presentation around that transition rather than copying the order of the source materials.
The following pseudocode illustrates the planning constraints:
# Inputs to the orchestration layerraw_materials = aggregate(user_supplied_sources)audience = to_be_definedtarget_state = to_be_defined# Required planning output; excluded from the final slidesplan = {"audience": "Who is watching, and what do they already know?","state_chain": ["Audience state after slide 1","Audience state after slide 2", ...],"keep_listening": "Why is each transition worth following?"}# Only pass a clean outline downstream after validationoutline = reorganize(raw_materials,based_on=plan["state_chain"],remove=meaningless_transitions)render(outline) # The downstream layer handles rendering only
The key boundary is between plan and outline. The planning artifact is explicitly isolated and never inserted into the slides. Only the outline moves into the generation stage.
4. Coordinating Skills into an Agent Team
A single skill cannot adequately cover both slide layout and video production. I therefore organize several capabilities into a team with distinct responsibilities:
- HTML slide-generation skills, with two variants: Render the outline into structured, well-proportioned HTML pages and handle the main layout and information presentation.
- Video-production skills, with two variants: Supply dynamic assets when a presentation has many slides or dense content, supplementing what static images can convey.
- Content orchestration agent: Operate at the start of the pipeline to aggregate, reorganize, and filter the source materials.
The scheduling logic can be summarized as follows:
Source materials|vOrchestration agent: create plan and outline|vAre video assets needed?|+-- No --> Render with HTML slide-generation skills|+-- Yes --> Produce clips with video skills--> Integrate clips into the HTML pages
The orchestration agent determines the content structure before the workflow proceeds to rendering or media production.
5. Implementation Principles
Several engineering principles make this separation practical:
- Separate planning from presentation output: Keep decisions about what to communicate distinct from what appears on the page. This is the foundation for eliminating layout noise.
- Validate asset proportions before rendering: Check image aspect ratios to avoid stretched or distorted visuals.
- Upgrade media only when needed: Trigger video supplementation when slide count and information density exceed the workflow’s thresholds, rather than relying entirely on static images.
- Use a reusable orchestration contract: Treat the structured outline as the contract between planning and generation. Either layer can then be replaced without disrupting the overall workflow.
6. Results and Takeaways
An AST-based content-filtering layer, combined with a coordinated team of generation skills, addresses three recurring problems: noisy output, limited media variety, and outlines that mechanically follow source materials.
The resulting presentations are better suited to live delivery. Their structure follows changes in audience understanding, their pages remain clean, and their media can carry information more effectively. In this workflow, those changes also substantially reduce repeated revisions.
The broader lesson is the separation between orchestration and generation. A dedicated layer decides what the audience needs and how to organize it; downstream skills turn that structure into the final presentation. The same approach can be applied to other workflows that use AI to generate structured content.
