Voiceflow PartnersVPVoiceflow Partners
Powered by
sacred-roseS
Voiceflow Partners•9mo ago•
1 reply
sacred-rose

Transcript Extraction Struggle w/ multiple API Calls, Simpler way?

Hey everyone, I’m having issues with this setup and could use pointers on a cleaner approach:

What we’re trying to do
After-hours/overflow calls come into Voiceflow (client requests). When the call ends, we need the full transcript so we can auto-summarize and follow up—right now we already extract key variables mid-call and push them into our CRM, but we want the full transcript at the end.

Current plan
1. Webhook trigger
Voiceflow fires a runtime.call.end webhook (Settings → Behaviour → Voice → Call Events), also sends start events we don’t need. Note: using Twilio

2. Extract number
Pull data.metadata.userNumber ({USER_NUMBER}) from the payload.

3. List all transcripts
GET: https://api.voiceflow.com/v2/transcripts/%7BPROJECT_ID%7D
→ Huge JSON dump of every transcript.

4. Find the right one
Filter where user.id == "{USER_NUMBER}", sort by createdAt desc, take first ID ({TRANSCRIPT_ID}).

5. Fetch dialogue
GET: https://api.voiceflow.com/v2/transcripts/%7BPROJECT_ID%7D/%7BTRANSCRIPT_ID%7D
→ raw trace objects.

6. Format transcript
Transform traces into a simple conversation block, for example:

Agent: "Hello, ..."
User: "..."
Agent: "Sure..."

Store as {FORMATTED_TRANSCRIPT}.

7. Forward to CRM
POST JSON:
{ "phoneNumber": "{USER_NUMBER}", "transcript": "{FORMATTED_TRANSCRIPT}" }
to {CRM_WEBHOOK_URL} so GHL (or similar) can summarize, log, email, etc.


Rn running steps 1–6 in Flask/NGROK Python script; plan to move to Make.com.

Problems
many API calls w/ heavy client-side filtering for one transcript.
Brittle, slow, huge maintenance headache.
Doesn’t even fully work, yet.

What I really want
Voiceflow’s end-call event to include the transcript ID so i can simplify the request.
Or a single API call like “latest transcript for this number.”

Anyone know of a built-in Voiceflow feature, hidden param, or slick API trick so I don’t have to reinvent the wheel here? Cheers.
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

stop multiple outbound api calls
Lucius_AureliusLLucius_Aurelius / ❓┃ask-a-question
6mo ago
Get Transcript Dialog API
IonIIon / ❓┃ask-a-question
8mo ago
Access to Transcript API
dramatic-maroonDdramatic-maroon / ❓┃ask-a-question
2y ago
Edit Transcript Name via API
MarlonMMarlon / ❓┃ask-a-question
9mo ago