Skip to main content
GoogleSlidesTools enable an Agent to create, manage, and manipulate Google Slides presentations. Add slides with various layouts, insert text boxes, tables, images, and videos, read slide content, and manage slide order.

Getting Started

1

Install dependencies

2

Setup Google Cloud project

Enable the Google Slides API and Google Drive API in your Google Cloud project, then create OAuth credentials.
  1. Go To API & Service > OAuth Consent Screen
  2. Select User Type
    • Google Workspace user: select Internal
    • Otherwise: select External
  3. Fill in app details (App name, logo, support email, etc)
  4. Select Scope
    • Click Add or Remove Scope
    • Select /auth/presentations and /auth/drive.file
    • Save and continue
  5. Add Test Users
    • Click Add Users and enter the email addresses to allow during testing
    • Only these users can access the app in “Testing” mode
  6. Generate OAuth 2.0 Client ID
    • Go to Credentials > Create Credentials > OAuth Client ID
    • Select Application Type as Desktop app
    • Download the JSON file
3

Configure authentication

4

Create and run an agent

cookbook/91_tools/googleslides_tools.py

Toolkit Params

Toolkit Functions

Presentation Management

Reading Slides

Creating & Modifying Slides

Destructive Operations

These tools are disabled by default. Pass enable_delete_presentation=True or enable_delete_slide=True to enable them. You can use include_tools or exclude_tools to modify the list of tools the agent has access to. Learn more about selecting tools.

Cookbook Examples

The googleslides_tools.py cookbook demonstrates 8 scenarios:

Slide Layouts

The add_slide function supports the following Google Slides predefined layouts:

Developer Resources