π¬ Dynamically replace images in Google Slides via API
β‘ 3,923 views Β· π¬ Document Extraction & Analysis
Description
π Do you want to master AI automation, so you can save time and build cool stuff?
Iβve created a welcoming Skool community for non-technical yet resourceful learners.
ππ» Join the AI Atelier ππ»
This workflow exposes an API endpoint that lets you dynamically replace an image in Google Slides, perfect for automating deck presentations like updating backgrounds or client logos.
Hereβs how to get started:
Step 1: Set Up a Key Identifier in Google Slides
Add a unique key identifier to the images you want to replace.
- Click on the image.
- Go to Format Options and then Alt Text.
- Enter your unique identifier, like
client_logoorbackground.
Step 2: Use a POST Request to Update the Image
Send a POST request to the workflow endpoint with the following parameters in the body:
presentation_id: The ID of your Google Slides presentation. You can find it in the URL of your Google presentation:https://docs.google.com/presentation/d/<this-part>/edit)image_key: The unique identifier you created.image_url: The URL of the new image.
Thatβs it! The specified image in your Google Slides presentation will be replaced with the new one from the provided URL.
This workflow is designed to be flexible, allowing you to use the same identifier across multiple slides and presentations. I hope it streamlines your slide automation process!
Example Curl Request to execute:
curl --location 'https://workflow.url' \
--form 'presentation_id="google-presentation-id"' \
--form 'image_key="background"' \
--form 'image_url="https://picsum.photos/536/354"'
Happy automating! The n8Ninja π₯·
π Nodes Used
HTTP Request, Webhook
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File