Skip to content
Sarudo

Google Docs Integration

How Sarudo creates structured Google Docs with headings, paragraphs, lists, quotes, and embedded images, and shares them automatically with the right people.

google docsdocsintegrationsharingblog sectionsdrafts

Overview

The Google Docs integration lets your AI employee create a fully-formatted document in Google Docs, populate it with structured content (headings, paragraphs, lists, quotes, images), and share it with specific people as editor / commenter / reader. This is most visible in the Content Calendar Pipeline — every daily blog draft is delivered as a Google Doc in your Drive with you added as a reviewer — but the endpoint is available on demand for any workflow that needs "build me a Doc with this content and email the link to Sarah."

Wired up during setup — nothing for you to configure. The integration creates the document through a Google service account and shares it with you, so you do not have to connect your Google Workspace, install a Docs API app, or generate a key. The Doc lands in a shared space and appears in your Google Drive under "Shared with me" the moment it is created.

Structured Content Sections

Docs are not created as plain text — they are built from a list of structured sections that Google Docs renders with proper formatting. Five section types are supported: headings (three levels, H1/H2/H3, for article titles and section breaks), paragraphs (body text, with HTML tags stripped so the rendered text is clean), lists (bullet items for enumerations), quotes (indented and italicized for callouts and pull quotes), and images (embedded inline with an optional caption and credit link underneath). The order of sections in the request is the order they appear in the Doc. This structured model is what lets a blog draft come out looking like a real article — hero image at the top, H1 title, alternating body paragraphs and subheadings, pull quotes where appropriate — rather than a wall of text.

Sharing Behavior

When your AI employee creates a Doc, it can share it with any number of email addresses in a single call, specifying the role each person gets (writer/editor, commenter, or reader). The Google Drive API's permissions system handles the access grants, and the recipients get the same "Shared with you" experience they would get from any other shared Doc — the Doc appears in their Drive, they can open it with their normal Google account, and edits (if they have writer access) sync normally. Notification emails are suppressed by default to keep your AI employee from spamming everyone every time it creates a draft — the Doc shows up in the recipient's Drive quietly, and you decide when to notify them yourself.

Creating a Doc and sharing it

Build a brief and share it with a collaborator.

You say:
Write a one-page project brief for the Q2 rebuild and share it with Sarah at sarah@clientco.com as a commenter.
Sarudo responds:
Created the Google Doc "Q2 Rebuild — Project Brief". Structure: H1 title, paragraph (scope overview), H2 "Objectives" with a bulleted list of 4 items, H2 "Timeline" with a short paragraph, H2 "Open Questions" with a bulleted list of 3 items. Shared with sarah@clientco.com as a commenter. The Doc is also in your Drive. Link: [Google Doc URL]. Want me to send Sarah a Telegram notification that the brief is ready for her comments?

When to Use a Doc vs Sending the Content in an Email

Use a Google Doc when the content is long enough that it benefits from structured formatting, when you expect collaborative editing or commenting (multiple reviewers leaving inline notes), or when the content will be iterated on over several drafts. Use a plain email when the content is a single message meant to be read once and archived — a short update, a transactional notice, a one-off question. A rough heuristic: more than ~500 words or more than one reviewer, use a Doc; otherwise, send it as email text.

Where Docs Live

By default, Docs are created under the Sarudo service account's Drive and shared with you. For enterprise setups where you need Docs to appear directly in your own Drive (for audit, retention, or compliance reasons), Sarudo can be configured with Google Workspace Domain-Wide Delegation so the service account impersonates a user in your domain — Docs are then created as that user and show up in their real Drive rather than "Shared with me". This is a setup-team configuration, not a per-request option; mention it during onboarding if your compliance requirements need it.