Automation library · Content

Use OpenAI to transcribe audio + summarize with Gmail

Started by an event in a connected app, and works across Gmail, Google Drive and Telegram. It hands the judgement calls to OpenAI. 25 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

25 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 2Model 5Logic 8Service 10

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

  1. 1Start WorkflowManual triggerStarts it
  2. 2On File Created TriggerGoogle Drive triggerStarts it
  3. 3Search Google DriveGoogle DriveService
  4. 4Gmail User for ApprovalGmailService
  5. 5Filter by .m4a extensionFilterLogic
  6. 6Limit to last fileLimitLogic
  7. 7Download audio fileGoogle DriveService
  8. 8Transcribe with OpenAIOpen AiModel
  9. 9Set ConfigSetLogic
  10. 10Summarize to JSONOpen AiModel
  11. 11Summarize to Structured JSONOpen AiModel
  12. 12Save Raw Transcript to Google DriveGoogle DriveService
  13. 13Convert JSON to MarkdownOpen AiModel
  14. 14Get Filename for JSONSetLogic
  15. 15Merge All PathsMergeLogic
  16. 16Get Filename for MarkdownSetLogic
  17. 17Save JSON file to Google DriveGoogle DriveService
  18. 18Send Telegram MessageTelegramService
  19. 19Email Content FormatterOpen AiModel
  20. 20Save Markdown file to Google DriveGoogle DriveService
  21. 21Get JSON File MetaGoogle DriveService
  22. 22Send Gmail MessageGmailService
  23. 23Get Markdown File MetaGoogle DriveService
  24. 24Prepare Response JSONSetLogic
  25. 25Prepare Response MarkdownSetLogic

How it's built

Starts on
An event in a connected app
Steps
25
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Telegram
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

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 25 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 25 steps before you point it at anything that matters.