Google Docs

Create Google Doc From Template

Create a Google Doc by copying a template and replacing its placeholders.

1 creditRuns in your Google Docs account

Endpoint

Parameters

NameTypeRequiredNote
identifieraccount · requiredaccountrequired—
templateIdstring · requiredstringrequired

The document to copy. Pick one, or paste a Google Docs link or document ID.

titlestring · optionalstringoptional

Name for the new document. Leave blank for Google's "Copy of …".

folderIdstring · optionalstringoptional

Where to put the new document. Default: the template's folder.

placeholdersobject · optionalobjectoptional

Placeholder to value, as JSON: {"name": "Dana", "company": "Acme"}. A bare key is matched as {{name}}.

matchCaseboolean · optionalbooleanoptional

Match placeholder case exactly.

Default: true

ifTitleExistsstring · optionalstringoptional

Reuse keeps a retried run from leaving a second copy behind.

One of: create (Copy the template again), use_existing (Use the existing document)

Default: create

Response schema

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Open in Google Docs"
    },
    "title": {
      "type": "string"
    },
    "created": {
      "type": "boolean",
      "description": "False when an existing document was reused"
    },
    "folderId": {
      "type": "string"
    },
    "documentId": {
      "type": "string"
    },
    "replacements": {
      "type": "object",
      "description": "How many times each placeholder was replaced — a zero means that placeholder was not in the template"
    }
  }
}

Get started

How to use this action

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, then connect your account for this app. There’s no API key to manage.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this app’s actions when the job calls for them, along with any other tools it needs.

  3. Make it a workflow

    Add an action as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether each action runs on its own or asks first. When it asks, you see an Allow or Deny card before anything changes in the app.