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

ux: Always answer with positive vibe

Clémence Lesnéa2903aff2f44
diff --git a/helpers/call_events.py b/helpers/call_events.py
index 7327b07..7048678 100644
--- a/helpers/call_events.py
+++ b/helpers/call_events.py
@@ -17,6 +17,7 @@ from models.message import (
MessageModel,
PersonaEnum as MessagePersonaEnum,
remove_message_action,
+ StyleEnum as MessageStyleEnum,
)
from helpers.call_utils import (
ContextEnum as CallContextEnum,
@@ -246,6 +247,7 @@ async def on_ivr_recognized(
await handle_play(
call=call,
client=client,
+ style=MessageStyleEnum.CHEERFUL,
text=await CONFIG.prompts.tts.welcome_back(call),
)
call = await load_llm_chat(