{"product_id":"n8n-contract-review-workflow-google-drive-openai-slack-pdf","title":"n8n Contract Review Workflow: Google Drive, OpenAI \u0026 Slack PDF","description":"\u003ch3\u003eAuto-review contracts from Google Drive—analyze PDFs with OpenAI and send attorney-ready reports to Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n Contract Review Workflow watches a Google Drive folder for new contract PDFs, extracts their text, uses OpenAI to identify key clauses and risks, generates a professional attorney-style PDF report, saves it back to Google Drive, and notifies your Slack channel with the results.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMonitors your intake folder\u003c\/strong\u003e: Triggers every minute when a new file is created in a specified \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e contract folder.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownloads and extracts PDF text\u003c\/strong\u003e: Retrieves the uploaded contract file from Google Drive and extracts the full text from the PDF.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnalyzes the contract with OpenAI\u003c\/strong\u003e: Sends the extracted text to \u003cstrong\u003eOpenAI\u003c\/strong\u003e to produce structured \u003cem\u003eJSON\u003c\/em\u003e covering contract type, key terms, risk score, risks, missing clauses, and recommendations.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates an attorney report PDF\u003c\/strong\u003e: Converts the OpenAI analysis into a professionally styled \u003cstrong\u003eHTML\u003c\/strong\u003e attorney report and then converts that HTML into a \u003cstrong\u003ePDF\u003c\/strong\u003e (via HTML-to-PDF conversion).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves and organizes files in Google Drive\u003c\/strong\u003e: Uploads the generated report to a target Google Drive folder and moves the original contract into a separate \u003cstrong\u003e“processed”\u003c\/strong\u003e folder.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies Slack\u003c\/strong\u003e: Posts a completion message to a \u003cstrong\u003eSlack\u003c\/strong\u003e channel including the risk details and the link to the generated report.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eLegal ops teams reviewing inbound vendor\/customer agreements stored in \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eSaaS operators triaging contracts by \u003cstrong\u003erisk score\u003c\/strong\u003e and missing clauses\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building an end-to-end \u003cstrong\u003econtract review workflow\u003c\/strong\u003e with \u003cstrong\u003en8n\u003c\/strong\u003e, \u003cstrong\u003eOpenAI\u003c\/strong\u003e, and \u003cstrong\u003eSlack\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers\u003c\/strong\u003e: n8n scheduled trigger (runs every minute) + Google Drive “new file” detection\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore nodes\/services\u003c\/strong\u003e: \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, \u003cstrong\u003eExtract from file (PDF text extraction)\u003c\/strong\u003e, \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e, HTML-to-PDF conversion (HTMLCSS to PDF), \u003cstrong\u003eSlack\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCredentials required\u003c\/strong\u003e: Google Drive OAuth, OpenAI API credential, Slack credentials\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup includes\u003c\/strong\u003e: intake folder, report destination folder, processed folder, and ensuring the HTML-to-PDF node is available in your n8n instance\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45830378127539,"sku":"N8N-18250","price":47.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/P4zgIZUomjNSBD10OpNPM_A0UO2LdT.png?v=1786698083","url":"https:\/\/buyflowscripts.com\/products\/n8n-contract-review-workflow-google-drive-openai-slack-pdf","provider":"N8N Commerce","version":"1.0","type":"link"}