What This Workflow Does
This n8n workflow automates the process of converting audio files into transcribed text, then analyzes the content for key insights. It accepts audio submissions through two different sources, generates accurate transcripts using Assembly AI, performs sentiment analysis and AI-powered summarization, and automatically delivers the results via email. The entire process is triggered by a form submission and handles both locally uploaded audio files and audio files linked from Google Drive.
How It Works
The workflow begins when a user submits an audio file through a form. It then branches into two execution paths depending on the source of the audio:
- For locally uploaded files, the workflow extracts the file and sends it to Assembly AI for transcription
- For Google Drive links, the workflow retrieves the file from Google Drive before sending it to Assembly AI
- Once transcription is complete, the text is processed through OpenAI for sentiment analysis and summary generation
- The results including the transcript, sentiment analysis, and summary are formatted and sent to the user via Gmail
- Conditional logic ensures the workflow handles errors gracefully and only sends emails when all processing is successful
Use Cases
- Customer feedback analysis: Collect voice messages from customers and automatically generate transcripts with sentiment scores to identify satisfaction levels and key concerns
- Meeting documentation: Upload recorded meetings to automatically create transcripts, summaries, and tone analysis for internal records and follow-up actions
- Content creation: Convert podcast episodes or video audio into text format with AI-generated summaries for blog posts, newsletters, and social media content
- Support ticket automation: Process voice-based support requests by transcribing them and automatically routing them based on sentiment analysis and content classification
- Training and compliance: Record training sessions and automatically generate searchable transcripts with summaries for employee onboarding and compliance documentation
Nodes Used
- Form Trigger: Captures the initial form submission with audio file or Google Drive link
- Wait: Pauses execution when needed to coordinate timing between operations
- If: Routes the workflow based on whether the audio comes from a local upload or Google Drive
- HTTP Request: Handles API calls and file transfers between services
- Assembly AI: Performs speech-to-text transcription of audio files
- OpenAI: Generates AI summaries and performs sentiment analysis on transcribed text
- Google Drive: Retrieves audio files stored in Google Drive when needed
- Gmail: Sends the completed transcript, summary, and sentiment analysis results via email
- Code: Contains custom JavaScript logic for data transformation and processing
- Sticky Note: Provides workflow documentation and notes for maintenance
- No Op: Used as a placeholder or endpoint in conditional branches
Prerequisites
- An n8n account and active workflow environment
- Assembly AI account with API key for speech-to-text transcription
- OpenAI API account with appropriate credits for summary and sentiment analysis
- Gmail account configured for sending automated emails through n8n
- Google Drive account if you plan to use the Google Drive file linking feature
- Basic understanding of workflow logic and node configuration
Difficulty Level
Intermediate. This workflow requires configuration of multiple third-party API integrations including Assembly AI, OpenAI, and Gmail. Users should be comfortable setting up API credentials and understanding conditional logic flows. However, the template provides a ready-made structure that simplifies implementation compared to building from scratch.
This workflow template is shared under the n8n fair-code license. Free to use and modify.
Leave a Reply