---
title: Google Docs with your AI: edits in place, as you
description: Your AI edits your Google Docs in place through a script you deploy in your own account: inserts, fills, styles, links and images, no connector between.
url: https://instibrain.ai/works-with/google-docs
updated: 2026-10-27
site: https://instibrain.ai/llms.txt
---

# Your Docs, edited in place, as you.

A script in your own Google account inserts, fills and restyles exactly where you point. The rest of the document stays as the writer left it.

What you can ask  →  Where the credential stays

inserts, fills and styles · executes as you · no rewrite to change a line

`team/tools/google-apps-script/google-apps-script.md` an id and a key name
asked · an example Add the new case study after the Customers heading, styled like the others.
the AI, from the page Inserted four paragraphs after Customers, styled from the case study above. Nothing else in the doc changed.
what the AI calledYour own deployment, an insert and a restyle. The doc never touched our server.

who uses it, and why

## Who lets the AI into a Doc.

People who share documents with writers still at work.

a content lead

### A section added to a draft, the rest untouched.

why The writer is still editing the other sections.

asks Add a pricing FAQ after the Plans section of the launch doc.

a bid manager

### Forty answer fields filled, one at a time.

why Every question ends in the same empty Answer label.

asks Fill each answer in the security questionnaire from our policy page.

an editor

### Every link in a draft, checked.

why The plain text hides where each link points.

asks List every link in the launch post, and where it goes.

what you can ask

## Your AI edits a Doc where it stands, and rewrites nothing.

Your script edits a Doc in place. The writer's text and styles stay theirs.

Insert after an anchor

New paragraphs go after the one you name; the text around them stays.

Fill one field of many

Each field is found by unique words near it, then filled alone.

Match the house style

A paragraph restyled from another, headings and colours included.

Links, read and set

Every link read in place with its target; new links with the wording kept.

Images, placed and sized

An image after a given paragraph, or every image fitted to the column.

Every tab, and publication type

All the tabs of a Doc in one read; article typography in one pass.

where the credential stays

## The Docs you open, and no others.

Your deployment acts as you, so it sees exactly your Docs.

in your Google account, and in your secret store

Your own project at script.google.com, deployed to execute as you, with a key of yours. Your AI calls the script you deployed, at Google. No connector's server reads your Docs on the way.

in your brain

Your space's page holds the deployment id and your key's name, never the key.

what instibrain never touches

## What the script never does to Docs.

It edits in place, as you, and says what changed.

-
A rewrite to change one line.

Insert, fill and restyle leave every other paragraph as it was.

-
A delete on a guess.

Each paragraph to delete is named with its text; one mismatch, and nothing goes.

-
Your secrets echoed back.

A delete answers with counts, never the text it removed.

before you connect it

## Your AI inserts and fills in your Docs, never rewriting them unasked.

**Will the AI rewrite my document?**

No. It inserts, fills and restyles in place. A full rewrite is an action you ask for by name.

**Why my own script, rather than a connector?**

Every doc action runs as you, in your account, called straight from your computer. Nothing else sits between.

**Which Docs can it reach?**

Every Doc your Google account opens, and none other. The script's page shows how it is deployed.

## Your Docs, changed only where you asked.

Deploy once in your account. Then Claude Code and Codex edit your Docs as you.

Request access  →  Connect Claude Code
documents and files  Gmail

Search, threads, drafts and cleanup, a send only on your go, through your own script.
documents and files  Google Sheets

Formats, formulas, tabs and real dates, through your own script.
documents and files  Google Drive

Files, sharing and shared drives, through the folder and your own script.
documents and files  Google Apps Script

The one script behind Gmail, Sheets, Docs, Drive and Calendar.
documents and files  Notion

Pages and databases you can open, under your own token.
every kind  Works with

Every system by kind, and the rule each page shares.

---

instibrain is made by WebWork AI, Inc. Everyone uses the same models · the difference is what yours knows.
