Use this powerful n8n workflow to dynamically replace images in Google Slides via API requests. Automate presentation updates using a custom n8n trigger and Google Slides API calls.
Download this n8n workflow template and start using it instantly.
Marketing agencies automating pitch deck generation.
Developers needing an easy API layer for Google Workspace automation.
Anyone utilizing n8n templates for dynamic content creation.
Users seeking a reliable n8n node setup for complex Google Slides manipulation.
Managing vast numbers of presentations or updating recurring elements like client logos or campaign visuals manually can be extremely tedious. This specific n8n workflow solves this by exposing a simple, reliable API endpoint. It allows you to trigger an update from any external application, replacing specific images within a Google Slides presentation based on a unique key identifier (stored in the image's Alt Text).
This clever n8n node structure combines API requests and custom code logic to ensure precision. Instead of replacing all images, it specifically targets elements matching your defined key, making this n8n template highly flexible for scaled automation. This is a powerful demonstration of how the n8n trigger system can create custom services.
This automation starts with a dedicated n8n trigger. The step-by-step process ensures data integrity and precise execution:
/replace-image-in-slide. The request body must contain the presentationid, the unique imagekey (Alt Text), and the imageurl for the replacement.presentationid, imagekey, imageurl) are present. If any are missing, the workflow terminates, returning a 500 error via the 'Error Missing Fields' node.imagekey. It extracts the Google Slides objectId for every matching image, preparing the data for the next step.objectIds. It uses the Google Slides batchUpdate API method to replace the existing image with the new imageurl using a CENTER_CROP method.To deploy this custom n8n workflow, follow these steps:
image_key sent in your POST request. Webhook (n8n Trigger):
Function: Serves as the initiation point, listening for external POST requests on the path /replace-image-in-slide.
Key Configuration: Configured to wait for a response node (responseMode: responseNode).
Check if all params are provided (If n8n node):
Function: Implements core flow control, ensuring the request body contains presentationid, imagekey, and imageurl before proceeding.
Key Configuration: Uses 'exists' operation checks on the input body fields.
Retrieve All Slide Elements (HTTP Request n8n node):
Function: Makes the initial API call to the Google Slides API using the provided presentationid to fetch the complete JSON structure of the deck.
Key Configuration: Uses Google Slides OAuth2 authentication.
Retrieve matching Images ObjectIds (Code n8n node):
Function: This critical n8n node contains JavaScript logic to filter the returned slide data. It identifies elements that are images and whose Alt Text matches the imagekey from the n8n trigger input.
Key Configuration: Filters data using flatMap and returns an array of matching objectIds.
Replace Images (HTTP Request n8n node):
Function: Executes the Google Slides batchUpdate API call, iterating over the list of objectIds to replace the old image with the new URL.
Key Configuration: Sends a complex JSON body containing replaceImage and updatePageElementAltText requests, dynamically interpolating objectId and imageurl.
Respond to Webhook (n8n node):
* Function: Provides the final status confirmation back to the initiating client, confirming the n8n workflow execution was successful.
Generate dynamic, Tailwind-styled HTML pages instantly from a text prompt using this advanced n8n workflow. Integrates OpenAI Structured Output for predictable UI generation.

Use this powerful n8n workflow to dynamically set your Gmail out-of-office message based on real-time Google Calendar availability, ensuring accurate replies only when you're truly unavailable.

Build a dynamic, site-aware AI assistant using this advanced n8n workflow. Integrates DeepSeek via OpenRouter, Pinecone for RAG, and Postgres for history, enabling multi-site support.

Use this dynamic n8n workflow to create resilient AI agents that automatically switch between various OpenAI LLMs based on performance or availability. Leverage custom n8n node logic for cascading models.

Build a sophisticated AI E-commerce Assistant using this advanced n8n workflow. Route customer inquiries for Shopify and WooCommerce, utilize GPT-4o and Gemini, and leverage a Pinecone RAG knowledge base.

🎉 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.







































