Automation library · Data collection

Gate film and TV music cue rights clearance with Gmail

Started by an arriving email, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 22 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 10Service 7

The steps in the order they run, from what starts it.

  1. 1Watch Incoming Cue SheetsGmail triggerStarts it
  2. 2Power Cue Sheet ExtractorLm Chat Open AiModel
  3. 3Power Clearance Packet DrafterLm Chat Open AiModel
  4. 4Normalize Production and Cue TextCodeLogic
  5. 5Extract Music Cue RightsInformation ExtractorModel
  6. 6Draft Rights Clearance PacketChain LlmModel
  7. 7Validate Extracted CuesCodeLogic
  8. 8Build Supervisor Review PacketCodeLogic
  9. 9Fetch PRO Work RegistrationsHttp RequestService
  10. 10Fetch Master Ownership ClaimsHttp RequestService
  11. 11Send Packet for Music Supervisor ApprovalGmailService
  12. 12Merge Rights EvidenceMergeLogic
  13. 13Wait for Supervisor ApprovalWaitLogic
  14. 14Calculate Clearance GapsCodeLogic
  15. 15Validate Supervisor ResponseCodeLogic
  16. 16Route Clearance ApprovalIfLogic
  17. 17Commit Approved Cue ClearanceHttp RequestService
  18. 18Return Packet for Rights Follow-UpGmailService
  19. 19Keep Committed ClearanceCodeLogic
  20. 20Keep Follow-up ClearanceCodeLogic
  21. 21Archive Clearance EvidenceGoogle DriveService
  22. 22Append Cue Clearance LedgerGoogle SheetsService

How it's built

Starts on
An arriving email
Steps
22, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Google Sheets accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.