Scenarios and goals
A typical task is to generate a well-structured, visually consistent PPTX file from source materials or a given topic, which users can continue editing in Microsoft PowerPoint or WPS Office. The official PPT Assistant focuses on three goals:- Grounded content: Use source materials first; when none are provided, gather information with built-in search; for data-driven tasks, call data plugins to fetch data;
- Editable file output: Generate a natively editable PPTX (text boxes, tables, and native charts) by default rather than slide images or web screenshots;
- Programmatic retrieval: Write files to an agreed directory so the client can retrieve them without anyone entering the sandbox to look for files.
Design approach
The official PPT Assistant combines a model, a system prompt, skills, plugins, and the default built-in toolset, without declaringtools or mcp_servers. The sections below explain each part and when to adjust it.
Model: prioritize long context and instruction following
The official agent useskimi-k3.1-pro. Presentation tasks must process full source documents, skill instructions, and layout constraints at the same time, and generate files strictly according to the skill’s rules, placing high demands on long-context handling, instruction following, and structured generation.
System prompt: four reusable conventions
The official system prompt encodes four core conventions that also apply to other artifact-producing agents:- Two-dimensional skill system: Skills fall into two categories—capability (methodology) skills, which determine how work is done (such as deep research), and artifact skills, which determine the output format (such as presentations, documents, or spreadsheets). When a task uses both, research and plan with the capability skill first, then produce the deliverable according to the artifact skill; if the two conflict, the artifact skill’s technical constraints take precedence.
- Progressive loading: Do not pre-read every skill’s instructions. Read only the
SKILL.mdfor the domain relevant to the task, keeping multiple skill manuals from filling the context window and driving up token costs. - Output contract: Write all output files to the workspace
output/directory (/mnt/agents/output/inside the sandbox) and list each one by relative path in the final reply (for example,output/industry_analysis.pptx). Clients can list this directory and retrieve the files, matching the session file APIs described in Files. - Communication style: Reply only with what was produced and where the files are located, without listing the commands or libraries used along the way.
Skills: artifact skills define the output format
The official agent currently attaches the presentation artifact skillha-slides-pptx. This skill defines slide structure, layout rules, and PPTX generation, producing natively editable PPTX slides rather than full-page images. Adjust skills as needed:
- Choose the skill by output type: use a document skill for Word reports and a spreadsheet skill for data tables;
- Add a capability skill, such as deep research, when the task requires a specific research method;
- For general information gathering, no extra skill is needed—the platform’s built-in search tools are sufficient.
skill_id. Omitting version pins the latest version available at write time; specifying an exact version pins that version; explicitly passing "latest" retains the literal value and re-resolves it whenever the agent is read or awakened. See Skills for details. Skills attached to official agents evolve with platform updates; refer to the current configuration returned by GET /v1/agents.
Plugins: swap data sources by industry
Data-driven presentations get their data from plugins. Finance is a common presentation scenario, so the official agent comes preconfigured with financial data plugins covering market quotes, financial statements, and corporate disclosures. When building your own agent, select data plugins for your industry and combine multiple plugins as needed. Plugins package MCP servers and bundled skills together: select them in the Console or declare them in the create request, and they take effect without per-item configuration. Some data plugins require authorization or access credentials. Credentials are not stored in the agent configuration; instead, inject them at runtime through Vaults. See Plugins for how to reference plugins and how versions are pinned.Tools: use the default built-in toolset
The official agent does not declaretools, so the platform loads the default built-in toolset. File read/write, command execution, and web search in the cloud sandbox work out of the box, so there is no need to declare tools or mcp_servers. Connect an MCP server only when you need capabilities outside the platform; see Configure MCP Servers.
Starter template
Below is a minimal runnable configuration based on the system prompt, skill, and plugin combination above. It is not a verbatim copy of the official configuration; refer toGET /v1/agents for the official agent’s current configuration.
Create the agent:
id from the response as AGENT_ID. Adjust the following fields to fit your needs:
Resource preparation
- Execution environment: Create a general-purpose cloud sandbox environment by passing
{"type": "cloud"}forconfigto use default values for all other settings; see Quickstart. Presentation generation requires no custom dependencies or network configuration. - Source materials (optional, recommended): Upload data or text files via
POST /v1/filesto obtain afile_id, then mount them inresourceswhen creating the session. Files appear as read-only copies under/mnt/agents/upload/in the sandbox. Source materials improve the accuracy and relevance of the presentation; see Files. - Credentials (optional): If your data plugins require authorization, configure credentials in Vaults ahead of time for automatic runtime injection; see Vaults.
Run with mounted source materials
Quickstart covers the full flow of selecting an agent, creating an environment and session, subscribing to the event stream, sending messages, and retrieving files. This section adds the steps for working with source materials. First upload the source file and save theid from the response as FILE_ID. The /v1/files* endpoints select the API version used in this documentation through the kimi-api-version: 2026-09-01-beta header; omitting it falls back to legacy behavior (such as returning HTTP 200 instead of 201 on upload), so always include it:
resources when creating the session; if you have no source materials, omit resources:
AGENT_ID is the ID of the official PPT Assistant or your custom agent, and ENVIRONMENT_ID is the execution environment ID. Save the session id from the response as SESSION_ID, then subscribe to the event stream and submit the task (see Quickstart for subscription and message formats):
idle, the finished deck delivered by the agent is registered as an artifact. List the session’s artifacts, locate the generated PPTX, and save its id:
id:
GET /v1/sessions/$SESSION_ID/filesystem and the prefix parameter, then download via filesystem/raw using the file entry’s path; see Files.
Monitoring runs
You can monitor task progress through the event stream. For a typical presentation task, watch these signals:session.status: A transition fromidletorunningmeans the task has started; a return toidlemeans the turn is complete and files are ready to retrieve.agent.thinking: Shows task planning, including the order in which source materials are read, research steps, outline structure, and slide content. If the outline goes in the wrong direction, cancel the session at this stage and submit a clearer prompt.agent.tool_use/agent.tool_result: Show which data plugins or search tools the agent called and the data definitions used. When data looks wrong, check the selected data source first.agent.message: The final reply lists relative paths underoutput/as required by the output contract. Clients can parse this list, but for reliability we recommend retrieving finished files directly through the artifacts API (GET /v1/artifacts?session_id=...).session.error: Emitted when the task fails, with the error type and message.
Write clear task prompts
The task prompt is the biggest factor in presentation quality. Follow these four principles.1. Provide source materials first
Upload data or text files, mount them inresources when creating the session, and then submit the task. Source materials improve content accuracy and relevance.
- Recommended: upload a financial-report spreadsheet and ask for “a quarterly business review presentation based on the attached data”;
- Without source materials, you can provide only a topic and let the agent gather information with built-in search. This covers broader ground but takes longer, and the content may be less tailored than with your own materials.
2. Specify slide count, style, and audience
Leave other layout details to the presentation skill’s defaults so constraints do not conflict.Example: “Create a 12-slide presentation on the renewable energy industry in a clean business style with a dark blue primary color, for an investment committee.”
3. Data-driven decks: specify the data source
If the agent has data plugins attached, you can name the data source directly in the prompt without preparing data yourself.Example: “Use the financial data plugins to pull the last four quarters of financial reports for a given company and create a fundamental analysis presentation.”
4. Require an editable format
Example: “Deliver a .pptx file in which all elements are editable, not slide images.”The presentation skill generates natively editable PPTX elements (text boxes, tables, and native charts) by default. Stating the editable-format requirement explicitly in the prompt reduces the risk of getting full-slide images. When you request revisions in the same session later, the new version is still written to
output/; list the directory again and retrieve the updated file.
Going further
- Batch production: Create separate sessions for each presentation task and run them concurrently, retrieving outputs per session so runs do not interfere with one another. Sessions are isolated from one another.
- Embed in your own system: Integrate approval and preview interfaces into your own business dashboard while the agent only generates PPTX files. Your business system subscribes to the event stream and retrieves files via the
output/convention, so end users never need to interact with the agent directly. - Build custom variants: Adapt the starter template and field table above: edit the system prompt to enforce company templates and content rules, adjust output formats through
skills, and match industry data sources throughplugins. - Human review before publishing: For external-facing content such as financial or brand materials, add a human review step in your own system. After your business system receives the files from the event stream, route them for human approval before publishing.
Next steps
Run the official PPT Assistant
Walk through a complete call with the official PPT Assistant from scratch.
Inspect presentation events
Subscribe to streams, resume after disconnects, and reconcile incremental events.
Upload source materials
Upload source files, mount them to sessions, and retrieve output files.