Skip to content

Google Doc templates

Write a contract in Google Docs with {{placeholders}}, and the app fills it from each row and sends it as a PDF. Also: DocGen fields.

Updated by Jefferson Huera Guzman

A Google Doc template is an ordinary Google Doc with placeholders such as {{Company}} in it. When a row is sent, the app fills each placeholder from that row and sends the result as a PDF, exactly as Google Docs shows it. You don't need a Docusign template.

Google Doc templates and DocGen fields work on every plan. See Plans and billing.

Write the Doc

  1. Create a Google Doc with the text of your contract.
  2. Where a row's value goes, type the column's header between double braces: {{Company}}, {{Start date}}.
  3. Where a signer signs, add a tag such as \s1\ (Signer 1's signature). The Docs add-on inserts them for you: see Tags.

A placeholder is any {{text}} of up to 100 characters on one line, in the body, headers, footers, footnotes, tables or any tab of the Doc.

Use it in a send setup

  1. Open the Studio: Extensions › EnvelopeSync: Docusign Automation › Open studio, and open or create a send setup. See Map a template to your columns.
  2. Open the Documents from Drive line and click Add a Google Doc template. Google's file picker opens, showing Google Docs only. Choose your Doc. When the Docusign account has no templates yet, the template list offers the same with Send a Google Doc instead.
  3. The Studio lists every placeholder and maps each one to the column with the same header. You can change any of them.
  4. Under them, the Doc's signer tags are listed for each signer, for example "Signer 1" with Signature and Date, or it says "No tags yet: the envelope will stop as a draft for you to place fields."
  5. Click Save.

Preview row N fills the Doc with the sample row and opens the PDF in a new tab, using the values on screen, even unsaved ones. Read the Doc again picks up edits to the Doc.

From Drive, you can also select the Doc and use Use in a sheet on the EnvelopeSync card. See Gmail and Drive.

Where each value comes from

For each placeholder, the app uses, in this order:

  1. the value you mapped in the setup (letter case doesn't matter);
  2. otherwise, the column with the same header;
  3. otherwise, the row stops: "{{Discount}} has no column with that header; map it in the automation".

The Studio warns you first: "Filled from the … column (same name)." or "No column has this name: choose a value, or the row stops."

  • Values are the cells as the sheet shows them, with dates and currencies formatted. An empty cell gives empty text.
  • If a mapped column is deleted, the row stops: "{{Name}}: its mapped column was deleted".
  • A cell can't add a signer field or another placeholder: braces and tag backslashes in values are removed.

How the Doc is filled

At send time the app copies the Doc into the Drive of a teammate who can open it, as "Docusign – filling … (deleted automatically)". It fills the copy, hides its tags, exports it as PDF and deletes the copy for good. Your Doc is never changed, and the PDF is never stored. Google allows about 60 fills a minute per person, so a bulk send fills at most about 60 rows a minute.

Problems you may see

Reason on the row What to do
"there's no room in the Drive where the template is filled; free some space" Free space in that Drive, then Retry.
"the app can't read this Google Doc; allow access to it" Someone who can open the Doc chooses it again in the Studio (remove it, then Add a Google Doc template), then Retry.

More in A row didn't send.

DocGen fields

Docusign templates made from a Word document can have Document Generation (DocGen) fields. The Studio lists them on the Document fields (DocGen) line, with their type and whether they are required. Map them like any other value.

  • DocGen is a paid Docusign add-on in production (free in developer accounts). Without it, the row shows Docusign's reason.
  • Text, date and number fields work. Others, such as tables, are "Not supported yet, so left for you to fill in Docusign"; a required one stops the row.
  • Combined with other templates or documents, the Studio says to send a test first.

Not supported yet: repeating rows (line items), images and conditional sections in Doc templates, and Word files as Doc templates.

Learn more

Guides that explain the why and the options, beyond the steps.

Was this helpful?

Still stuck? Write to support@envelopesync.com.