Multi-Agent Collaboration and Automated PPT Generation on Mobile: A Practical Guide
This article explores how to build a mobile intelligent office system based on multi-agent collaboration and voice-driven presentation generation. It covers a four-layer architecture, task decomposition with DAG-based orchestration, role separation and concurrency control, context management, structured intermediate representations for slides, a unified skill-calling protocol, and practical advice on performance, security, and evaluation. Readers will find implementation patterns and pseudocode they can adapt for their own mobile AI workflows.
1. Background: The Bottleneck in New Device Performance Has Shifted from Hardware to Software Orchestration
Hardware iteration keeps accelerating. The compute, memory, and network capabilities of mainstream new devices are already sufficient to support fairly complex on-device inference and real-time interaction. Yet in practice, the “smoothness” users perceive is rarely determined by hardware alone. It depends on whether the software ecosystem can organize compute into an effective task pipeline.
Take office scenarios as an example. The real pain points are usually not “I can’t find the material,” but three things: vague requirement expression, uncontrollable generation output, and the inability to run complex tasks in parallel.
Abstracted into engineering terms, these reduce to a set of problems:
- Intent uncertainty: natural-language requests contain omissions, ambiguity, and implicit constraints, so a single prompt rarely hits the target reliably.
- Insufficient generation control: structure, layout, and style lack declarable constraints, which drives up rework costs.
- Task scale exceeds a single agent’s context capacity: tasks such as literature reviews and industry research involve many sub-problems, and serial processing latency is unacceptable.
This article therefore does not focus on any specific product. Instead, it discusses a class of general capabilities: how to implement parallel multi-agent collaboration on mobile, voice-driven structured content generation, and expanding the boundary of tool invocation through a skill ecosystem.
2. Overall Architecture: A Four-Layer Decoupled Foundation for Mobile Intelligent Office
A layered design is recommended so that the interaction layer, orchestration layer, capability layer, and data layer can evolve independently.
- Interaction layer: handles voice capture, streaming recognition, semantic clarification, and result preview. The goal is to turn “chat” into a parseable form of task input.
- Orchestration layer: handles task decomposition, agent role assignment, concurrency control, and result aggregation. This is the core of the system.
- Capability layer: encapsulates atomic capabilities such as retrieval, document parsing, layout rendering, spreadsheet calculation, and external skill invocation.
- Data layer: manages session context, intermediate artifacts, template assets, and evaluation samples, supporting traceability and reproducibility.
The value of this layering is clear: when model capabilities are upgraded, only the orchestration layer’s strategy needs to be replaced; when a new external skill is added, only the capability layer’s registry needs to be extended, with no changes to the interaction protocol.
3. The Multi-Agent Cluster: From Single-Turn Q&A to Task Orchestration
3.1 Task Decomposition Strategy
Multi-agent systems are not simply concurrent invocations. A structured decomposition happens first. A common approach is to break the goal into a directed acyclic graph (DAG) with dependencies, where nodes are sub-tasks and edges are data dependencies. For example, generating an industry research report can be split into: problem definition, retrieval and evidence gathering, data cleaning, viewpoint synthesis, cross-validation, and drafting plus layout.
A schematic orchestration structure follows (pseudocode, expressing scheduling semantics only):
plan = {"goal": "Output an industry trend report","nodes": [{"id": "n1", "role": "planner", "deps": []},{"id": "n2", "role": "retriever", "deps": ["n1"]},{"id": "n3", "role": "analyst", "deps": ["n2"]},{"id": "n4", "role": "verifier", "deps": ["n3"]},{"id": "n5", "role": "writer", "deps": ["n4"]}],"max_parallel": 8}
3.2 Role Separation and Concurrency Control
Role design should follow the principle of orthogonal capabilities: the retriever only gathers evidence and annotates sources, the analyst only synthesizes and reasons, the verifier only performs consistency checks, and the writer only produces the final text. Concurrency must be throttled. Because mobile devices are affected by memory limits and network jitter, it is advisable to control concurrency with semaphores or token buckets and to apply exponential backoff retries to failed nodes.
3.3 Result Aggregation and Conflict Resolution
Outputs from multiple agents may contradict each other. Three strategies are commonly used in engineering: first, weighting by source credibility; second, structured voting (taking the majority or the highest-confidence value for the same field); third, introducing a dedicated verifier agent for a second ruling. The key is to preserve the intermediate evidence chain so that final conclusions remain traceable.
3.4 Context Governance
The place where long tasks most often fail is context bloat. A “summary compression + layered memory” approach is recommended: short-term memory holds the current sub-task’s inputs and outputs, mid-term memory holds structured key points, and long-term memory holds only conclusions and citation indexes. Content beyond the window should be recalled on demand via retrieval rather than stuffed into the prompt in full.
4. Voice-Interactive Presentation Generation: Turning Requirements into Declarable Structure
4.1 From Voice to a Structured Intermediate Representation
The value of voice input is that it lowers the cost of expression, but generating layouts directly from it is highly unstable. A more reliable path is to introduce an intermediate representation (IR): first convert speech into a structured outline, then render it into slides. An example structure:
{"title": "Quarterly Review","theme": "Clean business","slides": [{"layout": "cover", "bullets": ["Business overview", "Key metrics"]},{"layout": "two_column", "bullets": ["Problems", "Countermeasures"]},{"layout": "chart", "chart": {"type": "bar", "series": ["Q1", "Q2"]}}]}
4.2 Configurable Layouts and Templates
Templates should be abstracted as “slots + constraints”: slots describe content type and capacity limits, while constraints describe font-size ranges, color schemes, and alignment rules. Users can declare style and structure preferences before generation, and the renderer is only responsible for filling content and validating layout. This turns an “aesthetic problem” into a “constraint satisfaction problem.”
4.3 Multi-Turn Clarification
When a voice request is ambiguous, the system should proactively ask one clarifying question instead of generating blindly. A confidence threshold can trigger clarification: below the threshold, the system asks about key slots such as audience, duration, and reporting scenario; well above the threshold, it proceeds directly to generation.
5. Skill Ecosystem Integration: A Unified Tool-Calling Protocol
The key to expanding capability boundaries is standardizing external skills as tool descriptions that are registrable, authorizable, and auditable. It is recommended that each skill declare its name, input schema, output schema, permission scope, and timeout, with the orchestration layer handling unified routing.
{"name": "calendar_summary","input_schema": {"range": "string"},"output_schema": {"events": "array"},"auth_scope": ["read_calendar"],"timeout_ms": 3000}
Three points deserve particular attention in engineering: least-privilege authorization, idempotent invocation design, and human confirmation for sensitive operations. When writing to external systems, the default should be a three-step “preview, confirm, execute” flow to avoid mistakes.
6. Performance, Security, and Evaluation
Performance optimization can start from three places: first, run parallelizable sub-tasks concurrently up front; second, cache retrieval and parsing results; third, use streaming output to reduce time to first token. On security, input filtering should be applied against prompt injection, and tool-returned content should be isolated so that untrusted text is never executed as instructions.
For evaluation, layered metrics are recommended: task success rate, structural compliance rate (how well the outline matches the template), factual consistency (the proportion of verifiable citations), latency, and cost. Maintaining a fixed set of samples for regression testing helps prevent hidden degradation caused by strategy changes.
7. Recommended Implementation Roadmap
In the first phase, get “voice-to-outline plus template rendering” working end to end to quickly obtain a usable experience. In the second phase, introduce task decomposition and parallel scheduling to cover research and long-form writing. In the third phase, connect a skill registry and audit capabilities to form a governable tool ecosystem. Throughout the process, keep interfaces stable so that capabilities such as object storage, message queues, container platforms, and monitoring and alerting can be combined on demand on general cloud infrastructure such as Baidu AI Cloud, achieving elastic scaling and full-link observability.
