This workflow automates the process of receiving a post-call audio file and transcription from ElevenLabs, processing them, and generating a financial risk report.
The workflow fully automates the process from raw input (audio/transcript) to final delivery (email report), eliminating manual intervention.
It leverages language models to:
Automatically extracts critical business information, reducing human error and ensuring standardized outputs.
The webhook-based architecture allows the system to handle large volumes of interviews in parallel without additional effort.
Each step (audio processing, extraction, scoring, reporting) is modular, making it easy to:
Generates clean, ready-to-send HTML reports compatible with email clients, improving communication with stakeholders.
Audio files are stored in Google Drive, ensuring:
The evaluation logic ensures that all interviews are assessed using the same criteria, reducing subjective bias.
Receiving and Routing Data: The workflow starts with a Webhook that listens for incoming data from ElevenLabs. A Switch node then routes the data based on the body.type field.
post_call_audio, the workflow processes the audio.post_call_transcription, the workflow processes the transcription.Audio Processing Path: For an audio file, a Code node extracts the Base64 audio data and the conversation_id from the webhook payload. It converts the Base64 string into a binary audio buffer (MP3). This binary data is then passed to a Google Drive node, which uploads the file to a specified folder (the user's root folder).
Transcription Processing Path: For a transcription, a Set node extracts the transcript array from the payload. A subsequent Code node processes this array, combining all messages from the conversation into a single, readable full text string, prefixed by the speaker's role.
Data Enrichment and Analysis: The full transcript text is then used by two nodes in parallel:
gpt-5-mini) to extract structured data from the text, specifically the company_name, the CEO's name, the address, and the vat_number.score, a final verdict (POSITIVE/NEUTRAL/NEGATIVE), and a reason based on the interviewee's responses. Its output is parsed by a Structured Output Parser to ensure it is valid JSON.Report Generation and Delivery: The outputs from the Information Extractor and Calculate Rating nodes are merged into a single data object. This object is passed to the Financial Report Generator, a final LangChain node that acts as a professional analyst. Using the merged data (company details, score, verdict, etc.), it generates a polished, formatted HTML email body. Finally, a Gmail node sends this HTML report as an email to the specified recipient.
Configure Credentials:
gpt-5-mini model.Configure Webhook:
Update Node Parameters:
folderId) is not the root.[email protected]) and verify the email subject line formatting.Activate Workflow: Once all credentials and parameters are set, toggle the workflow from active: false to active: true in the n8n editor to start listening for webhook calls.
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Contact me for consulting and support or add me on Linkedin.