Learn how to extract contract data to google sheets — Make watches Google Drive for a new contract, OpenAI pulls the terms with a JSON schema, and Google Sheets files them as one row, so no contract detail is ever retyped by hand.
This extracts terms from the document — not renewal dates, and not legal advice. If you still retype every contract by hand — parties, value, start date, end date, notice period — this workflow removes the retyping from your day.
What this automation does
Every new contract in Drive files itself in Sheets, one row per contract. OpenAI reads the document with a JSON schema naming six fields — contract type, parties, value, start date, end date, notice period — so nothing gets guessed and nothing is a free-form summary.
All company names, values, and dates in this tutorial are fictional demo data: Service Agreement between Northwind Traders and Helix Labs, value $36,000, starts 15 Jan 2026, ends 12 Mar 2027, notice period 30 days.
What you need
- A Make account
- A Google Drive folder for new contracts
- An OpenAI connection
- A Google Sheet with eight columns: contract type, parties, value, start date, end date, notice period, file name, and status
Disclosure: Some links below are affiliate links, meaning StackScale may earn a commission at no extra cost to you.
- Make: https://www.make.com/en/register?pc=stackscale&affiliateSource=devto
- OpenAI: https://openai.com
- Google Drive: https://drive.google.com
- Google Sheets: https://sheets.google.com
The three Make modules
You only need three Make modules to automate this:
- Google Drive — Watch Files
- OpenAI — Extract contract data
- Google Sheets — Add a Row
Step 1: Watch Drive
Add Google Drive and pick Watch Files. Point it at your contracts folder. It fires the moment a new contract lands, handing Make the file name — demo: Service_Agreement_Northwind-Helix.pdf.
Step 2: Let OpenAI read it
Add OpenAI and ask it to extract the contract data with a JSON schema — contract type, parties, value, start date, end date, notice period. The schema forces clean fields, not a free-form summary. Copy this schema as-is:
{
"contract_type": "Service Agreement",
"parties": "Northwind Traders, Helix Labs",
"value": 36000,
"start_date": "2026-01-15",
"end_date": "2027-03-12",
"notice_period": "30 days"
}
Step 3: Log the row
Add Google Sheets and pick Add a Row. Map the fields:
- Contract type — {{2.contract_type}} (demo value Service Agreement)
- Parties — {{2.parties}} (demo value Northwind Traders, Helix Labs)
- Value — {{2.value}} (demo value $36,000)
- Start date — {{2.start_date}} (demo value 15 Jan 2026)
- End date — {{2.end_date}} (demo value 12 Mar 2027)
- Notice period — {{2.notice_period}} (demo value 30 days)
- File name — {{1.file_name}} (demo value Service_Agreement_Northwind-Helix.pdf)
One contract in, one row out.
Finished contract (demo): Service Agreement | Northwind Traders, Helix Labs | $36,000 | 15 Jan 2026 – 12 Mar 2027 | 30 days' notice | 1 row — EXTRACTED.
Step 4: Test it
Run once with the demo contract and check the row lands — then drop in a second contract and check the new row carries the new parties and end date.
One honest limit
This extracts terms — it does not give legal advice, and it does not chase renewals. If a clause looks wrong, a person reads it.
Why Make instead of Pabbly Connect
The top result uses Pabbly Connect, and there is a Make Community thread and a Facebook video on contracts — but this route is short, pure Make plus OpenAI, with a JSON schema naming six fields, so nothing gets guessed.
If you still retype contract details by hand, the full walkthrough is in the video above. New StackScale tutorials go out every day — subscribe on YouTube at https://www.youtube.com/@StackScaleHQ.
Top comments (0)