Gate film and TV music cue rights clearance with Gmail, OpenAI, and Google Drive/Sheets
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Google Drive and Google Sheets. It also calls rights.example, labels.example and production.example over HTTP.
How it runs
Trigger: On Gmail events.
- Normalize Production and Cue Text (Code): runs custom JavaScript code
- Extract Music Cue Rights (Information Extractor): extracts structured fields from text with AI, with model: Power Cue Sheet Extractor
- Validate Extracted Cues (Code): runs custom JavaScript code
- Fetch PRO Work Registrations (HTTP Request): calls rights.example (POST)
- Fetch Master Ownership Claims (HTTP Request): calls labels.example (POST)
- Merge: merges the data from its input branches
- Calculate Clearance Gaps (Code): runs custom JavaScript code
- Draft Rights Clearance Packet (Basic LLM Chain): sends a prompt to an LLM, with model: Power Clearance Packet Drafter
- Build Supervisor Review Packet (Code): runs custom JavaScript code
- Send Packet for Music Supervisor Approval (Gmail): uses Gmail
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: rights.example, labels.example, production.example
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Watch Incoming Cue Sheets).
Nodes used (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors Gmail for cue-sheet emails, extracts music-rights data via OpenAI, and cross-checks internal rights APIs. It compiles a clearance packet for supervisor approval, routes gaps or commits approved records to production, and…