Microsoft PowerPoint 365
The robomotion powerpoint365 CLI connects to Microsoft PowerPoint 365 via the Graph API for presentation management. It creates presentations from templates, replaces text and images in slides, duplicates slides, manages slide content, and exports to PDF — ideal for automated presentation generation.
When to use
- Create presentations from templates in OneDrive/SharePoint
- Replace text and images in slides for automated generation
- Duplicate slides and manage presentation structure
- Export presentations to PDF
Prerequisites
robomotionCLI installed- Package installed:
robomotion install powerpoint365 - Microsoft 365 OAuth2 credentials configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install powerpoint365 - Connect with session:
robomotion powerpoint365 pptx_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion powerpoint365 pptx_create_from_template --client-id "<client-id>" --template-path <tmpl> --session-id "<session-id>" --output json - Disconnect when done:
robomotion powerpoint365 pptx_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion powerpoint365 open_presentation --file-path --output jsonOpens a PowerPoint 365 presentation and returns a presentation ID for use in other nodesrobomotion powerpoint365 close_presentation --presentation-id --output jsonCloses an open PowerPoint presentation and releases resourcesrobomotion powerpoint365 save_presentation --presentation-id --output jsonSaves all changes made to the presentation back to OneDrive/SharePointrobomotion powerpoint365 list_presentations --folder-path --output jsonLists PowerPoint presentations in a specified folderrobomotion powerpoint365 create_presentation --file-path --output jsonCreates a new PowerPoint presentation at the specified pathrobomotion powerpoint365 delete_presentation --file-path --output jsonDeletes a PowerPoint presentation (moves to recycle bin)robomotion powerpoint365 copy_presentation --source-path --destination-path --output jsonCopies a PowerPoint presentation from source path to destination pathrobomotion powerpoint365 download_presentation --remote-file-path --local-file-path [--format] --output jsonDownloads a PowerPoint presentation to local disk in PPTX or PDF formatrobomotion powerpoint365 upload_presentation --local-file-path --remote-file-path --output jsonUploads a local presentation file to OneDriverobomotion powerpoint365 replace_text --presentation-id --replacements --output jsonReplaces text placeholders across all slides from a key-value maprobomotion powerpoint365 replace_image --presentation-id --placeholder-name --new-image --output jsonReplaces an image in the presentation by its placeholder name or alt text. The new image inherits the original's size and position
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)