Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Introduction prompt is never spoken

Clémence Lesné4ff8b7397ce5
diff --git a/helpers/call_events.py b/helpers/call_events.py
index c2f1a35..7746649 100644
--- a/helpers/call_events.py
+++ b/helpers/call_events.py
@@ -228,7 +228,7 @@ async def on_ivr_recognized(
call
) # Persist language change, if the user calls back before the first message, the language will be set
- if not call.messages: # First call
+ if len(call.messages) <= 1: # First call, or only the call action
await handle_recognize_text(
call=call,
client=client,