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")