https://retellai.com/?utm_source=discord&utm_medium=seo logo
I don't think you need to use function , you can u...
# 💬・general
o
I don't think you need to use function , you can use post call analysis to get the summary, then after the call ends you will receive a webhook that has the summary then you can send it to slack
u
just did that mport json webhook_data = input_data.get('webhook_data', '{}') # Parse the JSON string to a Python object data = json.loads(webhook_data) # Extract the transcript from the parsed data transcript = data.get('call', {}).get('transcript', '') # Prepare the output with the extracted summary im using this to extract the data from the webhook on zapier python code
DO you have any practice to sort it better
o
this will generate a summary after the call you don't need zaiper to generate it for you
then you will receive the call summary in a variable in the webhook in the call_analazyed one
the you can use this variable to send it to slack or where every you want
if you need help let me know
u
Now im getting the whole transcript which is good im trying to get the summary, first name and phone number only
can i do that on the format example area?
o
you can get anything from the call using the post call analysis
u
Thanks much! after creating it do i have to put varaibles in the prompt and the description as well or just saying " get summary of the call"
o
you don't have to do put extra variable in the main prompt
you just have to put a good description in the post call so it can get you what you want