Pre-requisites (not covered here)

  • Pre-configured Integrations of Google Drive and Google Slides to be activated in your workspace settings.

  • A template presentation with variables set inside (text to replace).

Steps

You can also use our step templates to create the required steps

Copy the Presentation

Method: POST

URL: https://www.googleapis.com/drive/v3/files/<SLIDES_ID>/copy/

Preconfigured Integration: Google Drive

Headers:

Key           Value
Content-Type application/json

Name          Value
id $.id

Body: Use this body if you want to control the filename and where to place the copy. By default, the copy will be placed in the same folder as the original file.

{"name": "insert_name_here", "parents": ["insert_folder_id_here"]}

Replace text in the newly created document

Method: POST

URL: https://slides.googleapis.com/v1/presentations/<SLIDES_ID>:batchUpdate

Preconfigured Integration: Google Slides

Headers:

Key           Value
Content-Type application/json

Example body with 2 replaced variables in the document:

{
"requests": [{
"replaceAllText": {
"containsText": {
"text": "[TITLE]"
},
"replaceText": "{{instance_name}}"
}
},{
"replaceAllText": {
"containsText": {
"text": "[CLIENT]"
},
"replaceText": "Company GmbH"
}
}]
}

The text to replace in the Slides, can be taken from Data reference of previous steps actions.

Did this answer your question?