---
related_nodes: ["google_drive", "google_docs", "google_sheets"]
---

# Google Slides

Create, read, edit and trash Google Slides presentations from workflows.

## When to Use

- Building a status or report deck from workflow results
- Reading a presentation's slide text and speaker notes for an AI step to summarise or answer from
- Filling a template deck by replacing placeholders such as `[client]`
- Adding, duplicating or removing slides as a deck is assembled
- Placing charts or pictures from a URL on a slide
- Styling, positioning shapes, or building tables with Google's own edit requests

## How It Works

The Google Slides node calls the Google Slides API; delete goes through Google Drive, which is the only API that removes files. It supports:

- **Create**: Create a presentation with one title slide
- **Get**: Read the presentation's full structure, with the object ids edits need
- **ReadText**: Read each slide's text and speaker notes
- **AddSlide**: Add a slide on a predefined layout
- **DuplicateSlide**: Copy a slide, placing the copy after the original
- **DeleteSlide**: Remove a slide from the presentation
- **ReplaceText**: Replace every occurrence of a text
- **InsertImage**: Place an image from a URL on a slide
- **BatchUpdate**: Apply a list of Google Slides API edit requests in one call
- **Delete**: Move the presentation to the Drive trash

Before using this node, add a Google OAuth connection in **Settings → Connections**.

## Configuration

**connection** - Google connection to use
- Select from Settings → Connections
- Agents should call `list_connections` and set `connection` to the returned `id` ULID
- Use `name` only for display; node configuration needs the `id`
- Must be a "google" connection type holding the `drive` scope, which covers Google Slides; a call it lacks the scope for fails with an error asking to reconnect the account
- Required

Validation notes:
- The node validates that `connection` is selected when you save.
- Operation fields are evaluated at runtime after interpolation; a blank required field, including a blank presentation or slide ID, fails the run before Google is called.

**operation** - Operation to perform
- `create`: Create a presentation
- `get`: Read the presentation's structure
- `read_text`: Read each slide's text and notes
- `add_slide`: Add a slide
- `duplicate_slide`: Duplicate a slide
- `delete_slide`: Remove a slide
- `replace_text`: Replace every occurrence of a text
- `insert_image`: Place an image on a slide
- `batch_update`: Apply Google Slides edit requests
- `delete`: Move the presentation to the trash

Slides, shapes and images are addressed by object id. Read slide ids with `read_text` (`slideId`) or `get` (`slides[].objectId`); add, duplicate and insert return the id of what they made.

### Operation: Create

**title** - Title of the new presentation
- Interpolatable from input
- Required

The presentation is created in the root of the user's Drive. Move it into a folder with the Google Drive node's `move_file`, using the returned `presentationId` as the file ID.

### Operation: Get

**presentation_id** - Presentation ID
- The ID in the presentation's URL (`docs.google.com/presentation/d/<id>/edit`), or a Drive file ID
- Interpolatable from input
- Required

### Operation: Read Text

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

### Operation: Add Slide

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**insertion_index** - Position of the new slide
- A whole number; 0 puts it first
- Empty adds it at the end
- Interpolatable from input

**layout** - Predefined layout of the new slide
- One of `BLANK`, `CAPTION_ONLY`, `TITLE`, `TITLE_AND_BODY`, `TITLE_AND_TWO_COLUMNS`, `TITLE_ONLY`, `SECTION_HEADER`, `SECTION_TITLE_AND_DESCRIPTION`, `ONE_COLUMN_TEXT`, `MAIN_POINT`, `BIG_NUMBER`
- Default: `BLANK`

### Operation: Duplicate Slide

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**slide_id** - Object ID of the slide to copy
- Interpolatable from input
- Required

### Operation: Delete Slide

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**slide_id** - Object ID of the slide to remove
- Interpolatable from input
- Required

The slide is removed for good; the presentation stays. Restore it from the presentation's version history if needed.

### Operation: Replace Text

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**find** - Text to find
- Interpolatable from input
- Required

**replace_with** - Replacement text
- Empty removes every match
- Interpolatable from input

**match_case** - Match case exactly
- Default: `false`

**slide_ids** - Object IDs of the slides to search
- Default: empty, which searches every slide

Text in shapes and tables is replaced; speaker notes are not.

### Operation: Insert Image

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**slide_id** - Object ID of the slide the image goes on
- Interpolatable from input
- Required

**image_url** - URL of the image
- A PNG, JPEG or GIF under 50 MB that Google can fetch without signing in
- Interpolatable from input
- Required

The image is placed at its own size in the slide's top-left corner. Move or resize it with a Batch Update `updatePageElementTransform` request on the returned `imageId`.

### Operation: Batch Update

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

**requests** - JSON array of Google Slides API `Request` objects
- Applied in order, all or none
- Either JSON text, or a reference such as `{{ input.requests }}` to an array an earlier node built
- See Google's [presentations.batchUpdate reference](https://developers.google.com/workspace/slides/api/reference/rest/v1/presentations/request) for every request type
- Required

### Operation: Delete

**presentation_id** - Presentation ID
- Interpolatable from input
- Required

The presentation goes to the Drive trash and can be restored from there for 30 days.

### Retry

**retry** - Whether each Slides request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](http_get.md#retries) for how attempts and waits work. Get and Read Text are reads, sent again freely. Every other operation is a write, sent again only when Google refused it before acting: the connection never opened, or Google answered 425 or 429. The `google_slides` tool group takes the same setting.

## Inputs

**input** - Any input
- Used to trigger the node
- Data can be accessed for template interpolation
- Required

## Outputs

**output** - Google Slides result

For Create:
```json
{
  "presentationId": "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789",
  "title": "Q3 Review",
  "slides": [{ "objectId": "p" }]
}
```

For Get: Google's full `Presentation` resource (`presentationId`, `title`, `slides` with their `pageElements`, `layouts`, `masters` and more).

For ReadText:
```json
{
  "presentationId": "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789",
  "title": "Q3 Review",
  "slides": [
    {
      "slideId": "p",
      "text": "Q3 Review\nRevenue up 12%",
      "notes": "Open with the pipeline numbers"
    }
  ]
}
```

Each slide's `text` holds its shapes, tables and grouped elements in Google's order, one line per paragraph, with table cells separated by tabs.

For AddSlide and DuplicateSlide:
```json
{ "slideId": "SLIDES_API1234567_0" }
```

For DeleteSlide:
```json
{ "presentationId": "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789", "slideId": "p3" }
```

For ReplaceText:
```json
{ "occurrencesChanged": 3 }
```

For InsertImage:
```json
{ "imageId": "SLIDES_API1234567_1", "slideId": "p" }
```

For BatchUpdate, one reply per request sent, as Google returns them (empty for requests that return nothing):
```json
{
  "presentationId": "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789",
  "replies": [{ "createShape": { "objectId": "box1" } }, {}]
}
```

For Delete: the trashed Drive file (`id`, `name`, `mimeType`, `trashed: true`, and the other file fields the Google Drive node returns).

## Examples

### Fill a Template Deck

Copy the template with the Google Drive node's `copy_file` first, so the original stays untouched, then:

```json
{
  "google_slides": {
    "connection": "01JABCDEF0123456789ABCDEFG",
    "operation": {
      "op": "replace_text",
      "presentation_id": { "content": "{{ copy.output.id }}" },
      "find": { "content": "[client]" },
      "replace_with": { "content": "{{ input.client_name }}" },
      "match_case": true
    }
  }
}
```

### Add a Slide at the End

```json
{
  "google_slides": {
    "connection": "01JABCDEF0123456789ABCDEFG",
    "operation": {
      "op": "add_slide",
      "presentation_id": { "content": "{{ input.presentation_id }}" },
      "layout": "TITLE_AND_BODY"
    }
  }
}
```

### Put a Title in a Box

```json
{
  "google_slides": {
    "connection": "01JABCDEF0123456789ABCDEFG",
    "operation": {
      "op": "batch_update",
      "presentation_id": { "content": "{{ input.presentation_id }}" },
      "requests": { "content": "[{\"createShape\": {\"objectId\": \"headline\", \"shapeType\": \"TEXT_BOX\", \"elementProperties\": {\"pageObjectId\": \"{{ add.output.slideId }}\", \"size\": {\"width\": {\"magnitude\": 6000000, \"unit\": \"EMU\"}, \"height\": {\"magnitude\": 800000, \"unit\": \"EMU\"}}, \"transform\": {\"scaleX\": 1, \"scaleY\": 1, \"translateX\": 500000, \"translateY\": 400000, \"unit\": \"EMU\"}}}}, {\"insertText\": {\"objectId\": \"headline\", \"text\": \"Q3 at a glance\"}}]" }
    }
  }
}
```

## Agent Tools

The `google_slides` tool group gives agents the same operations as tools: `slides_create`, `slides_get`, `slides_read_text`, `slides_add_slide`, `slides_duplicate_slide`, `slides_delete_slide`, `slides_replace_text`, `slides_insert_image`, `slides_batch_update` and `slides_delete`, each prefixed with the connection's handle. Reads run freely; creates and edits, removing a slide among them, are write; `slides_delete` is delete.

`slides_get` gives an agent a bounded outline rather than the full resource, so a large deck cannot flood its context. The full `Presentation` resource comes from this node's Get or from `verdalia.api.slides` in a script.

```json
{
  "presentationId": "1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789",
  "title": "Q3 Review",
  "slideCount": 12,
  "slides": [
    {
      "slideId": "p",
      "elementCount": 3,
      "elements": [
        { "objectId": "i0", "kind": "shape", "textPreview": "Q3 Review" },
        { "objectId": "i1", "kind": "image" }
      ]
    }
  ]
}
```

The outline lists the first 50 slides and the first 20 elements of each; `slideCount` and `elementCount` count them all. `kind` is `shape`, `table`, `group`, `image`, `video`, `line`, `chart` or `other`, and `textPreview` holds the start of the element's text, up to 200 bytes, absent when it has none.

## Notes

- Object ids a batch update creates must be unique in the presentation and 5 to 50 characters long; omit `objectId` to let Google choose one.
- Sizes and positions are in EMU (914400 per inch, 12700 per point).
- A connection made before Google Slides access was requested fails with an insufficient-permission error until the account is reconnected.
