Your sales rep moves an Opportunity to "Contract" and then someone in ops has to assemble a Word agreement, attach the right quote, upload it to an e-sign tool, and email three signers. That single manual handoff is where deals stall for days.
This post shows a practical, click-first approach to Salesforce document automation that generates documents from Opportunity/Quote data and sends them for signature when a stage or field changes. You won't need Apex — just a template, a Flow or button, and a configured Savvy DocuGen template.
Salesforce document automation: pick the trigger that matches your process
Start with the trigger. The most common low-risk choices for admins are:
- Record-triggered Flow on Opportunity when StageName changes to a specific value (example: "Contract Sent").
- A button on the Quote or Opportunity detail page so reps control when the document is sent.
- Field-change trigger — for example, when a checkbox like "Ready for Signature" flips true.
- New file on the record — useful if you upload a negotiated Word draft and want it routed into the e-sign process.
Pick the one that matches how your reps work. I recommend starting with a manual button for the first few customers so you can iterate the template. Once the template and signer list are stable, flip to a stage-change Flow.
How to automate contract signatures Salesforce with a Flow
You'll use a record-triggered Flow to generate the document, bundle templates if needed, and call the signature send. Here is a straightforward Flow outline you can build in Flow Builder without code.
Flow: Opportunity.Record-Triggered (after save)
Trigger: When Opportunity.StageName = 'Contract Sent'
1) Get Records: Primary Quote where OpportunityId = {!$Record.Id} AND IsPrimary = true
2) Get Records: Opportunity.Account, Opportunity.Owner, Opportunity.Contact (if your signer is a Contact)
3) Decision: Has negotiated file? (check a File or Notes flag)
4) Action: Call Savvy DocuGen (Generate & Send)
- Inputs: recordId = {!$Record.Id}
- Templates: [Contract.docx, CoverLetter.docx] (bundle)
- Storage: Files (use Files for >25 MB; Notes & Attachments limited to 25 MB)
- Signers: map Contact.Email, Contact.Name, and password field if used
5) Update: Opportunity: set ContractSentDate = Today(), Status = 'Contract Out'
6) Email Alert: let rep know the signature request was sent
That Action step is where Savvy DocuGen does the heavy lifting: it merges the Word/PDF templates using fields from Opportunity, Quote, Account and up to five levels of parent lookups, and it can add child records as repeating table rows for line items.
What to map in the Flow
- RecordId — pass the Opportunity.Id so the generated file is attached to the right record.
- Template bundle — include multiple templates if you need a cover sheet, schedule or signature page combined into one signature run.
- Signer list — point each signer to their Contact or Account record email and optional password field.
- Storage choice — choose Files for documents larger than 25 MB; Notes & Attachments can't exceed 25 MB.
Template and signature details to avoid mistakes
Templates are where most errors occur. Pay attention to these practical points.
- Start with a Word template. Docx is easiest to edit and keeps page breaks predictable.
- Use the merge fields from the objects you need — Opportunity, Quote, Contract, Account, Contact, and any custom objects like Subscription__c or Renewal__c. DocuGen reaches five levels of parent lookups and supports child rows (quote line items) for repeating tables.
- For signature placement, use anchor text in the template (for example, a clear phrase like "SIGN HERE: Sales Rep" on the signature line). DocuGen places signatures by anchor so the position survives repagination and layout shifts.
- If signers require extra verification, enable the emailed one-time code and map a per-signer password from a Contact or custom field. You can require both for higher assurance.
- Bundle related templates (cover, T&Cs, schedules) into one run so your customer signs a single PDF and the signed PDF is written back to the same record.
- Watch file sizes. Savvy DocuGen supports up to 40 MB per document; if you're using Notes & Attachments remember Salesforce caps those at 25 MB.
Example scenario (hypothetical): imagine 200 renewals a month with an average 60-page agreement. If reps manually assemble and email each document, it's hours of work and a multi-day signature chase. Automating generation and send on the Oppty stage removes manual assembly, attaches the signed PDF back to the Opportunity, and starts the revenue recognition process faster.
Deployment and security notes for admins
Two points that usually come up in security reviews:
- There is no managed package to install. Savvy DocuGen connects through an authorised connection so there's nothing to add to your org that needs the usual package security review.
- Works the same in sandboxes as in production. Build and test in your sandbox, then point your Flow or button to production when you're ready.
One tip: start with a sandbox Flow that sends all signature requests to an internal test email address so you can verify anchor positions and signer verification before going live.
Savvy DocuGen fills Word and PDF templates from any Salesforce record, bundles multiple templates into one signature run, supports anchor-tag signature placement, and writes signed PDFs back to the same record. If you want to stop stitching documents together by hand, try it in a sandbox and build the record-triggered Flow above. Log into your sandbox and set up a simple template and a button or Flow — and see how many manual hours you can remove from the contract path.
Read next