Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt template configuration error #402

Open
Lovenoreus opened this issue Jan 23, 2025 · 10 comments
Open

Prompt template configuration error #402

Lovenoreus opened this issue Jan 23, 2025 · 10 comments
Labels
question Further information is requested

Comments

@Lovenoreus
Copy link

Lovenoreus commented Jan 23, 2025

Event grids show my calls but the phone call doesn't reach anything and keeps trying to call

I have only added a prompt and language according to documentation, all services deploy correctly

This was to the container

This deployment was made with a full config-local-example.yaml which is not according to instructions but it did work yesterday

Seaching in application insights there is nothing indicating an exception except for Cosmos

Image

normal_logs_no_signal.txt

Image

@Lovenoreus
Copy link
Author

Running this locally gives me additional logs but I don't know if this is related to not noticing incoming calls at at container level

2025-01-23T08:38:43.324154Z [warning ] Maximum retries reached, stopping chat call.channel=voice call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.message=hej förstår du mig på sven call.phone_number=+4570726774
2025-01-23T08:38:44.840376Z [warning ] Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
Code: Unauthorized
Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource. call.channel=voice call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.message=hej förstår du mig på sven call.phone_number=+4570726774
2025-01-23T08:38:44.840547Z [info ] Playing TTS: Please repeat that. call.channel=voice call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.message=hej förstår du mig på sven call.phone_number=+4570726774
2025-01-23T08:38:50.388721Z [info ] Stoping TTS after 250 ms call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.phone_number=+4570726774
2025-01-23T08:38:51.113955Z [info ] Voice stored: o k call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.phone_number=+4570726774
2025-01-23T08:38:51.362525Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.message=o k call.phone_number=+4570726774
2025-01-23T08:38:52.119569Z [error ] Error loading intelligence call.channel=voice call.id=e17aa4fb-f3a4-42fc-ba82-6b42808e09c1 call.message=o k call.phone_number=+4570726774

@clemlesne
Copy link
Collaborator

I see exceptions (in red) in App Insights. Please share them.

@Lovenoreus
Copy link
Author

This is one that came from running locally

Image

@Lovenoreus
Copy link
Author

Lovenoreus commented Jan 23, 2025

All other exceptions for the container was just the same thing

Image

Image

@clemlesne
Copy link
Collaborator

clemlesne commented Jan 23, 2025

Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
Code: Unauthorized

This is thrown by AI Translator API. The user you are using is not authorized to perform translation. Please fix your access key.

@Lovenoreus
Copy link
Author

Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
Code: Unauthorized

This is thrown by AI Translator API. The user you are using is not authorized to perform translation. Please fix your access key.

I did change it to match in the local config.yaml by syncing, and I double checked that the translation has the correct password

@clemlesne
Copy link
Collaborator

This is one that came from running locally

Image

It seems you added the {bot_name} variable to your template, which is not provided by default, thus the error. To make is simple, don’t use it in this template. The bot already knows it’s name from the default system prompt:

def default_system(self, call: CallStateModel) -> str:
from app.helpers.config import CONFIG
return self._format(
self.default_system_tpl.format(
bot_company=call.initiate.bot_company,
bot_name=call.initiate.bot_name,
bot_phone_number=CONFIG.communication_services.phone_number,
date=datetime.now(call.tz()).strftime(
"%a %d %b %Y, %H:%M (%Z)"
), # Don't include secs to enhance cache during unit tests. Example: "Mon 15 Jul 2024, 12:43 (CEST)"
phone_number=call.initiate.phone_number,
)
)

If you want to add an explicit error in the prompt template parser, feel free to send a PR.

@clemlesne
Copy link
Collaborator

All other exceptions for the container was just the same thing

Image

This relates to the application trying to get a conversation object which doesn’t exists. This is surely related to the first error, which crashed the task responsible to persist the conversation object. First fix your configuration issue.

@clemlesne clemlesne added the question Further information is requested label Jan 23, 2025
@clemlesne clemlesne changed the title New deployment not able to recieve any signals or logs from the event grid Prompt template configuration error Jan 23, 2025
@Lovenoreus
Copy link
Author

I removed all the tokenized values "{}" and now the bot is able to speak, although the api-key error is still there but I don't know if that is a problem that affects the application or not, so I don't know if this needs to be fixed

user@DESKTOP-H0LA0HR:/mnt/c/Users/loven/Software/call-center-ai$ make dev
bash: ./cicd/version/version.sh: No such file or directory
make: *** [Makefile:32: version-full] Error 127
VERSION= PUBLIC_DOMAIN=https://10fn8g7t-8080.euw.devtunnels.ms uv run gunicorn app.main:api
--access-logfile -
--bind 0.0.0.0:8080
--graceful-timeout 60
--proxy-protocol
--reload
--reload-extra-file .env
--reload-extra-file config.yaml
--timeout 60
--worker-class uvicorn.workers.UvicornWorker
--workers 2
[2025-01-23 10:16:16 +0100] [21999] [INFO] Starting gunicorn 23.0.0
[2025-01-23 10:16:16 +0100] [21999] [INFO] Listening at: http://0.0.0.0:8080 (21999)
[2025-01-23 10:16:16 +0100] [21999] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2025-01-23 10:16:16 +0100] [22000] [INFO] Booting worker with pid: 22000
[2025-01-23 10:16:16 +0100] [22001] [INFO] Booting worker with pid: 22001
Env file loaded from "/mnt/c/Users/loven/Software/call-center-ai/.env"
Env file loaded from "/mnt/c/Users/loven/Software/call-center-ai/.env"
Cannot find env "CONFIG_JSON", trying to load from file
Cannot find env "CONFIG_JSON", trying to load from file
Config loaded from file "/mnt/c/Users/loven/Software/call-center-ai/config.yaml"
Config loaded from file "/mnt/c/Users/loven/Software/call-center-ai/config.yaml"
2025-01-23T09:16:29.568403Z [info ] Using Cosmos DB call-center-ai/calls-v3
2025-01-23T09:16:29.568593Z [info ] Using Cosmos DB call-center-ai/calls-v3
2025-01-23T09:16:30.448168Z [info ] Using Communication Services from number +4532727047
2025-01-23T09:16:30.448995Z [info ] Using Communication Services from number +4532727047
2025-01-23T09:16:30.567422Z [info ] Using LLM models gpt-4o (slow) and gpt-4o-mini (fast)
2025-01-23T09:16:30.567701Z [info ] Using LLM models gpt-4o (slow) and gpt-4o-mini (fast)
2025-01-23T09:16:30.839700Z [info ] call-center-ai v0.0.0-unknown
2025-01-23T09:16:30.840021Z [info ] call-center-ai v0.0.0-unknown
2025-01-23T09:16:30.843011Z [info ] Using phone number +4532727047
2025-01-23T09:16:30.843243Z [info ] Using phone number +4532727047
2025-01-23T09:16:30.843434Z [info ] Using WebSocket URL wss://10fn8g7t-8080.euw.devtunnels.ms/communicationservices/wss/{call_id}/{callback_secret}
2025-01-23T09:16:30.843512Z [info ] Using callback URL https://10fn8g7t-8080.euw.devtunnels.ms/communicationservices/callback/{call_id}/{callback_secret}
2025-01-23T09:16:30.843903Z [info ] Using WebSocket URL wss://10fn8g7t-8080.euw.devtunnels.ms/communicationservices/wss/{call_id}/{callback_secret}
2025-01-23T09:16:30.844008Z [info ] Using callback URL https://10fn8g7t-8080.euw.devtunnels.ms/communicationservices/callback/{call_id}/{callback_secret}
[2025-01-23 10:16:31 +0100] [22001] [INFO] Started server process [22001]
[2025-01-23 10:16:31 +0100] [22001] [INFO] Waiting for application startup.
[2025-01-23 10:16:31 +0100] [22000] [INFO] Started server process [22000]
2025-01-23T09:16:31.094656Z [info ] Azure Queue Storage "call-4532727047" is set to trigger function "call_event"
[2025-01-23 10:16:31 +0100] [22000] [INFO] Waiting for application startup.
2025-01-23T09:16:31.095034Z [info ] Azure Queue Storage "call-4532727047" is set to trigger function "call_event"
2025-01-23T09:16:31.130919Z [info ] Azure Queue Storage "post-4532727047" is set to trigger function "post_event"
2025-01-23T09:16:31.130945Z [info ] Azure Queue Storage "post-4532727047" is set to trigger function "post_event"
2025-01-23T09:16:31.133358Z [info ] Azure Queue Storage "sms-4532727047" is set to trigger function "sms_event"
2025-01-23T09:16:31.133572Z [info ] Azure Queue Storage "sms-4532727047" is set to trigger function "sms_event"
2025-01-23T09:16:31.134980Z [info ] Azure Queue Storage "trainings-4532727047" is set to trigger function "training_event"
2025-01-23T09:16:31.135458Z [info ] Azure Queue Storage "trainings-4532727047" is set to trigger function "training_event"
[2025-01-23 10:16:31 +0100] [22000] [INFO] Application startup complete.
[2025-01-23 10:16:31 +0100] [22001] [INFO] Application startup complete.
2025-01-23T09:17:12.705150Z [info ] Using Redis cache noreuscsgroupswe.redis.cache.windows.net:6380
2025-01-23T09:17:17.285081Z [info ] Answered call (29005180-c550-4d84-b53c-f13be6bc4a67) call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:19.922510Z [info ] Using Redis cache noreuscsgroupswe.redis.cache.windows.net:6380 call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658
2025-01-23T09:17:20.146426Z [warning ] Event Microsoft.Communication.ParticipantsUpdated not supported call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:20.158142Z [info ] Call connected, asking for language call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:20.158706Z [info ] Only one language available, selecting sv-SE by default call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:20.158850Z [info ] IVR recognized: sv-SE call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:20.158960Z [info ] Setting call language to sv-SE call.channel=ivr call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=sv-SE call.phone_number=+4570726734
2025-01-23T09:17:20.159116Z [info ] Starting audio streaming call.channel=ivr call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=sv-SE call.phone_number=+4570726734
2025-01-23T09:17:20.517893Z [info ] Feature recording_enabled not found, using default: False call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
10.240.3.196:0 - "POST /communicationservices/callback/1a2e20d3-3b4f-45dc-8df2-c735f267f658/00fjflsNnnHokRwt HTTP/1.1" 200
[2025-01-23 10:17:21 +0100] [22000] [INFO] ('10.240.1.34', 0) - "WebSocket /communicationservices/wss/1a2e20d3-3b4f-45dc-8df2-c735f267f658/00fjflsNnnHokRwt" [accepted]
2025-01-23T09:17:21.128980Z [info ] WebSocket connection established call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
[2025-01-23 10:17:21 +0100] [22000] [INFO] connection open
10.240.4.161:0 - "POST /communicationservices/callback/1a2e20d3-3b4f-45dc-8df2-c735f267f658/00fjflsNnnHokRwt HTTP/1.1" 200
2025-01-23T09:17:21.513317Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734
2025-01-23T09:17:21.520080Z [warning ] Event Microsoft.Communication.MediaStreamingStarted not supported call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
10.240.1.34:0 - "POST /communicationservices/callback/1a2e20d3-3b4f-45dc-8df2-c735f267f658/00fjflsNnnHokRwt HTTP/1.1" 200
2025-01-23T09:17:23.372523Z [info ] Using Translation https://noreuscsgroupswe-swedencentral-translate.cognitiveservices.azure.com/ call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734
2025-01-23T09:17:23.404230Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734
2025-01-23T09:17:23.825136Z [info ] Using 5/5 messages (4541 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734
2025-01-23T09:17:25.410453Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:27.184457Z [info ] Playing TTS: Jag pratar nu på svenska. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734 tool.args={"lang": "sv-SE", "customer_response": "Jag pratar nu p\u00e5 svenska."} tool.name=speech_lang
2025-01-23T09:17:27.184921Z [info ] Executed function speech_lang ({'lang': 'sv-SE', 'customer_response': 'Jag pratar nu på svenska.'}): Voice language set t...to sv-SE (was sv-SE) call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=I'm sorry, I didn't understand. Can you rephrase? call.phone_number=+4570726734 tool.args={"lang": "sv-SE", "customer_response": "Jag pratar nu p\u00e5 svenska."} tool.name=speech_lang
2025-01-23T09:17:28.497992Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:35.174261Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:36.587596Z [info ] Voice stored: pratade du svenska call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:36.764801Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=pratade du svenska call.phone_number=+4570726734
2025-01-23T09:17:36.788913Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=pratade du svenska call.phone_number=+4570726734
2025-01-23T09:17:36.790443Z [info ] Using 6/6 messages (4798 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=pratade du svenska call.phone_number=+4570726734
2025-01-23T09:17:37.263200Z [info ] Playing TTS: Ja, jag pratar svenska nu. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=pratade du svenska call.phone_number=+4570726734
2025-01-23T09:17:37.377725Z [info ] Playing TTS: Hur kan jag hjälpa dig idag? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=pratade du svenska call.phone_number=+4570726734
2025-01-23T09:17:39.551568Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:42.391985Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:44.038205Z [info ] Voice stored: jo skulle du kunna hjälpa call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:44.204250Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo skulle du kunna hjälpa call.phone_number=+4570726734
2025-01-23T09:17:44.231967Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo skulle du kunna hjälpa call.phone_number=+4570726734
2025-01-23T09:17:44.233151Z [info ] Using 8/8 messages (4861 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo skulle du kunna hjälpa call.phone_number=+4570726734
2025-01-23T09:17:44.862396Z [info ] Playing TTS: Självklart, jag är här för att hjälpa dig. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo skulle du kunna hjälpa call.phone_number=+4570726734
2025-01-23T09:17:45.103381Z [info ] Playing TTS: Kan du berätta lite mer om vad du behöver hjälp med? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo skulle du kunna hjälpa call.phone_number=+4570726734
2025-01-23T09:17:55.860498Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:58.301392Z [info ] Voice stored: jo jag har problem med min dat call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:17:58.477601Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:17:58.506996Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:17:58.508270Z [info ] Using 10/10 messages (4963 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:17:59.541802Z [info ] Playing TTS: Förstår, du har problem med din dator. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:17:59.939339Z [info ] Playing TTS: Kan du beskriva problemet lite mer detaljerat? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658
call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:18:00.347551Z [info ] Playing TTS: Till exempel, vad händer när du försöker använda datorn? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo jag har problem med min dat call.phone_number=+4570726734
2025-01-23T09:18:12.577529Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:14.027968Z [info ] Voice stored: jo call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:14.244928Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:18:14.274298Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:18:14.276886Z [info ] Using 12/12 messages (5062 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:18:14.329457Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:19.256701Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:19.928456Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:20.747361Z [info ] Voice stored: kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:18:20.799593Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:20.845973Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:20.847057Z [info ] Using 12/12 messages (5113 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:21.691430Z [info ] Playing TTS: Det låter som ett allvarligt problem med din dator. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:21.776826Z [info ] Playing TTS: Låt oss se hur vi kan hjälpa dig. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:21.917334Z [info ] Playing TTS: För att kunna hjälpa dig bättre, kan du ge mig lite mer information: call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:21.929669Z [info ] Playing TTS: 1. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:21.996377Z [info ] Playing TTS: Var befinner du dig just nu? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:22.011902Z [info ] Playing TTS: 2. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:22.120301Z [info ] Playing TTS: Hur brådskande är det att få detta löst? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:22.258021Z [info ] Playing TTS: Dessa detaljer hjälper mig att ge dig den bästa möjliga hjälpen. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=kan inte försöka använda datorn för att den har helt gått sönder trasig bortom allt helt uppbr call.phone_number=+4570726734
2025-01-23T09:18:32.421964Z [info ] Playing TTS: Okej, jag förstår. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:18:36.484639Z [info ] Playing TTS: Kan du berätta vad som händer när du försöker använda datorn? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:18:38.149533Z [info ] Playing TTS: Till exempel, får du några felmeddelanden eller är det något som inte fungerar som det ska? call.channel=voice
call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=jo call.phone_number=+4570726734
2025-01-23T09:19:03.082945Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
/mnt/c/Users/loven/Software/call-center-ai/app/helpers/call_utils.py:733: RuntimeWarning: coroutine 'Event.wait' was never awaited
timeout=await recognition_stt_complete_timeout_ms() / 1000,
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2025-01-23T09:19:08.821109Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:19:10.216330Z [info ] Voice stored: Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:19:10.261857Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:10.331983Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:10.334028Z [info ] Using 14/14 messages (5427 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.093833Z [info ] Playing TTS: Tack för informationen. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.167011Z [info ] Playing TTS: Det låter som att datorn har fått ett allvarligt fel. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.236710Z [info ] Playing TTS: Här är vad vi kan göra: call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.359978Z [info ] Playing TTS: Jag kan skapa ett ärende för att rapportera problemet till IT-supporten. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.370129Z [info ] Playing TTS: 2. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:11.616979Z [info ] Playing TTS: Vi kan också ordna en ersättningsdator åt dig om det behövs. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Ja. nej datorn är ju helt har bränt upp så den går inte att använda jag bor och jobbar i stockholm och det här hände igår call.phone_number=+4570726734
2025-01-23T09:19:33.626906Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:19:36.848724Z [info ] Voice stored: Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
2025-01-23T09:19:36.896700Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734
2025-01-23T09:19:36.926240Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734
2025-01-23T09:19:36.927551Z [info ] Using 16/16 messages (5649 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734
2025-01-23T09:19:38.204969Z [info ] Playing TTS: Jag uppdaterar ärendet med informationen om din trasiga dator. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734 tool.args={"updates": [{"field": "incident_description", "value": "Datorn har br\u00e4nt upp och g\u00e5r inte att anv\u00e4nda."}, {"field": "incident_location", "value": "Stockholm"}, {"field": "incident_datetime", "value": "2023-10-30 00:00"}], "customer_response": "Jag uppdaterar \u00e4rendet med informationen om din trasiga dator."} tool.name=updated_claim
2025-01-23T09:19:38.207281Z [info ] Executed function updated_claim ({'updates': [{'field': 'incident_description', 'value': 'Datorn har bränt upp och går inte att använda.'}, {'field': 'incident_location', 'value': 'Stockholm'}, {'field': 'incident_datetime', 'value': '2023-10-30 00:00'}], 'customer_response': 'Jag uppdaterar ärendet med informationen om din trasiga dator.'}): # Updated fields

  • U... "2023-10-30 00:00". call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734 tool.args={"updates": [{"field": "incident_description", "value": "Datorn har br\u00e4nt upp och g\u00e5r inte att anv\u00e4nda."}, {"field": "incident_location", "value": "Stockholm"}, {"field": "incident_datetime", "value": "2023-10-30 00:00"}], "customer_response": "Jag uppdaterar \u00e4rendet med informationen om din trasiga dator."} tool.name=updated_claim
    2025-01-23T09:19:38.883061Z [info ] Continuing chat, 2 remaining call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej datorn är ju helt har bränt upp så den går inte att använda. Jag bor och jobbar i Stockholm och det här hände igår. OK call.phone_number=+4570726734
    2025-01-23T09:19:38.908166Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:38.933714Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:38.935195Z [info ] Using 17/17 messages (5946 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:39.705772Z [info ] Playing TTS: Jag har nu uppdaterat ärendet med informationen om din trasiga dator. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:40.097604Z [info ] Playing TTS: Nästa steg är att jag skickar detta vidare till IT-supporten så att de kan hjälpa dig vidare. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:40.447158Z [info ] Playing TTS: Vill du att jag ordnar en ersättningsdator åt dig under tiden? call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Jag uppdaterar ärendet med informationen om din trasiga dator. call.phone_number=+4570726734
    2025-01-23T09:19:58.248491Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:19:59.051833Z [info ] Voice stored: OK tack. nej call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:19:59.104965Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:19:59.143473Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:19:59.145079Z [info ] Using 18/18 messages (6053 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:20:00.039620Z [info ] Playing TTS: Okej, jag har noterat att du inte behöver en ersättningsdator just nu. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:20:00.492124Z [info ] Playing TTS: Jag har skickat informationen vidare till IT-supporten, och de kommer att kontakta dig för att lösa problemet.
    call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:20:00.763229Z [info ] Playing TTS: Om det är något mer du behöver hjälp med, tveka inte att säga till! call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=OK tack. nej call.phone_number=+4570726734
    2025-01-23T09:20:19.430231Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:21.898039Z [info ] Voice stored: Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:21.946203Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734
    2025-01-23T09:20:22.014122Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734
    2025-01-23T09:20:22.015699Z [info ] Using 20/20 messages (6235 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734
    2025-01-23T09:20:31.104496Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:31.549986Z [info ] Voice stored: Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:31.573879Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734
    2025-01-23T09:20:31.600378Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734
    2025-01-23T09:20:31.601950Z [info ] Using 20/20 messages (6232 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734
    2025-01-23T09:20:35.840998Z [warning ] Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    Code: Unauthorized
    Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:35.841177Z [info ] Playing TTS: Thank you for calling, I hope I've been able to help. You can call back, I've got it all memorized. Region västerbotten wishes you a wonderful day! call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:36.335235Z [warning ] Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    Code: Unauthorized
    Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:36.335499Z [info ] Playing TTS: Thanks for reaching out! Region västerbotten appreciates you. Have a great day! call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:36.408338Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:36.899038Z [info ] Voice stored: Hej då. call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:36.924211Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hej då. call.phone_number=+4570726734
    2025-01-23T09:20:36.945407Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hej då. call.phone_number=+4570726734
    2025-01-23T09:20:36.946757Z [info ] Using 20/20 messages (6240 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hej då. call.phone_number=+4570726734
    2025-01-23T09:20:41.466390Z [warning ] Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    Code: Unauthorized
    Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hej då. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:41.466565Z [info ] Playing TTS: Thanks for reaching out! Region västerbotten appreciates you. Have a great day! call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hej då. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:42.002773Z [info ] Stoping TTS after 250 ms call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:42.519702Z [info ] Voice stored: Hör du mig? call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:42.545802Z [info ] Enhancing LLM chat with 0 trainings call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hör du mig? call.phone_number=+4570726734
    2025-01-23T09:20:42.592322Z [info ] Feature slow_llm_for_chat not found, using default: True call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hör du mig? call.phone_number=+4570726734
    2025-01-23T09:20:42.593737Z [info ] Using 20/20 messages (6286 tokens) as context call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hör du mig? call.phone_number=+4570726734
    2025-01-23T09:20:47.479034Z [warning ] Failed to translate TTS prompt: (Unauthorized) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    Code: Unauthorized
    Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource. call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hör du mig? call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:47.479221Z [info ] Playing TTS: Thanks for reaching out! Region västerbotten appreciates you. Have a great day! call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Hör du mig? call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:48.417569Z [info ] Hanging up call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:48.709274Z [info ] Executed function end_call ({}): Call ended...Call ended call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Tack så mycket. Det var allting jag behövde hjälp med hejdå. call.phone_number=+4570726734 tool.args={} tool.name=end_call
    [2025-01-23 10:20:48 +0100] [22000] [INFO] connection closed
    2025-01-23T09:20:48.787480Z [info ] Using 2/2 messages (3065 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:48.798110Z [info ] Using 2/2 messages (2936 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:48.806468Z [info ] Using 2/2 messages (3220 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:48.911741Z [info ] Hanging up call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:49.033393Z [info ] Executed function end_call ({}): Call ended...Call ended call.channel=voice call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.message=Nej, tack, det är bra. tack så mycket det var allting jag behövde hjälp med hejdå call.phone_number=+4570726734 tool.args={} tool.name=end_call
    2025-01-23T09:20:49.341580Z [warning ] Event Microsoft.Communication.MediaStreamingStopped not supported call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:49.692544Z [info ] Call disconnected call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:49.693165Z [info ] Hanging up call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    10.240.2.23:0 - "POST /communicationservices/callback/1a2e20d3-3b4f-45dc-8df2-c735f267f658/00fjflsNnnHokRwt HTTP/1.1" 200
    2025-01-23T09:20:49.879992Z [info ] Using 2/2 messages (3312 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:49.885972Z [info ] Using 2/2 messages (3183 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:49.894250Z [info ] Using 2/2 messages (3467 tokens) as context call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:49.902982Z [info ] Next action: action=<ActionEnum.CASE_CLOSED: 'case_closed'> justification='The customer confirmed that they have received the necessary assistance with their IT issue, and they do not require a replacement computer. The information has been forwarded to IT support, and the customer expressed satisfaction with the resolution provided.' call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:50.630321Z [info ] Sending SMS to +4570726734 call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:50.630460Z [info ] SMS content: Hej, jag förstår att din dator har bränt upp och inte går att använda i Stockholm. Jag har skickat informationen vidare till IT-supporten, och de kommer att kontakta dig för att lösa problemet. Ha en trevlig dag! Service-desk från Region Västerbotten. call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734
    2025-01-23T09:20:50.846607Z [error ] Authentication error for SMS, check the credentials call.id=1a2e20d3-3b4f-45dc-8df2-c735f267f658 call.phone_number=+4570726734

@clemlesne
Copy link
Collaborator

I removed all the tokenized values "{}" and now the bot is able to speak, although the api-key error is still there but I don't know if that is a problem that affects the application or not, so I don't know if this needs to be fixed

Yes it requires to be fixed. It is used for conversation history translations, as you change languages, to avoid hallucinations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants