hrubasek
hrubasek3w ago

Current conversation transcript

Hey guys. I want to make a chatbot where when the user is not satisified with the answer I get an email. How do I set up transcript API's ? Thanks
16 Replies
Steve B. | IntelleSync.ai
@hrubasek Do you have a set workflow or is it a dynamic conversation? Either way you can send an email via gmail tool in the agent step.
hrubasek
hrubasekOP3w ago
@Steve B. | IntelleSync.ai but how do I get the transcript?
ben.stt
ben.stt3w ago
@hrubasek yes i have the same problem
hrubasek
hrubasekOP3w ago
@ben.stt Yeah It would be great if VF would make a tutorial on transcripts API since its one of the most essential thing for customers. Especially now when VF dropped the new transcripts it would come handy...
ben.stt
ben.stt3w ago
@hrubasek I want to have an automation where I can get all message for a conversation of each new users and make a resume to send by e-mail to my client but I think it’s impossible to make it for the moment
hrubasek
hrubasekOP3w ago
@Steve B. | IntelleSync.ai any help please?
Rishav
Rishav3w ago
u can use their transcript api for this i also save chat in my database but for this i use coding
Steve B. | IntelleSync.ai
Firstly, how will the user indicate if they don't like the answer?
hrubasek
hrubasekOP3w ago
By saying so. The query will be avaluated as “wrong answer” and then I want to use the transcripts api to send myself the conversation… Thats what I am struggling with. Do you mind sharing the code?
Rishav
Rishav3w ago
use this function block
Steve B. | IntelleSync.ai
OK great, you can use the transcript API to do this but using conversation memory might be easier. Check out @W. Williams (SFT) template for doing this. https://www.voiceflow.com/templates/pull-transcript
Pull your current conversation's transcript
A simple workflow that answers questions using the data contained within the knowledge base and allows you to get the current conversation's transcript.
hrubasek
hrubasekOP3w ago
Thanks so much thats great! @Steve B. | IntelleSync.ai Sorry to bother you one more time.. I am getting this error over limit 1000000. I dont know what to do with it. You cant delete content of transcript... Is there a way to modify the function to fetch only last day and not 7 days? Or any other way? Thanks so much. @W. Williams (SFT) any help please?
hrubasek
hrubasekOP3w ago
No description
Rishav
Rishav3w ago
ok i will find solution of it
Steve B. | IntelleSync.ai
@hrubasek Sure, you just have to adjust the range in the fetch endpoint.
// Fetch transcripts for the specified project and user
const transcriptsUrl = `https://api.voiceflow.com/v2/transcripts/${trimmedProjectId}?range=Last%207%20Days`;
// Fetch transcripts for the specified project and user
const transcriptsUrl = `https://api.voiceflow.com/v2/transcripts/${trimmedProjectId}?range=Last%207%20Days`;
Change to this:
https://api.voiceflow.com/v2/transcripts/${trimmedProjectId}?range=Today
https://api.voiceflow.com/v2/transcripts/${trimmedProjectId}?range=Today
hrubasek
hrubasekOP3w ago
@Steve B. | IntelleSync.ai I tried that and I am still getting error over limit 1000000 The issue seems to be that I have too many transcripts under my project ID and the function fails when it tries to fetch the latest transcript...

Did you find this page helpful?