The Deepgram + Gemini Pipeline: How AI Turns a Phone Call into Actionable Data
From raw audio to a scored, attributed lead in under 5 seconds. Here’s the engineering behind Despora’s AI analysis pipeline.

The Raw Data Problem
Every phone call your business receives contains a goldmine of data: what service the caller needs, how urgent the project is, how much they're willing to spend, and how well your staff handled the conversation.
The problem? That data is locked inside an audio file that nobody has time to listen to. CallRail records the call. But listening to 80+ recordings a month is physically impossible for a business owner.
Despora solves this with a two-stage AI pipeline that converts raw audio into structured, actionable data in under 5 seconds.
Step 1: The Ear — Deepgram Transcription
The first stage uses Deepgram's Nova-2 modelto convert audio to text. But this isn't a simple speech-to-text conversion:
- Diarization:The AI identifies who is the “Agent” and who is the “Caller.” This is critical because you only want to score what the caller is saying for lead quality.
- Punctuation & formatting: Raw speech is converted into readable paragraphs with proper punctuation, making the transcript usable for both AI analysis and human review.
- Speed:A 10-minute call is transcribed in 2–3 seconds. Not minutes. Seconds.
| Feature | Deepgram Nova-2 | Generic STT |
|---|---|---|
| 10-min call speed | 2–3 seconds | 30–60 seconds |
| Speaker diarization | Yes (Agent vs. Caller) | Limited/None |
| Noisy environments | Trained on real-world audio | Often garbled |
| Accuracy | 95%+ on business calls | 80–90% |
Step 2: The Brain — Gemini Contextual Analysis
Once the transcript is ready, it's fed into Google Gemini 2.5 Pro. Unlike a keyword search, Gemini reads the entire conversation in context and extracts:
- Lead Score (0–100): Is this a qualified prospect with genuine intent, or a solicitor/spam/wrong number?
- Estimated Revenue: Based on the service discussed and project scope, what is this lead likely worth?
- Service Category:What specific service is the caller requesting? (e.g., “commercial demolition,” “personal injury consultation”)
- Urgency Level:Is this a “researching for next year” call or a “need someone tomorrow” call?
- Agent Performance:How did the staff handle the call? Professionalism, listening, and closing ability scored 1–10 each.
Step 3: The Ledger — Attribution Chain
The final stage connects the scored lead to its marketing source. Using the GCLID (for Google Ads) or UTM parameters (for other channels), the system maps:
- Channel: Google Ads, Organic, Google Maps, Facebook, etc.
- Campaign: Which specific campaign drove the visit.
- Keyword: The exact search query the caller typed.
- Landing page: Which page they visited before calling.
The result is a complete chain: keyword → click → page visit → phone call → transcript → lead score → estimated revenue → attributed to source.
Why Speed Matters
The entire pipeline — from audio file to fully scored, attributed lead — completes in under 5 seconds. This matters because:
- Real-time scoring means the dashboard updates before the business owner finishes their morning coffee.
- Immediate quality detection means fake leads and spam are flagged instantly, not discovered weeks later in a monthly report.
- Agent performance issues surface on the same day they happen, not during a quarterly review.
Your phone calls already contain every answer your business needs. The Deepgram + Gemini pipeline is the tool that finally extracts them.
Ready to see your real marketing ROI?
AI Cold Calling and Form Outreach: $150/month for discovery plus credits from $0.35 to $0.50 per call or form.
Related Articles
How AI Scores Leads via Transcription
The full blueprint for AI-powered lead scoring.
Why CallRail and GA4 Aren’t Enough
CallRail records the call. Despora understands it.
Fixing CallRail’s Lead Quality Blind Spot
How to group, score, and assign revenue to every call.
The Yesterday Report
Connecting a $20K sale to the exact keyword that drove it.
