DiliTrust Contracts Add-on for Google Docs – Private Setup & Publication

Modified on Mon, 13 Oct at 3:43 PM

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

  1. Log in to Google Cloud Console.
  2. Click Create Project.
  3. 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.
  4. Click Create to finalize the setup.

? Step 2 – Configure the OAuth Consent Screen

Overview

  1. In GCP, open the Google Auth Platform section.
  2. Under App Information:
    • App Name: DiliTrust CLM
    • User Support Email: Your support email
  3. Select the Internal audience type.
  4. 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

Data Access

  1. Select Data Access from the menu.
  2. Ensure the following scopes are added:
    • https://www.googleapis.com/auth/userinfo.email
    • https://www.googleapis.com/auth/documents.currentonly
    • https://www.googleapis.com/auth/script.container.ui
  3. Click Update and Save.

? Step 3 – Configure Google Apps Script

Clone and Link the Script

  1. Log in to Google Apps Script with your admin account.
  2. Locate the shared project DiliTrust CLM – XXX.
  3. Duplicate it and rename to DiliTrust Contracts.
  4. In Settings, copy the Script ID — you’ll need it later.
  5. 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

  1. Click DeployNew Deployment.
  2. Select Add-on as the type.
  3. Set the description as DiliTrust Contracts – DD/MM/YYYY.
  4. Deploy and copy the Version Number (you’ll use this in the SDK).

? Step 4 – Configure Google Workspace Marketplace SDK

Enable the SDK

  1. Open Google Workspace Marketplace SDK API.
  2. 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:

?️ Step 5 – Create the Store Listing

  1. Open the Store Listing tab.
  2. 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:

Click Save Draft when done.


? Step 6 – Publish & Deploy the Add-on

  1. Click Publish to make the add-on available.
  2. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article