Integrate with Google Slides

Using this integration, you can copy a Google Slides presentation stored on Google Drive and fill it out with your data.

Before you begin

  • Connect Google Drive and Google Slides directly in Next Matter. See About integrations
  • Have your slides ID handy. To get the ID, open the presentation in Google Slides and extract the presentation ID from the URL in the browser's address bar.
  • Check the required scopes to learn more about which data is shared between the apps.
  • Understand how data references work. See Use data references. This will help you use the captured data in the workflow steps.

🚧

Good to know: Check out our ready-made templates available when you add a step and select Templates > 3rd party templates. You can use the templates to create a set of pre-configured steps.
Need a specific template? Click the Contact us button in the top right of the page and let us know.

Copy and fill in the presentation

Copy the Google Slides presentation

  1. Create a step in Integration > Custom integration with the following settings:
  • Method: POST
  • URL: https://www.googleapis.com/drive/v3/files/SLIDES_ID/copy/
  • Headers: Content-type: application/json
  • Body: Fill in 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. Your body might look like the following:
    {"name": "MY_FILENAME", "parents": ["MY_FOLDER_ID"]}
  1. In Authorization, select Google Drive.
  2. In the Settings, click + Add a variable.
  3. Enter the following variable values

Name: id

Value: $.id

  1. Save your changes.

Replace text in the newly created document

  1. Create a step in Integration > Custom integration with the following settings:
  • Authorization: Google Slides.
  • Method: POST
  • URL: https://slides.googleapis.com/v1/presentations/SLIDES_ID:batchUpdate
    Tip: The slides ID in this call can be replaced with the slides ID data reference from the previous step.
  • Headers: Content-type: application/json
  • Body: Fill in with the variable and the data reference that should replace the original. You can take the reference from the previous steps. For example, if you're adapting the deck for a new client, there can be a proceeding step with an input form field to enter the new client's name.

In the following example, 2 bits of text have been replaced.

{
    "requests": [{
        "replaceAllText": {
        "containsText": {
            "text": "OLD_TITLE"
        },
        "replaceText": "{{instance_name}}"
        }    
    },{
        "replaceAllText": {
        "containsText": {
            "text": "OLD_CLIENT"
        },
        "replaceText": "Company GmbH"
        }    
    }]
}
  1. Save your changes.

Tip: You might also export the file to the PDF format by calling https://docs.google.com/presentation/d/SLIDES_ID/export?format=pdf