This guide explains how to configure and deploy the DiliTrust Contracts Add-on for Google Docs within your organization’s private Google Workspace environment. Follow these steps to set up the add-on using Google Cloud Platform (GCP), Google Apps Script, and the Google Workspace Marketplace.
⚙️ Prerequisites
Before starting the setup, make sure you have the following:
- Access to Google Cloud Platform (GCP) with admin privileges.
- The DiliTrust-CLM-Assets.zip pack provided by DiliTrust.
- The Google Apps Script shared project provided by DiliTrust.
?️ Step 1 – Create a Google Cloud Project
- Log in to Google Cloud Console.
- Click Create Project.
- Fill in the following details:
- Project Name: DiliTrust Contracts
- Billing Account: Select the appropriate billing account.
- Organization: Choose your managed domain.
- Location: Select the parent organization or folder.
- Click Create to finalize the setup.
? Step 2 – Configure the OAuth Consent Screen
Overview
- In GCP, open the Google Auth Platform section.
- Under App Information:
- App Name: DiliTrust CLM
- User Support Email: Your support email
- Select the Internal audience type.
- Add at least one contact email and accept Google API terms.
Branding
- App Name: DiliTrust CLM
- User Support Email: your support email
- App Logo: Upload the 128x128 logo from DiliTrust-CLM-Assets.zip
App Domain
- Home Page: https://www.dilitrust.com
- Privacy Policy: Privacy Policy
- Terms of Service: Legal Notice
- Authorized Domains: Your organization’s domains
- Developer Contact: dilitrust-clm-addon@dilitrust.com
Data Access
- Select Data Access from the menu.
- Ensure the following scopes are added:
https://www.googleapis.com/auth/userinfo.emailhttps://www.googleapis.com/auth/documents.currentonlyhttps://www.googleapis.com/auth/script.container.ui
- Click Update and Save.
? Step 3 – Configure Google Apps Script
Clone and Link the Script
- Log in to Google Apps Script with your admin account.
- Locate the shared project DiliTrust CLM – XXX.
- Duplicate it and rename to DiliTrust Contracts.
- In Settings, copy the Script ID — you’ll need it later.
- Link the script to your GCP project using its project number.
Add Service Account Email
- Under Script Properties, add:
- Property: SERVICE_ACCOUNT_EMAIL
- Value: google-doc-integration@hyperlex-production.iam.gserviceaccount.com
Deploy the Script
- Click Deploy → New Deployment.
- Select Add-on as the type.
- Set the description as DiliTrust Contracts – DD/MM/YYYY.
- Deploy and copy the Version Number (you’ll use this in the SDK).
? Step 4 – Configure Google Workspace Marketplace SDK
Enable the SDK
- Open Google Workspace Marketplace SDK API.
- Click Enable.
App Configuration
- Visibility: Private and Unlisted
- Installation Type: Docs Add-on
- Enter:
- Script ID: from Step 3
- Script Version: from Step 3
- Developer Info:
- Name: DiliTrust
- Website: https://www.dilitrust.com
- Email: dilitrust-clm-addon@dilitrust.com
?️ Step 5 – Create the Store Listing
- Open the Store Listing tab.
- Complete the following fields:
- Language: English
- App Name: DiliTrust Contracts
- Short Description: The DiliTrust CLM add-on, offering a 360° view on contracts throughout their lifecycle.
- Detailed Description:
✓ Boost your contract efficiency with AI ✓ Centralize legal information ✓ Accelerate contract workflows ✓ Secure commitments and deadlines ✓ Analyze performance to make informed decisions
- Pricing: Free of charge
- Category: HR and Legal
- Upload graphics from DiliTrust-CLM-Assets.zip
- Set support URLs:
- Terms: Legal Notice
- Privacy: Privacy Policy
- Support: Contact
Click Save Draft when done.
? Step 6 – Publish & Deploy the Add-on
- Click Publish to make the add-on available.
- Select View in Marketplace to confirm deployment and share internally.
✅ Summary
You have successfully configured and published the DiliTrust Contracts Add-on for Google Docs in a private environment. Your users can now create and manage contracts directly in Google Docs, integrated with the DiliTrust CLM module for seamless collaboration.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article