OpenAI Whisper n8n and ChatGPT examples
This n8n workflow is a set of OpenAI examples covering ChatGPT, Whisper transcription and the older Davinci completion and edit endpoints. It is for n8n users learning the OpenAI nodes who want sample calls to copy, such as writing a tl;dr and translating it to German.
What it does
It sends an audio file to whisper-1 for transcription, runs ChatGPT on sample text to summarize and translate, and shows the old text completion and edit calls for comparison. Code and HTML nodes prepare inputs and display outputs.
How to use it
Add an OpenAI credential and run it; pause the sample text node when you use real audio files.
Requirements and limits
The notes warn that Davinci costs about ten times more than ChatGPT and suggest the newer API.
More in ChatGPT and the n8n workflow library.
Full text
Front matter
name: OpenAI-model-examples
description: Triggered manually or by an app event. Connects Code, HTTP request, Html, OpenAI, Read Binary Files. ## The old way of using text completion and text edit ### Davinci model is 10 times more expensive then ChatGPT, consider switching to the new API: {{ $env.API_BASE_URL }} ## Whisper-1 example ### Prepare your audio file and send it to whisper-1 transcription model ## An example of transcribed text ### Please pause this node when using real audio files ## ChatGPT example 1.1 and 1.2 ### Write a Tl;dr of the text input ### Translate it to German ### only user content provided ## ChatGPT example
category: Automation
kind: Workflow
software: Code|HTTP request|Html|OpenAI|Read Binary FilesOpenAI-model-examples
Triggered manually or by an app event. Connects Code, HTTP request, Html, OpenAI, Read Binary Files. ## The old way of using text completion and text edit
Davinci model is 10 times more expensive then ChatGPT, consider switching to the new API:
{{ $env.API_BASE_URL }} ## Whisper-1 example
Prepare your audio file and send it to whisper-1 transcription model ## An example of transcribed text
Please pause this node when using real audio files ## ChatGPT example 1.1 and 1.2
Write a Tl;dr of the text input
Translate it to German
only user content provided ## ChatGPT example
Steps
- When clicking "Execute Workflow" (manualTrigger)
- davinci-003-complete (openAi)
- ChatGPT-ex2 (openAi)
- davinci-003-edit (openAi)
- ChatGPT-ex1.1 (openAi)
- ChatGPT-ex1.2 (openAi)
- Text-example (code)
- Code-ex3.1 (code)
- ChatGPT-ex3.1 (httpRequest)
- ChatGPT-ex3.2 (openAi)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- DALLE-ex3.3 (openAi)
- Sticky Note6 (stickyNote)
- ChatGPT-ex4 (openAi)
- Set-ex4 (set)
- HTML-ex4 (html)
- Sticky Note7 (stickyNote)
- Sticky Note8 (stickyNote)
- ChatGPT-ex (openAi)
- LoadMP3 (readBinaryFiles)
- Whisper-transcribe (httpRequest)
- Sticky Note9 (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.