Case 05 · n8n · AI Agents

AI Call Processing & Analytics

End-to-end automation of call processing: audio ingestion, transcription, AI analysis, result storage, and statistics you can query from an AI Agent in plain language.

  • 3 workflowsinterconnected into a single system
  • every 2 minutesnew calls are checked automatically
  • 3 sentiment classespositive, negative, neutral
  • 2 KPIstotal call count and negative call share

Calls come in regularly, but reviewing them is still manual work

Context. Incoming calls need to be processed on a regular basis — their sentiment and topic identified, results stored, and a manager able to pull statistics for any given period quickly.

Problem. Without automation, calls must be transcribed and reviewed by hand before any statistics can be assembled. This creates constant operational overhead and makes aggregate reporting difficult.

Three connected workflows instead of manual work

The first workflow finds unprocessed calls, transcribes them, runs AI analysis, and stores the result. The second calculates statistics for a given period. The third lets a manager query those statistics from an AI Agent using plain language.

Call processing

  1. Google Sheetscall list and status
  2. Schedulerevery 2 minutes
  3. Call Processingpick unprocessed call
  4. AssemblyAItranscription
  5. AI Analysissentiment & category
  6. Data Tableanalysis result
  7. Google Sheetsstatus DONE

Statistics request

  1. User Chatquestion in plain language
  2. Call Stats Agentdetermines the period
  3. Get Call StatsstartDate, endDate
  4. Data Tablerecords for the period
Three published workflows in n8n. M06 - Call Stats Agent, M06 - Call Processing, and M06 - sub - Get Call Stats in the Module-06 folder.

How each workflow is structured

Select a workflow to see its steps and the graph in n8n.

M06 · Call Processing

The main workflow. Every 2 minutes the Schedule Trigger reads Google Sheets and selects an unprocessed call. The audio is sent to AssemblyAI and the workflow waits until transcription completes, then the AI Agent analyses the text. The result is written to the Data Table and the source row receives the status DONE.

If transcription ends with an error, execution is halted by the Stop and Error node, and that call is excluded from the analysis results.

  1. Schedule Trigger and Get row(s) in sheet: read the call list from Google Sheets
  2. URL and Extract URL: prepare the audio link
  3. POST /transcript to AssemblyAI: start transcription
  4. Wait and GET transcript: poll until the result is complete or error
  5. AI Agent (Google Gemini Chat Model and Structured Output Parser): extract sentiment and category
  6. Upsert row(s) in Data Table and Update row in sheet: save the result, set status DONE
M06 - Call Processing. The full path of a call from the schedule trigger to status DONE.

Data: what comes in and what gets stored

Google Sheets is the source of the call list and processing status. AI analysis results are stored separately in the n8n Data Table.

Sentiment

The overall tone of the conversation.

  • positive
  • negative
  • neutral
Category

The topic of the call.

  • cake quality
  • delivery quality
  • other
Call link

A direct link to the original call recording, so you can go back to the source from any analysis result.

Input: Google Sheets

A spreadsheet with two columns: "Call link" and "Status". The workflow picks an unprocessed row and, after analysis, writes the status DONE back to that row.

Google Sheets. Source data and processing status.

Output: n8n Data Table

The M06 - Call Analysis table stores the call link (call_url), sentiment, and category for each call, along with the system fields id, createdAt, and updatedAt. Get Call Stats queries this table to build the statistics.

M06 - Call Analysis. AI analysis results in the n8n Data Table.

Results

The process runs without manual triggering: each new unprocessed call goes through the full cycle, gets an AI evaluation, is saved to the Data Table, and the source row is marked DONE.

Check interval 2 minutes
Connected workflows 3
Sentiment classes 3
Statistics metrics 2
  • Automatic check for new records every 2 minutes
  • AI evaluation of sentiment and category for every call
  • Period statistics: total call count and negative share
  • Natural-language statistics queries via AI Agent

Limitations. The system distinguishes three sentiment classes and three categories, and tracks two metrics. Quantitative business outcomes such as time savings or conversion uplift were not measured in this project and are therefore not reported here.

Technologies

  • n8n
  • AI Agents
  • AssemblyAI
  • Google Sheets
  • n8n Data Tables
  • LLM / Chat Model
  • API integrations

See the full system in action.

Watch the demo