Skip to content
QuireKit
PPTX Editor docs
v0.3.1

AI assistant

Add the AI assistant that writes, revises and redesigns slides, and choose how it connects to models.

The AI assistant is a side panel: the user describes the presentation, the assistant drafts an outline and, once it is confirmed, builds the slides; it also revises existing slides, unifies their style, adds pictures and checks layouts. Every change the assistant makes enters the undo history, and changes to existing content are shown for review first.

Install

bash

These are optional peer dependencies of @quirekit/pptx-editor; skip them when you do not use AI.

Add the assistant

ts

storage keeps the user's model settings, selected model and authorization mode. Call ai.destroy() when the page no longer needs the assistant.

Connect to models

ModeConfigurationSuits
Browser directNo connection options; users enter a provider API key in the assistant settingsPersonal use, internal trials
Your model servicedefaultHostUrl: 'https://ai.example.com', with getHeaders for credentials when neededKeys stay on the server, central billing and audit
App-managed modelsconnection: () => resolveQuireAiModelConnection({ hostUrl, getHeaders })Users do not configure models themselves

In browser direct mode, keys stay in the user's browser storage; never put keys in front-end code. Your own model service provides the QuireKit AI Host interface (model catalog and message stream), which the Host runtime of @quirekit/ai-orchestrator-pi calls.

Pictures

The assistant can generate pictures from a description. By default it uses a connected provider that generates pictures; the host can provide its own picture service instead:

ts

With pictures: false the assistant uses icons and shapes only.

Other options

  • defaultOpen: true: opens the assistant when the editor mounts.
  • providers: the providers offered in the settings; the built-in ones by default.
  • skills: the design knowledge the assistant reads; the built-in design method and scene skills by default.
  • documentKey: false: keeps one unsaved conversation instead of storing conversations per deck.
QuireKit · © 2026 上海轻书远行信息科技有限公司QuireKit · Core, plugins, Classic, PPTX Editor and Sheets docs