A person typing on a laptop with a mug and papers on the desk, banner image on the Google Docs: create documents from text or a template, edit them, react to changes. page

Connector - Docs & knowledge

Google Docs: create documents from text or a template, edit them, react to changes.

Google's collaborative document editor - where drafts get written and commented.

What Google Docs can do

Starts when

  • A document is created
  • A document is updated
  • A document is added to a folder

Does

  • Create a document from text or from a template
  • Append or insert text
  • Find and replace text
  • Format text
  • Insert or replace an image
  • Update document properties
  • Upload a document
  • Send a raw API request

Finds

  • Find a document
  • Read a document's content or tabs
  • Find text in a document
  • Find a document, or create it if missing

What it does

Ways teams use this connector.

Example 1

Approved playbook output becomes a formatted Doc in a shared folder.

Example 2

Comment threads on a spec doc summarize into a decision list.

Example 3

Template contracts fill from playbook data and share for review.

How connecting works

Access: Google OAuth, documents scope. The setup guide lists the exact scopes, triggers and actions. You approve the access once; HiringsAI stores the token against your account, names the exact scopes it holds, and lets you disconnect from the same screen whenever you want. Source: official Google Docs documentation.

1You approve onceOn Google Docs’s own consent screen - Google OAuth - documentsscope.2The mechanism, exactlyThe auth/documents scope for Docs API access.3Token stored against your accountNothing reads or writes before you connect.4Disconnect anytimeFrom the same screen, whenever you want.How access works for this connector.

Free tools for this job

These free tools do part of the job in your browser, with no account: Policy Doc Drafter · Contract Clause Explainer · Handoff Doc Builder.

All connectors

How it works

Playbook output to Doc. Sample output (example).

StepEventWhat happens (example)
1Output approvedFormatted Doc in the shared folder
2Comments on spec: 9 threadsDecision list
3Contract templateFilled from playbook data
4ShareSent for review

An example with sample numbers.

Map a run into Docs documents

This field map explains the Google Docs API behavior behind the connector. Each row document identity, index identity and quota identity distinct.

FieldMeaningHow to use it
documentIdDocument identityEvery call addresses a document by the id in its URL. The v1.documents resource has exactly three methods: create, get and batchUpdate. There is no "append text" call; every change is a batchUpdate.
documents.createBlank by designcreate makes a blank document with a title and nothing else. Content arrives in a follow-up batchUpdate, so "create a filled document" is always two calls.
body.contentThe structural treeA document is a tree of structural elements: paragraphs, tables, section breaks, each carrying startIndex and endIndex. Text lives inside paragraph elements; formatting is described on the elements, not embedded in the text.
indexesWhere edits landInserts and deletes address character positions by index, and every edit shifts the indexes after it. batchUpdate requests are applied in order, so a run edits from the end of the document backward, or computes indexes against the state each request leaves behind.
batchUpdate requestsTyped editsOne batchUpdate carries an array of typed requests: insertText, deleteContentRange, updateTextStyle, insertTable and more. Grouping related edits into one call is both cheaper and atomic in effect.
documents.getRead before writeget returns the latest revision of the document. A run that writes against stale indexes corrupts someone’s edits, so it reads immediately before composing its batchUpdate.
read and write quotasSeparate budgetsReads are limited to 3,000 per project per minute and 300 per user per project per minute; writes to 600 and 60 respectively. The two budgets are independent.
429 + backoffThrottle signalOver quota, the API answers 429: Too many requests, and Google’s documented handling is truncated exponential backoff with random jitter, starting around a second and capping at 32 to 64 seconds.

Example Google Docs tasks

Each example turns one use into inputs, expected results and checks. They show how the connector behaves.

Turn approved playbook output into a formatted Doc

Example input: an approved report that should land as a document titled "Weekly digest - Dec 1" in the team folder.

Expected result: two calls. First documents.create with the title, then one batchUpdate whose requests insert the sections in order. Moving the file into the folder is a Drive call, not a Docs call.

Check: create returns the new documentId, and the run stores it; a retried create makes a second empty document, so the run records the id and never re-creates. Writes are capped at 60 per user per minute, so one batchUpdate with twelve requests beats twelve batchUpdates.

Insert a section without mangling someone’s edits

Example input: a spec document the team is editing, into which the run adds a Decisions section.

Expected result: the section appears at the right place. The run calls documents.get immediately before composing its batchUpdate and computes the insertion index from that fresh read.

Check: indexes shift with every edit, including edits by other people. Writing against indexes from an hour ago inserts into the wrong paragraph. When several requests go in one batchUpdate, they apply in array order against the evolving document, so the run orders its own edits from the end of the document backward.

Fill a contract template from playbook data

Example input: a template whose placeholders, like [CLIENT NAME], get real values.

Expected result: each placeholder found in a fresh documents.get, then one batchUpdate with a deleteContentRange plus insertText per placeholder, ordered back to front.

Check: replacing forward shifts the indexes of every later placeholder, which is the classic off-by-N corruption. Back-to-front keeps earlier indexes valid. If a placeholder is missing, the run reports it instead of silently shipping a template with a blank name.

Three methods, two quotas and one backoff rule

Connection runs through OAuth with Docs scopes, read-only where the run only reads. The entire API is three methods on v1.documents: create, get and batchUpdate, so every behavior above is a composition of those.

Quotas: 3,000 reads per project per minute and 300 per user per project per minute; 600 writes per project per minute and 60 per user per project per minute. Reads and writes are separate budgets, so a read-heavy polling loop does not eat the write allowance.

A 429 means back off exponentially with jitter: wait 1 second plus random milliseconds, then 2, then 4, up to a 32 or 64 second cap, per Google’s own algorithm. Synchronized retry storms are what the random jitter exists to prevent.

A created document or applied batchUpdate is real content in the user’s Drive. Keep a run safe to re-execute: store the documentId it created, read before writing, and never delete documents to hide a duplicate created by a retry.

Sources: API reference, Usage limits.

Questions about this connector

Can I connect Google Docs?

Yes. Connect it from your HiringsAI account. Anything that changes data waits for your approval.

How does Google Docs sign-in work?

Google OAuth, documents scope. You approve access once. HiringsAI stores the credential against your account, names what it holds, and lets you disconnect from the same screen.

What does it read and write?

No. Nothing reads or writes until you connect.

A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Google Docs: create documents from text or a template, edit them, react to changes. page

Find the connector you need.

Every connector page lists what it can do.

Starts whenDoesFindsA sample runA document is createdA document is updatedA document is added to a folderCreate a document from text or from a templateAppend or insert textFind and replace textFormat textInsert or replace an imageUpdate document propertiesUpload a documentStarts whenDoesFindsA sample runA document is createdA document is updatedA document is added to a folderCreate a document from text or from a templateAppend or insert textFind and replace textFormat textInsert or replace an imageUpdate document propertiesUpload a document
01

What Google Docs can do

This page lists what the Google Docs connector can start from, do and find. Each section below takes one part and shows it step by step, from the connector's own feature list.

Starts when3 ways to start a run, such as: A document is created.
Does8 actions, such as: Create a document from text or from a template.
Finds4 lookups, such as: Find a document.
A sample runPlaybook output to Doc.
02

What starts a run in Google Docs

These are the events in Google Docs that can start a playbook.

A document is createdStarts a run in Google Docs.
A document is updatedStarts a run in Google Docs.
A document is added to a folderStarts a run in Google Docs.
03

What a run can do in Google Docs

These are the actions a run can take in Google Docs.

Create a document from text or from a templateAn action a run can take in Google Docs.
Append or insert textAn action a run can take in Google Docs.
Find and replace textAn action a run can take in Google Docs.
Format textAn action a run can take in Google Docs.
Insert or replace an imageAn action a run can take in Google Docs.
Update document propertiesAn action a run can take in Google Docs.
04

What a run can do in Google Docs (more)

These are the actions a run can take in Google Docs.

Upload a documentAn action a run can take in Google Docs.
Send a raw API requestAn action a run can take in Google Docs.
05

What a run can find in Google Docs

These lookups let a run read before it changes anything in Google Docs.

Find a documentA lookup a run can make in Google Docs.
Read a document's content or tabsA lookup a run can make in Google Docs.
Find text in a documentA lookup a run can make in Google Docs.
Find a document, or create it if missingA lookup a run can make in Google Docs.
06

A sample run, step by step

Playbook output to Doc. The numbers are made up to show the shape of a run.

Output approvedFormatted Doc in the shared folder
Comments on spec: 9 threadsDecision list
Contract templateFilled from playbook data
ShareSent for review
Sample run (example data)
StepEventWhat happens (example)
1Output approvedFormatted Doc in the shared folder
2Comments on spec: 9 threadsDecision list
3Contract templateFilled from playbook data
4ShareSent for review
  1. Step 1Output approved: Formatted Doc in the shared folder
  2. Step 2Comments on spec: 9 threads: Decision list
  3. Step 3Contract template: Filled from playbook data
  4. Step 4Share: Sent for review
07

Map a run into Docs documents

This field map explains the Google Docs API behavior behind the connector. Each row document identity, index identity and quota identity distinct.

documentIdDocument identity: Every call addresses a document by the id in its URL.
documents.createBlank by design: create makes a blank document with a title and nothing else.
body.contentThe structural tree: A document is a tree of structural elements: paragraphs, tables, section breaks, each carrying startIndex and endIndex.
indexesWhere edits land: Inserts and deletes address character positions by index, and every edit shifts the indexes after it.
batchUpdate requestsTyped edits: One batchUpdate carries an array of typed requests: insertText, deleteContentRange, updateTextStyle, insertTable and more.
documents.getRead before write: get returns the latest revision of the document.
Map a run into Docs documents
FieldMeaningHow to use it
documentIdDocument identityEvery call addresses a document by the id in its URL. The v1.documents resource has exactly three methods: create, get and batchUpdate. There is no "append text" call; every change is a batchUpdate.
documents.createBlank by designcreate makes a blank document with a title and nothing else. Content arrives in a follow-up batchUpdate, so "create a filled document" is always two calls.
body.contentThe structural treeA document is a tree of structural elements: paragraphs, tables, section breaks, each carrying startIndex and endIndex. Text lives inside paragraph elements; formatting is described on the elements, not embedded in the text.
indexesWhere edits landInserts and deletes address character positions by index, and every edit shifts the indexes after it. batchUpdate requests are applied in order, so a run edits from the end of the document backward, or computes indexes against the state each request leaves behind.
batchUpdate requestsTyped editsOne batchUpdate carries an array of typed requests: insertText, deleteContentRange, updateTextStyle, insertTable and more. Grouping related edits into one call is both cheaper and atomic in effect.
documents.getRead before writeget returns the latest revision of the document. A run that writes against stale indexes corrupts someone’s edits, so it reads immediately before composing its batchUpdate.
read and write quotasSeparate budgetsReads are limited to 3,000 per project per minute and 300 per user per project per minute; writes to 600 and 60 respectively. The two budgets are independent.
429 + backoffThrottle signalOver quota, the API answers 429: Too many requests, and Google’s documented handling is truncated exponential backoff with random jitter, starting around a second and capping at 32 to 64 seconds.
08

Turn approved playbook output into a formatted Doc

Example input: an approved report that should land as a document titled "Weekly digest - Dec 1" in the team folder.

Expected resulttwo calls.
Checkcreate returns the new documentId, and the run stores it; a retried create makes a second empty document, so the run records the id and never re-creates.
Inputan approved report that should land as a document titled "Weekly digest - Dec 1" in the team folder.
  1. InputExample input: an approved report that should land as a document titled "Weekly digest - Dec 1" in the team folder.
  2. Expected resultExpected result: two calls. First documents.create with the title, then one batchUpdate whose requests insert the sections in order. Moving the file into the folder is a Drive call, not a Docs call.
  3. CheckCheck: create returns the new documentId, and the run stores it; a retried create makes a second empty document, so the run records the id and never re-creates. Writes are capped at 60 per user per minute, so one batchUpdate with twelve requests beats twelve batchUpdates.
09

Insert a section without mangling someone’s edits

Example input: a spec document the team is editing, into which the run adds a Decisions section.

Expected resultthe section appears at the right place.
Checkindexes shift with every edit, including edits by other people.
Inputa spec document the team is editing, into which the run adds a Decisions section.
  1. InputExample input: a spec document the team is editing, into which the run adds a Decisions section.
  2. Expected resultExpected result: the section appears at the right place. The run calls documents.get immediately before composing its batchUpdate and computes the insertion index from that fresh read.
  3. CheckCheck: indexes shift with every edit, including edits by other people. Writing against indexes from an hour ago inserts into the wrong paragraph. When several requests go in one batchUpdate, they apply in array order against the evolving document, so the run orders its own edits from the end of the document backward.
10

Fill a contract template from playbook data

Example input: a template whose placeholders, like [CLIENT NAME], get real values.

Expected resulteach placeholder found in a fresh documents.get, then one batchUpdate with a deleteContentRange plus insertText per placeholder, ordered back to front.
Checkreplacing forward shifts the indexes of every later placeholder, which is the classic off-by-N corruption.
Inputa template whose placeholders, like [CLIENT NAME], get real values.
  1. InputExample input: a template whose placeholders, like [CLIENT NAME], get real values.
  2. Expected resultExpected result: each placeholder found in a fresh documents.get, then one batchUpdate with a deleteContentRange plus insertText per placeholder, ordered back to front.
  3. CheckCheck: replacing forward shifts the indexes of every later placeholder, which is the classic off-by-N corruption. Back-to-front keeps earlier indexes valid. If a placeholder is missing, the run reports it instead of silently shipping a template with a blank name.
11

Three methods, two quotas and one backoff rule

Connection runs through OAuth with Docs scopes, read-only where the run only reads. The entire API is three methods on v1.documents: create, get and batchUpdate, so every behavior above is a composition of those.

QuotasQuotas: 3,000 reads per project per minute and 300 per user per project per minute; 600 writes per project per minute and 60 per user per project per minute.
A 429 means back off exponentially with jitterA 429 means back off exponentially with jitter: wait 1 second plus random milliseconds, then 2, then 4, up to a 32 or 64 second cap, per Google’s own algorithm.
A created document or applied batchUpdate isA created document or applied batchUpdate is real content in the user’s Drive.
SourcesSources: API reference, Usage limits.
12

How connecting works

Access: Google OAuth, documents scope. The setup guide lists the exact scopes, triggers and actions. You approve the access once; HiringsAI stores the token against your account, names the exact scopes it holds, and lets you disconnect from the same screen whenever you want. Source: official Google Docs documentation.

Can I connect Google Docs?Yes.
How does Google Docs sign-in work?Google OAuth, documents scope.
What does it read and write?No.
13

Free tools for this job

These free tools do part of the job in your browser, with no account.

Policy Doc DrafterOpens in your browser, no account.
Contract Clause ExplainerOpens in your browser, no account.
Handoff Doc BuilderOpens in your browser, no account.
14

Ways teams use Google Docs

The uses this page lists for the Google Docs connector, one per example.

Example 1Approved playbook output becomes a formatted Doc in a shared folder.
Example 2Comment threads on a spec doc summarize into a decision list.
Example 3Template contracts fill from playbook data and share for review.
  1. Use 1Approved playbook output becomes a formatted Doc in a shared folder.
  2. Use 2Comment threads on a spec doc summarize into a decision list.
  3. Use 3Template contracts fill from playbook data and share for review.
15

Questions about Google Docs

The questions this page answers about the Google Docs connector.

Can I connect Google Docs?Yes.
How does Google Docs sign-in work?Google OAuth, documents scope.
What does it read and write?No.
Can I connect Google Docs?

Yes. Connect it from your HiringsAI account. Anything that changes data waits for your approval.

How does Google Docs sign-in work?

Google OAuth, documents scope. You approve access once. HiringsAI stores the credential against your account, names what it holds, and lets you disconnect from the same screen.

What does it read and write?

No. Nothing reads or writes until you connect.

16

Google Docs: start, act, look up

A short list that puts one part of each kind side by side, so you can see how a run reads and writes in Google Docs.

StartA document is created
StartA document is updated
StartA document is added to a folder
ActionCreate a document from text or from a template
Start, act, look up in Google Docs
KindWhat it does
StartA document is created
StartA document is updated
StartA document is added to a folder
ActionCreate a document from text or from a template
ActionAppend or insert text
ActionFind and replace text
LookupFind a document
LookupRead a document's content or tabs
  1. StartA document is created
  2. StartA document is updated
  3. StartA document is added to a folder
  4. ActionCreate a document from text or from a template
17

Where to go next from Google Docs

These pages on this site help you check the details around the Google Docs connector before you build a playbook.

ConnectorsBrowse every connector and compare what each can start, do and find.
PricingSee what each plan includes.
TrustRead how data, access and security are handled.
ToolsTry the free tools that run in your browser.
  1. BrowseOpen the connectors list.
  2. CheckRead the pricing page.
  3. VerifyRead the trust page.
  4. TryOpen a free tool.

Back to Google Docs

Pick another connector or read this one again.

Google Docs connectorAll connectors