Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
Revert "chore: Removing dead code"
Clémence Lesné0417b728cbf9
diff --git a/helpers/config_models/prompts.py b/helpers/config_models/prompts.pyindex de8a620..e1e9435 100644--- a/helpers/config_models/prompts.py+++ b/helpers/config_models/prompts.py@@ -399,7 +399,7 @@ class LlmModel(BaseSettings):return build_logger(__name__)-class TtsModel(BaseSettings):+class TtsModel(BaseSettings, env_prefix="prompts_tts_"):tts_lang: str = "en-US"calltransfer_failure_tpl: str = ("It seems I can't connect you with an agent at the moment, but the next available agent will call you back as soon as possible."@@ -529,7 +529,7 @@ class TtsModel(BaseSettings):return build_logger(__name__)-class PromptsModel(BaseSettings):+class PromptsModel(BaseSettings, env_prefix="prompts_"):llm: LlmModel = LlmModel() # Object is fully defined by defaultsounds: SoundModel = SoundModel() # Object is fully defined by defaulttts: TtsModel = TtsModel() # Object is fully defined by defaultdiff --git a/helpers/config_models/workflow.py b/helpers/config_models/workflow.pyindex 204231f..56ec9fb 100644--- a/helpers/config_models/workflow.py+++ b/helpers/config_models/workflow.py@@ -68,7 +68,7 @@ class LanguageModel(BaseSettings):)-class WorkflowModel(BaseSettings):+class WorkflowModel(BaseSettings, env_prefix="workflow_"):agent_phone_number: PhoneNumberbot_company: strbot_name: str