How to Automate Google Slides: A Comprehensive Guide to Effortless Presentations

Automating Google Slides can streamline your workflow, saving you valuable time and effort. By using automation tools, you can generate presentations more efficiently, leaving more room for creativity and other tasks. Here’s a quick guide on how to automate your Google Slides using the Google Apps Script.

Step-by-Step Tutorial for Automating Google Slides

Automating Google Slides involves using Google Apps Script, a cloud-based scripting language for light-weight application development in the G Suite platform. The following steps will guide you through the process.

Step 1: Open Google Slides

Open the Google Slides presentation you want to automate.

To start, go to your Google Slides account and open the presentation you wish to automate. If you don’t have one, you can create a new slide presentation.

Step 2: Access the Script Editor

Click on "Extensions" and then "Apps Script" to access the script editor.

The Apps Script is where you’ll write the code to automate your Google Slides. It opens in a new tab, providing a coding environment directly connected to your slides.

Step 3: Create a New Script

Click on "File" then "New" and choose "Script File."

Naming your script file helps in organizing and making it easier to identify later. You can name it something like "AutoSlides."

Step 4: Write Your Script

Write the code needed to automate tasks like adding slides, inserting images, or changing text.

For example, you can write a script to add a new slide with a title and text. Here’s a simple one:

function addSlide() {
  var presentation = SlidesApp.getActivePresentation();
  var slide = presentation.appendSlide(SlidesApp.PredefinedLayout.TITLE_AND_BODY);
  slide.getSlideById('title').setText('Automated Slide');
  slide.getSlideById('body').setText('This slide was added by a script.');

This script adds a new slide with a title and body text.

Step 5: Save and Run the Script

Click on the disk icon to save, then click on the play icon to run the script.

When you run the script, it will execute the commands written in the script, such as adding a slide or inserting text.

Step 6: Authorize the Script

Upon running, a prompt will appear asking for authorization. Click "Continue" and then "Allow."

Apps Script requires permissions to modify your Google Slides, hence the authorization. This step ensures your script runs smoothly without any hitches.

Step 7: Check Your Presentation

Return to your Google Slides presentation to see the changes made by the script.

This final step allows you to verify that the automation worked as expected. Check if the new slides or modifications were successfully applied.

Once you complete these steps, your Google Slides presentation will include the automated changes you specified. You can run the script again anytime for further tweaks or utilize it in other presentations.

Tips for Automating Google Slides

  • Start small: Begin with simple tasks like adding slides or changing text before advancing to more complex automations.
  • Reuse code: Save and reuse scripts for different presentations to save time.
  • Test frequently: Run your script after each significant change to ensure it works as expected.
  • Use comments: Comment your code for better understanding and future reference.
  • Explore tutorials: Look for online tutorials and documentation to expand your knowledge of Google Apps Script.

Frequently Asked Questions about Automating Google Slides

How do I find the Script Editor in Google Slides?

You can find it under "Extensions" > "Apps Script."

Can I automate adding images to my slides?

Yes, you can write scripts to insert images from URLs or Google Drive.

Do I need to know how to code to automate Google Slides?

Basic knowledge of JavaScript is beneficial, but many resources can help beginners.

Can I automate Google Slides from Google Sheets?

Yes, you can write scripts in Google Sheets to interact with Google Slides, such as generating slides from spreadsheet data.

Is there a limit to what can be automated?

While many aspects of Google Slides can be automated, some advanced features may require more complex coding.


  1. Open Google Slides
  2. Access the Script Editor
  3. Create a New Script
  4. Write Your Script
  5. Save and Run the Script
  6. Authorize the Script
  7. Check Your Presentation


Automating Google Slides can be a game-changer, making your workflow more efficient and freeing up time for creativity and higher-value tasks. By using Google Apps Script, you can tailor automations to your specific needs, from adding new slides to customizing content dynamically.

Don’t be afraid to experiment and expand your scripts as your confidence grows. There are endless possibilities for automation, and each step you take brings you closer to mastering this powerful tool. For further reading, check out Google’s official documentation on Apps Script, or explore community forums for real-world examples and inspiration. Happy automating!