
If you work in IT, Legal, or Procurement, you know the pain of the Vendor Security Review. A vendor...
If you work in IT, Legal, or Procurement, you know the pain of the Vendor Security Review. A vendor emails you a 50-page PDF outlining their privacy terms, and you have to manually cross-reference their document against your company’s internal Standard Operating Procedures (SOPs).
It is tedious, time-consuming, and highly prone to human error. What if they sneaked in a clause about 72-hour breach notifications when your policy strictly mandates 24 hours?
In this tutorial, we are going to fix that. We will build a fully automated workflow using Google Workspace Studio and NotebookLM that intercepts these documents, reads them, reasons against your internal rules, and instantly alerts you of any violations in Google Chat.
Check out the official update around the NotebookLM and Google Workspace Studio Integration.
This architecture is incredibly powerful because it separates the automation from the reasoning.
Workspace Studio acts as the connective tissue (the hands). It handles the Gmail triggers, Drive storage, text extraction, and Chat messaging.
NotebookLM acts as the grounded reasoning engine (the brain). By uploading your company SOPs directly into a Notebook, you ensure the AI's analysis is strictly grounded in your unique corporate rules, eliminating hallucinations.
While we are building a Vendor Compliance checker today, you can tweak this exact architecture to automate dozens of other workflows simply by changing the source document in NotebookLM and adjusting the prompt:
HR / Recruiting: Upload your ideal Job Description to NotebookLM. Have Studio intercept emails with resumes, and output a candidate grading summary to Chat.
Legal / Contract Review: Upload your standard Master Services Agreement (MSA). Have Studio intercept third-party redlines and flag unapproved changes.
Sales / RFP Responses: Upload your product documentation. Have Studio intercept incoming RFPs and draft the initial technical responses.
Let's build the workflow!
Before building the automation, we need to create the "brain."
Pro Tip: You can manage up to 300 sources per notebook, with each source containing up to 500,000 words. You can dump all your governance documents here!
Open Google Workspace Studio and create a new flow. We need to trigger this automation whenever a new document arrives.

We need a place to securely store the raw PDF for record-keeping.

Important Security Note: Ensure the destination folder is restricted to your team. Currently, this Studio step cannot save attachments directly to Shared Drives.
NotebookLM operates in a secure sandbox and cannot click external Drive links passed to it. We need to extract the raw text from the file first. Studio makes this easy with Gemini.
Click + Add step and choose the Extract action (powered by Gemini).
Content to analyze: Click "Variables" and map the {{Saved File URL}} (from the Google Drive step). The Extract step natively supports reading URLs!
What to extract: Scroll down to the Custom content name section.

This is where the magic happens. We pass the extracted text to NotebookLM and ask it to find discrepancies against our SOP.
Click + Add step and choose NotebookLM -> Ask NotebookLM.
Select a notebook: Choose the Notebook you created earlier.
Enter a prompt: Construct your prompt like this:
You are an expert IT Compliance Auditor. Analyze the vendor terms provided below against our company compliance guidelines (your source document). Identify any missing clauses or violations regarding data privacy, security certifications, breach notifications, and data residency. Do not include conversational filler. Output ONLY a Markdown formatted list. For each violation, use a 🔴 emoji, state the vendor's policy, and state what our SOP requires instead. Vendor Terms Context: {{Step3: Document Text}}

Finally, we deliver this risk assessment directly to the team so they can review it without leaving their chat window.
Click + Add step and choose Notify me in Chat.
Message Payload: Format it nicely using markdown and variables:
🚨 New Vendor Compliance Assessment 🚨 Received From: {{Step1: Sender email address}} Document Reviewed: {{Step1: Full list-Email Attachments file name}} NotebookLM Risk Summary: {{Step4: Content created by NotebookLM}} Review the raw document here: {{Step2: Links to the files}}

Before you fully turn the workflow on for your entire organization, Google Workspace Studio gives you a powerful way to test it using real data.
Send a Test Email: First, send yourself an email with a sample vendor PDF attached. Use the subject line we defined earlier (e.g., "New Vendor Assessment: CloudService Inc").
Open the Test Panel: At the bottom of your Studio canvas, click the Test run button.
Select Your Email: A side panel will appear. Studio will automatically scan your Gmail inbox and let you select the test email you just sent from a dropdown.
Hit Start: Click the blue Start button. Note: A test run takes real actions! It will actually save the file to Drive and post the message in Chat.

Within seconds, my Google Chat space lit up. Instead of having to read a 50-page vendor PDF manually, NotebookLM instantly output this incredibly detailed risk assessment:

And just like that, we’ve bridged the gap between basic "if-this-then-that" automation and actual cognitive reasoning.
By combining the automation engine of Google Workspace Studio with the grounded, hallucination-free reasoning of NotebookLM, we didn't just automate a task—we automated a decision-making process. This architecture is highly scalable and can fundamentally change how enterprise teams handle documents, contracts, resumes, and RFPs.
What will you build? Once you have the foundation set up, the possibilities are endless. If you end up tweaking this workflow for your own HR, Legal, or Sales team, let me know in the comments below!
gemmaI ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...
communityHey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...
ai(yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...
aiMy laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...
githubactionsI Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...
aiI've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...
Workflows from the Neura Market marketplace related to this CoPilot resource