Shata Solutions
← Back to marketplace
Sales Automation

Contract Generator

Merge CRM deal terms into DocuSign envelopes with standard clauses and approval routing.

Automation overview

What this automation does

This automation starts when salesforce opportunity stage `Contract Ready`. It runs connected app steps, then sends to customer signers with CRM contact roles and logs envelope ID on opportunity.

Trigger
Salesforce opportunity stage `Contract Ready`
Main actions
Final outcome
sends to customer signers with CRM contact roles and logs envelope ID on opportu…
Execution time
30–90 seconds
Apps used
4 integrations
AI-powered
No
Difficulty
Advanced
Advanced
Workflow diagram

End-to-end scenario flow

Read-only visualization of how data moves from trigger to final result.

Trigger
Salesforce
Event detected
Router
Google Docs
Pulls
Result
Slack
Workflow complete
Step-by-step

How each step runs

  1. 1
    SalesforceTrigger
    Event detected

    Salesforce opportunity stage `Contract Ready`

  2. 2
    Google Docs
    Pulls

    Salesforce opportunity `Contract Ready` pulls amount, term length, SLA tier, and custom clauses from opportunity fields, selects MSA template from Google Drive

  3. 3
    DocuSign
    Pulls

    Salesforce opportunity `Contract Ready` pulls amount, term length, SLA tier, and custom clauses from opportunity fields, selects MSA template from Google Drive

  4. 4
    Slack
    Pulls

    Salesforce opportunity `Contract Ready` pulls amount, term length, SLA tier, and custom clauses from opportunity fields, selects MSA template from Google Drive

  5. 5
    Slack
    Workflow complete

    sends to customer signers with CRM contact roles and logs envelope ID on opportunity.

Apps used

Connected applications

Salesforce

Pulls

Google Docs

Pulls

DocuSign

Pulls

Slack

Pulls

Summary

Automation summary

Trigger
Salesforce opportunity stage `Contract Ready`
Inputs
Salesforce opportunity stage `Contract Ready`, Business Name, Notification Email, Timezone
Outputs
sends to customer signers with CRM contact roles and logs envelope ID on opportunity.
Business goal
Automate contract generator end-to-end with accurate app routing.
Execution frequency
On demand with batch fallback
Estimated runtime
30–90 seconds
Error handling
Failed steps retry up to 3 times with exponential backoff; persistent failures notify your configured channel and log to the run history.
Dependencies
Salesforce, Google Docs, DocuSign
Benefits

Why use this automation?

Save ~4 hours/week

Remove repetitive steps from Contract Generator so your team focuses on high-value work.

Reduce manual work

Connected apps sync data automatically instead of copy-paste between dashboards.

Prevent human errors

Standardized logic runs the same way every time, with retries on failure.

Requirements

What you need to get started

Required apps

  • Salesforce
  • Google Docs
  • DocuSign

Required accounts

  • Active Salesforce workspace with API access
  • Active Google Docs workspace with API access
  • Active DocuSign workspace with API access
  • Shata Automation workspace (free tier supported)

Required API keys

  • OAuth tokens for each connected integration

Permissions

  • Read access on trigger sources (forms, sheets, webhooks, or CRM objects)
  • Write access on destination apps (email, chat, CRM, or storage)

Estimated setup time

  • 15 min including app authorization and test run
  • Difficulty: Advanced

Optional apps

  • Slack (optional)

Automation runtime

Activate this template

PreviewSome steps run in preview until their integrations go live.

Connect required apps via OAuth or API keys. Credentials are encrypted server-side. Dev test runs mock external actions when connections are missing.

Draft
0%
Activation readiness

Est. setup time: ~11 min

Required connections

  • salesforce(required)
    Previewsalesforce: workflow actions run in preview
    Missing
  • Google Drive(required)
    Test-onlyGoogle Drive: workflow actions run in preview
    Missing
  • docusign(required)
    Previewdocusign: workflow actions run in preview
    Missing
  • Missing connection: salesforce
  • Missing connection: Google Drive
  • Missing connection: docusign
Manage all connections →View all installations →

Workflow summary

Trigger
Salesforce opportunity stage `Contract Ready`
Steps
5 nodes
Required apps
3
Optional apps
1

Trigger

Manual trigger

Run workflows on demand via Test run or Live test. Activate to enable scheduled/webhook triggers on other templates.

Run history

No runs yet. Install the template and run a test, or activate to receive webhook/schedule runs.

FreeAdvancedPreview15 min setup4.99.7k installs · 457 reviews
Customize for My Business
Analytics

Template performance

24.5k
Views
9.7k
Installs
818
Favorites
4.9
Avg rating
39.8%
Conversion
15 min
Setup time
92%
Success rate
115
Trending score
Most used integrations
SalesforceGoogle DriveDocuSign

Salesforce opportunity `Contract Ready` pulls amount, term length, SLA tier, and custom clauses from opportunity fields, selects MSA template from Google Drive by deal size, merges fields via DocuSign API, routes internal approval to legal Slack if amount >$50k or custom clause flag set, then sends to customer signers with CRM contact roles and logs envelope ID on opportunity.

Some steps run in preview until their integrations go live.

Required apps
SalesforcePreviewGoogle DriveTest-onlyDocuSignPreview
Optional apps
SlackLive
All integrations
SalesforceGoogle DriveDocuSignSlack
Workflow preview

How Contract Generator runs

1
Trigger
Map template selection
2
Process
Rule engine
3
Action
salesforce
4
Notify
Alert & log
SalesforceGoogle DriveDocusignSlack
Setup steps

Get started in 5 steps

  1. 1
    Connect CRM and DocuSign

    Salesforce, Google Drive templates, DocuSign eSignature API, Slack legal channel.

  2. 2
    Map template selection

    SMB, mid-market, enterprise MSA variants by opportunity amount bands.

  3. 3
    Configure merge fields

    Amount, start date, term, SLA, data processing appendix trigger.

  4. 4
    Set approval routing

    Legal Slack approve for high value or non-standard clauses before customer send.

  5. 5
    Test envelope flow

    Sandbox opportunity → internal approve → customer sign webhook → CRM updated.

Variables

Configurable settings

VariableTypeDefaultRequired
Business NametextYour BusinessYes
Notification EmailemailYes
TimezoneselectYes
Slack Channeltext#generalNo
FAQ

Frequently asked questions

Counter-signature order?

Customer signs first; CEO counter-sign auto-triggered on customer complete.

Clause library?

Non-standard clauses pulled from Salesforce rich text fields into appendix.

Expired envelopes?

30-day unsigned triggers re-send or opportunity stage regression alert.

HubSpot instead of Salesforce?

Same DocuSign flow triggered from HubSpot deal `contract_ready` property.

Get started

Customize Contract Generator for your business

Our team can adapt this template to your exact workflow, apps, and brand requirements.