Adding image holders {{name}} to Google Slides

:bullseye: What is your goal?

Hi folks. I used ot be able to use a text box to add an image holder to google slides so I can use automation to saerch for {{img1}} etc - now what ever I do I cant seem to find out how to get it working and showing up in make.com - any ideas? Thanks in advance

:thinking: What is the problem & what have you tried?

I have treied alt text, image file names.

In Make, Google Slides only works with real image objects, not text boxes. Insert an image on the slide, set its Alt text title to something like {{img1}}, then save and refresh the template in Make so it can pick it up.

Thanks for the reply Moid. I have set the Alt text title and it still doesnt pick it up in Make after refreshing it

Hey there,

I’ve completely given up on trying to use tags for images in templates and switched to Make an API call module and replacing a placeholder image instead.

thanks for that. It worked a few months ago but somethings changed. the issue with that in my scenario is that prior to that we replicate a google slide and make a new one - not sure if i can tag in an api call to that.

Yeah, you can create a new slide from a template, then make an API call to change the placeholder image on the slide with the one you want.

Thanks Stoyan - new to me. I assume I would use page object id like in the image but how would i pick up the {{img}} -

any pointers would be awesome and thanks so much for your help

You will need to find the object ID from the page you just created and then replace it with the image you want.

The body was something like:

requests.append({
                'replaceImage': {
                    'imageObjectId': slide_image_id,
                    'imageReplaceMethod': 'CENTER_INSIDE',
                    'url': f'https://drive.google.com/thumbnail?sz=w1000&id={drive_file["id"]}'
                }
            })

But don;t copy paste this one, check the API documentation for the correct syntax.

1 Like

thanks for that - is that google slide make an api module? if so how where would I find the documents api? thanks so much in advance

Yes and here. You can also find plenty of tutorials online, you can adapt any that use curl to the make an api call module.