Replace Text

google_slides.replace_text
ActionBusiness appsconnection required

Calls batchUpdate with one replaceAllText request per placeholder.

Replace placeholder text throughout a presentation.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Slides
Secret shape
{"client_id", "client_secret", "refresh_token"}
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
presentation_id
The deck to write to. Supports {{ }}.
stringYes———
replacements
What to swap: one entry per placeholder token in the deck. Accepts a JSON string or an object from an upstream step.
objectYes—≥ 1 characters{"{{revenue}}":"$12k","{{week}}":"W36"}
match_case
Match the placeholder case-sensitively (default true).
booleanNotrue——
page_object_ids
Optional. Restrict the swap to these slide object ids (comma-separated, or an array from google_slides.get_presentation).
stringNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "match_case": true,
  "replacements": {
    "{{revenue}}": "$12k",
    "{{week}}": "W36"
  }
}

Output

One shape.

result

FieldTypeExample
ok
boolean—
presentation_id
The deck that was written to.
string—
url
Editor link to the deck.
string—
occurrences_changed
Total replacements made.
number—
replacements
Each: {text, occurrences} — how often each placeholder was found.
array—
unmatched
Placeholders that matched nothing. Non-empty means the deck still carries those tokens — check it before mailing the link.
array—
revision_id
The deck's revision after the write.
string—
{
  "occurrences_changed": 0,
  "ok": false,
  "presentation_id": "",
  "replacements": [],
  "revision_id": "",
  "unmatched": [],
  "url": ""
}

See Replace Text run in a workflow.

In a technical demo we add the Google Slides connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.