Automate Image Replacement in Google Slides with n8n

Struggling to manually update images across multiple Google Slides presentations? This n8n workflow provides a seamless automation to dynamically replace images by key identifiers, saving you hours on repetitive slide updates.
webhook
if
httpRequest
+2
Workflow Identifier: 1516
NODES in Use: Webhook, If, HTTP Request, Code, Respond to Webhook
Automate image replacement with n8n and HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow updates images in Google Slides automatically.
You send a simple POST request with the presentation ID, image key, and new image URL.
The workflow finds all images tagged with the given image key and replaces them with the new image.
It also updates image alt text for accessibility.
The result is faster, error-free slide image updates without manual work.


Who should use this workflow

Marketing managers or anyone who needs to update many Google Slides decks with new images often.
This helps if you have branded images tagged by unique alt text and want to update them in bulk.


Tools and services used

  • Google Slides API: Accesses and updates slide content.
  • n8n Workflow Automation: Runs the workflow to receive requests and process updates.
  • Webhook node: Receives external POST requests triggering the workflow.
  • HTTP Request node: Calls Google Slides API endpoints.
  • Code node: Filters images to update using JavaScript.
  • Respond to Webhook node: Sends response back confirming success or error.

Inputs, processing, and output

Inputs

  • Google Slides presentation_id (string) to specify which deck to update.
  • Unique image_key (string) stored in alt text describing the image to find.
  • New image_url (string) to replace matching images with.

Processing steps

  • The Webhook node receives the POST request with inputs.
  • The If node checks all required fields are present.
  • The HTTP Request node fetches all slides and their elements from Google Slides API.
  • The Code node scans slides to find images whose alt text description matches image_key.
  • Another HTTP Request node sends a batchUpdate to replace all identified images with image_url.
  • The workflow also updates alt text description for replaced images to keep accessibility correct.

Output

  • A JSON response confirms if images were replaced successfully or reports missing fields errors.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow file

  1. Inside the n8n editor, click on the menu.
  2. Choose Import from File.
  3. Select the workflow file downloaded from this page.

Step 2: Add credentials

  1. Add Google Slides OAuth2 credentials to n8n or update existing ones.
  2. Attach these credentials in all HTTP Request nodes calling Google Slides API.

Step 3: Configure the workflow

  1. Update any IDs or URLs if needed. Normally, the workflow reads these from the webhook POST body.
  2. Make sure images in your Google Slides have alt text descriptions as unique image keys.

Step 4: Test the workflow

  1. Send a POST request to the webhook URL with JSON body including presentation_id, image_key, and image_url.
  2. Check the JSON response confirms successful replacement.

Step 5: Activate for production

  1. Toggle the workflow Activate switch inside the n8n editor.
  2. Use the webhook URL in your apps or tools to automate image updates.
  3. For secure hosting, consider self-host n8n to run this workflow on your own server.

Errors and edge cases

If the workflow returns a “Missing fields.” error, it means the POST request did not include all three required fields: presentation_id, image_key, and image_url.
Check your request body for correct JSON keys and non-empty values.

If Google Slides API reports authentication errors, the Google OAuth2 credentials may be expired or misconfigured.
Reauthorize or refresh the credentials inside n8n settings.


Customization ideas

  • You can tag many images with the same image_key alt text.
    The workflow replaces all these images in one batch call.
  • Change imageReplaceMethod from CENTER_CROP to SCALE or STRETCH in the replace request JSON to change how images fit.
  • Add more requests in the batchUpdate call to also change slide text or other elements alongside images.

Summary

✓ Saves a lot of manual time updating images in Google Slides decks.
✓ Reduces errors by automating image replacements using unique alt text keys.
→ Lets you update many images across one or more presentations using one API call.
→ Gives JSON feedback for success or missing fields.


Automate image replacement with n8n and HTTP Request

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow requires a POST request body with three fields: presentation_id, image_key, and image_url.
It scans slide elements for images whose alt text description matches the provided image_key.
Reauthorize or refresh the Google Slides OAuth2 credentials configured in n8n.
Yes, by specifying different presentation_id values in separate POST requests.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.