https://discord.gg/botpress logo
help with twilio call recording which has botpress...
# 🤝help
p
i'm trying to download calls for twilio calls, but i don't see any callSid in botpress event logs, how are we supposed to record if this is not present? https://cdn.discordapp.com/attachments/1460180264872316940/1460180265065512960/79DB9CB7-B744-49EB-A794-43EC03E9BDB6.png?ex=697b1258&is=6979c0d8&hm=53409e7fd9ccf1bd1b1e6e9f593def538ff8705f835eaf2501227a25de0cb4b4&
l
If you still don’t see CallSid, double‑check that the event you are inspecting is a voice call (SMS events won’t have a CallSid) and that the webhook URL is reachable by Twilio.
Based on your screen shot these seem to be texts right?
p
happened the same with calls. but found it through events
how can you run a python or js file in botpress after the whole flow is executed? i need this to run the below code, and i'm having this doubt as this is serverless. RECORDING_SID= "RE7f2be222353dfe4c07b4f4250e74***58" audio_url = f"https://api.twilio.com/2010-04-01/Accounts/{ACCOUNT_SID}/Recordings/{RECORDING_SID}.mp3" response = requests.get( audio_url, auth=(ACCOUNT_SID, AUTH_TOKEN), stream=True ) response.raise_for_status() with open("recording.mp3", "wb") as f: for chunk in response.iter_content(chunk_size=8192): f.write(chunk) print("Recording saved as recording.mp3")
yup, done. thank you.
2 Views