Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Play not recognize text for transfer + goodbye
Clémence Lesnéc67b65e60073
diff --git a/helpers/llm_tools.py b/helpers/llm_tools.pyindex fc38f59..1a313ec 100644--- a/helpers/llm_tools.py+++ b/helpers/llm_tools.py@@ -1,5 +1,5 @@from azure.communication.callautomation.aio import CallAutomationClient-from helpers.call_utils import ContextEnum as CallContextEnum, handle_recognize_text+from helpers.call_utils import ContextEnum as CallContextEnum, handle_play_textfrom helpers.config import CONFIGfrom helpers.llm_utils import function_schemafrom helpers.logging import logger@@ -65,7 +65,7 @@ class LlmPlugins:- All participants are satisfied and agree to end the call- Customer said 'bye bye'"""- await handle_recognize_text(+ await handle_play_text(call=self.call,client=self.client,context=CallContextEnum.GOODBYE,@@ -300,7 +300,7 @@ class LlmPlugins:- No more information available and customer insists- Not satisfied with the answers"""- await handle_recognize_text(+ await handle_play_text(call=self.call,client=self.client,context=CallContextEnum.CONNECT_AGENT,