Multi-Agent Collaboration on Mobile for Automated PPT Generation
This article presents a practical architecture for multi-agent collaboration on mobile devices to automate presentation (PPT) generation. It explains why text generation alone does not guarantee deliverable slides, then walks through a layered design covering access, orchestration, execution, capability, and governance layers. Key topics include a controllable layout pipeline with semantic outlines, JSON Schema-based layout binding, rendering self-checks, and fine-grained manual editing; voice interaction using streaming recognition and slot filling; engineering constraints for parallel agents such as context consistency, conflict merging, failure isolation, and cost control; skill-based integration with least-privilege permission governance; and observability metrics for task, quality, and cost evaluation. The article closes with a phased adoption recommendation starting from a single scenario with fixed templates.
1. Background: Why “Generating” Is Not the Same as “Delivering”
In mobile work scenarios, content production needs such as reports, research papers, and literature reviews share three common challenges.
The first is the mismatch between intent and layout. Most generative solutions only fill in text while the layout is determined by a fixed template, which leads to “the content is right but the structure is wrong,” forcing users to rework slides page by page. The real solution is to move layout selection forward into an explicit configuration step, making the template an adjustable parameter rather than an implicit constraint.
The second is that complex tasks cannot be completed within a single machine or a single session. An industry research report may involve more than ten types of subtasks, including information retrieval, data cleaning, viewpoint summarization, chart organization, and review. Executing them serially incurs extremely high time costs.
The third is the high cost of integrating capabilities. What users truly need is not “a model” but embedding the model into existing workflows (instant messaging, document collaboration, scheduling, and approvals), which requires tool invocation to have standardized descriptions and controllable authorization.
2. Overall Architecture: From Single-Turn Dialogue to Multi-Agent Orchestration
A reusable layered design is as follows:
- Access layer: the mobile client, responsible for voice capture, streaming output, and interaction state presentation.
- Orchestration layer: a task planner breaks the goal into a set of executable steps, forming a directed acyclic graph (DAG) and marking dependencies and parallel branches.
- Execution layer: multiple specialized agents (retrieval, structured extraction, writing, layout, review) work in parallel and exchange intermediate artifacts through a shared blackboard.
- Capability layer: a tool registry with “skills” as units, where each skill has a name, input schema, output schema, and timeout and retry policies.
- Governance layer: identity and permissions, quotas and rate limiting, logging and auditing, and cost and observability.
An illustrative task description structure (pseudocode, expressing orchestration semantics only):
plan = {"goal": "Produce a 20-page industry trend report","steps": [{"id": "s1", "agent": "retriever", "parallel": True},{"id": "s2", "agent": "extractor", "depends_on": ["s1"]},{"id": "s3", "agent": "writer", "depends_on": ["s2"]},{"id": "s4", "agent": "layout", "depends_on": ["s3"],"params": {"template": "business", "theme": "minimal"}},{"id": "s5", "agent": "reviewer", "depends_on": ["s4"]}],"max_parallel": 100,"max_steps": 1500}
The key point is that the parallelism level and step limit are resource parameters of the orchestrator and must match the backend quota, rather than being larger is always better. In practice, it is recommended to set the limit dynamically based on the “number of parallel branches without dependencies” and to configure a timeout and fallback path for each single step.
3. A Controllable-Layout PPT Generation Pipeline
Splitting presentation generation into four stages can significantly reduce the rework rate.
1) Semantic outline: first produce a hierarchical outline (sections, key points, supporting evidence), with each node carrying an “information density” label to avoid a top-heavy structure.
2) Layout binding: map outline nodes to layout slots (title page, three-column comparison, timeline, data chart page). Layouts are described with JSON Schema for easy validation.
{"slide": {"layout": "three_column_compare","slots": {"title": {"max_chars": 24},"columns": {"count": 3, "items_per_column": 4},"footnote": {"max_chars": 60}}}}
3) Rendering and self-check: after rendering, run automated checks, including text overflow, font size hierarchy, contrast, and alignment between charts and body text; if a check fails, fall back to re-layout at the previous stage rather than outputting directly.
4) Manual fine-tuning interface: expose fine-grained instructions such as “change only this page / change only the color scheme / compress only the text,” avoiding the uncertainty of full regeneration.
4. Voice Interaction: Lowering the Cost of Expressing Requirements
The voice pipeline is recommended to adopt a three-stage approach of “streaming recognition + semantic slot filling + clarifying questions.” Recognition results first fill slots (topic, page count, style, audience, duration), and missing slots are proactively queried by the system once, with at most two rounds to prevent interaction fatigue. For long requirements, first restating and confirming key points before entering generation can greatly reduce comprehension gaps. Engineering-wise, it is necessary to handle noise suppression, sentence segmentation, and punctuation restoration, and to degrade to “record first, then recognize” under weak network conditions.
5. Engineering Constraints of Multi-Agent Parallelism
Parallelism is not free and requires attention to four points:
- Context consistency: use shared artifacts plus version numbers to avoid agents continuing to reason based on outdated intermediate results.
- Conflict merging: when writing and review run in parallel, merge using a “suggest-adopt” mode while retaining traceable reasons for changes.
- Failure isolation: a single branch failure only degrades that branch, outputting placeholder content marked as to-be-filled, without blocking the overall delivery.
- Cost control: set result caching and deduplication for retrieval steps, and limit the maximum tokens and retry count for generation steps.
6. Skill-Based Integration and Permission Governance
Abstract external capabilities as “skills,” using a unified description file to declare the name, purpose, input and output, and whether user confirmation is required. When binding instant messaging or collaboration tools, follow the least-privilege principle: read-only first, secondary confirmation for write operations, masking of sensitive fields, and full-chain auditing. All invocations are recommended to go through a gateway that centrally handles authentication, rate limiting, and circuit breaking, avoiding scattering credentials across clients.
7. Observability and Quality Evaluation
Before going live, establish three categories of metrics: task-level (completion rate, average number of steps, end-to-end latency), quality-level (proportion of reworked pages, manual edit distance, factuality spot-check pass rate), and cost-level (number of invocations and resource consumption per task). Use a fixed evaluation set for regression to prevent quality drift caused by model or prompt changes.
8. Implementation Recommendations
Start from “a single scenario + fixed templates + a small number of skills,” first making layout controllability and the self-check loop solid, then gradually opening up parallelism and the number of skills. Baidu AI Cloud can provide standard support for the orchestration and governance stages above through general capabilities such as container platforms, message queues, object storage, log services, and monitoring and alerting, allowing teams to focus their energy on orchestration strategies and content quality itself.
