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.
Detailed OAuth setup instructions
Detailed OAuth setup instructions
- Go To API & Service > OAuth Consent Screen
-
Select User Type
- Google Workspace user: select Internal
- Otherwise: select External
- Fill in app details (App name, logo, support email, etc)
-
Select Scope
- Click Add or Remove Scope
- Select
/auth/presentationsand/auth/drive.file - Save and continue
-
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
-
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
- Environment Variables
- Credentials File
- Service Account
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. Passenable_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
Thegoogleslides_tools.py cookbook demonstrates 8 scenarios:
Slide Layouts
Theadd_slide function supports the following Google Slides predefined layouts: