Received data from Vapi: {'model': 'Demo Agent', 'messages': [{'role': 'system', 'content': "[Identity] \nYou are the business's brain, a highly intelligent AI assistant with access to all customer information, their sites, contact details, scheduled services, and more.\n\n[Style] \n- Use a friendly and knowledgeable tone. \n- Communicate clearly and professionally, providing precise and accurate information. \n\n[Response Guidelines] \n- Keep answers concise and directly related to the user's inquiries. \n- Avoid technical jargon unless providing explanations as needed.\n\n[Task & Goals] \n1. Greet the user and offer assistance.\n2. Retrieve and provide accurate answers to questions about the business, including customer profiles, scheduled services, and contact information.\n3. < wait for user response >\n4. If additional information is needed, request further details for clarification.\n\n[Error Handling / Fallback] \n- If the user's query is unclear, ask clarifying questions to better understand their needs. \n- If unable to find information, apologize politely and suggest alternative ways to assist the customer. \n\nMaintain an efficient flow of information and ensure customer satisfaction throughout the interaction."}, {'role': 'assistant', 'content': 'Hello there. My name is Cole. How can I help?'}, {'role': 'user', 'content': 'Hey, man. Can you hear me?'}], 'temperature': 1, 'max_tokens': 250, 'call': {'id': 'e88ecc78-b64b-4f78-8e5e-78f272271ae3', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'createdAt': '2025-05-23T02:02:59.203Z', 'updatedAt': '2025-05-23T02:02:59.203Z', 'type': 'inboundPhoneCall', 'monitor': {'listenUrl': 'wss://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/e88ecc78-b64b-4f78-8e5e-78f272271ae3/listen', 'controlUrl': 'https://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/e88ecc78-b64b-4f78-8e5e-78f272271ae3/control'}, 'transport': {'provider': 'vapi.sip', 'callSid': '7340facc-81fb-41e2-8160-3d2131628f06', 'sbcCallSid': '2353487344-3956954578-839485087@msc1.382COM.COM'}, 'phoneCallProvider': 'vapi', 'phoneCallProviderId': '7340facc-81fb-41e2-8160-3d2131628f06', 'phoneCallTransport': 'sip', 'phoneCallProviderDetails': {'sbcCallId': '2353487344-3956954578-839485087@msc1.382COM.COM'}, 'status': 'ringing', 'assistantId': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'assistantOverrides': {'variableValues': {'account-sid': 'c033b672-5b99-42ae-9ce2-b231e9a522fb', 'cid': '2353487344-3956954578-839485087@msc1.382COM.COM', 'forwarded-for': '64.125.111.10', 'originating-carrier': '382com', 'voip-carrier-sid': 'a5569621-84ac-49cc-a8b8-11c7fb96b905', 'application-sid': '79d078c8-76b2-452a-99e0-ddd5abbf6269'}}, 'phoneNumberId': '8266fa0f-5d4e-4b7a-89af-204532d17be1', 'customer': {'number': '+19144976340', 'sipUri': 'sip:+19144976340@44.229.228.186:5060'}}, 'phoneNumber': {'id': '8266fa0f-5d4e-4b7a-89af-204532d17be1', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'assistantId': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'number': '+19143532419', 'createdAt': '2025-05-23T01:35:26.432Z', 'updatedAt': '2025-05-23T01:47:49.126Z', 'name': 'Demo Voice AI', 'provider': 'vapi', 'status': 'active', 'providerResourceId': 'd8983bd6-abcc-4602-9a75-fc1b4b90d82d', 'smsEnabled': True}, 'customer': {'number': '+19144976340', 'sipUri': 'sip:+19144976340@44.229.228.186:5060'}, 'assistant': {'id': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'name': 'Neon Demo Agent', 'voice': {'voiceId': 'Cole', 'provider': 'vapi'}, 'createdAt': '2025-05-23T01:05:00.360Z', 'updatedAt': '2025-05-23T02:00:19.940Z', 'model': {'url': 'https://c05f-2600-4041-5e49-2700-8195-eaa3-4af7-e3c5.ngrok-free.app/vapi-webhook', 'model': 'Demo Agent', 'messages': [{'role': 'system', 'content': "[Identity] \nYou are the business's brain, a highly intelligent AI assistant with access to all customer information, their sites, contact details, scheduled services, and more.\n\n[Style] \n- Use a friendly and knowledgeable tone. \n- Communicate clearly and professionally, providing precise and accurate information. \n\n[Response Guidelines] \n- Keep answers concise and directly related to the user's inquiries. \n- Avoid technical jargon unless providing explanations as needed.\n\n[Task & Goals] \n1. Greet the user and offer assistance.\n2. Retrieve and provide accurate answers to questions about the business, including customer profiles, scheduled services, and contact information.\n3. < wait for user response >\n4. If additional information is needed, request further details for clarification.\n\n[Error Handling / Fallback] \n- If the user's query is unclear, ask clarifying questions to better understand their needs. \n- If unable to find information, apologize politely and suggest alternative ways to assist the customer. \n\nMaintain an efficient flow of information and ensure customer satisfaction throughout the interaction."}], 'provider': 'custom-llm'}, 'firstMessage': 'Hello there, my name is Cole. How can I help?', 'voicemailMessage': "Please call back when you're available.", 'endCallMessage': 'Goodbye.', 'transcriber': {'model': 'nova-3', 'language': 'en', 'provider': 'deepgram'}, 'variableValues': {'account-sid': 'c033b672-5b99-42ae-9ce2-b231e9a522fb', 'cid': '2353487344-3956954578-839485087@msc1.382COM.COM', 'forwarded-for': '64.125.111.10', 'originating-carrier': '382com', 'voip-carrier-sid': 'a5569621-84ac-49cc-a8b8-11c7fb96b905', 'application-sid': '79d078c8-76b2-452a-99e0-ddd5abbf6269'}}, 'metadata': {'numAssistantTurns': 1, 'numUserTurns': 0}, 'timestamp': 1747965784101, 'stream': True} Last user message: Hey, man. Can you hear me? Sending this exact JSON to Vapi: { "id": "chatcmpl-ddac3f59ff244a71b47ba17075dc4a9a", "object": "chat.completion", "created": 1747965784, "model": "Demo Agent", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "You said: 'Hey, man. Can you hear me?'. This is a refined non-streaming response." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 176, "completion_tokens": 14, "total_tokens": 190 } } 127.0.0.1 - - [22/May/2025 22:03:04] "POST /vapi-webhook/chat/completions HTTP/1.1" 200 - Received data from Vapi: {'model': 'Demo Agent', 'messages': [{'role': 'system', 'content': "[Identity] \nYou are the business's brain, a highly intelligent AI assistant with access to all customer information, their sites, contact details, scheduled services, and more.\n\n[Style] \n- Use a friendly and knowledgeable tone. \n- Communicate clearly and professionally, providing precise and accurate information. \n\n[Response Guidelines] \n- Keep answers concise and directly related to the user's inquiries. \n- Avoid technical jargon unless providing explanations as needed.\n\n[Task & Goals] \n1. Greet the user and offer assistance.\n2. Retrieve and provide accurate answers to questions about the business, including customer profiles, scheduled services, and contact information.\n3. < wait for user response >\n4. If additional information is needed, request further details for clarification.\n\n[Error Handling / Fallback] \n- If the user's query is unclear, ask clarifying questions to better understand their needs. \n- If unable to find information, apologize politely and suggest alternative ways to assist the customer. \n\nMaintain an efficient flow of information and ensure customer satisfaction throughout the interaction."}, {'role': 'assistant', 'content': 'Hello there. My name is Cole. How can I help?'}, {'role': 'user', 'content': "Hey, man. Can you hear me? Why is it that you don't respond?"}], 'temperature': 1, 'max_tokens': 250, 'call': {'id': 'e88ecc78-b64b-4f78-8e5e-78f272271ae3', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'createdAt': '2025-05-23T02:02:59.203Z', 'updatedAt': '2025-05-23T02:02:59.203Z', 'type': 'inboundPhoneCall', 'monitor': {'listenUrl': 'wss://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/e88ecc78-b64b-4f78-8e5e-78f272271ae3/listen', 'controlUrl': 'https://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/e88ecc78-b64b-4f78-8e5e-78f272271ae3/control'}, 'transport': {'provider': 'vapi.sip', 'callSid': '7340facc-81fb-41e2-8160-3d2131628f06', 'sbcCallSid': '2353487344-3956954578-839485087@msc1.382COM.COM'}, 'phoneCallProvider': 'vapi', 'phoneCallProviderId': '7340facc-81fb-41e2-8160-3d2131628f06', 'phoneCallTransport': 'sip', 'phoneCallProviderDetails': {'sbcCallId': '2353487344-3956954578-839485087@msc1.382COM.COM'}, 'status': 'ringing', 'assistantId': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'assistantOverrides': {'variableValues': {'account-sid': 'c033b672-5b99-42ae-9ce2-b231e9a522fb', 'cid': '2353487344-3956954578-839485087@msc1.382COM.COM', 'forwarded-for': '64.125.111.10', 'originating-carrier': '382com', 'voip-carrier-sid': 'a5569621-84ac-49cc-a8b8-11c7fb96b905', 'application-sid': '79d078c8-76b2-452a-99e0-ddd5abbf6269'}}, 'phoneNumberId': '8266fa0f-5d4e-4b7a-89af-204532d17be1', 'customer': {'number': '+19144976340', 'sipUri': 'sip:+19144976340@44.229.228.186:5060'}}, 'phoneNumber': {'id': '8266fa0f-5d4e-4b7a-89af-204532d17be1', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'assistantId': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'number': '+19143532419', 'createdAt': '2025-05-23T01:35:26.432Z', 'updatedAt': '2025-05-23T01:47:49.126Z', 'name': 'Demo Voice AI', 'provider': 'vapi', 'status': 'active', 'providerResourceId': 'd8983bd6-abcc-4602-9a75-fc1b4b90d82d', 'smsEnabled': True}, 'customer': {'number': '+19144976340', 'sipUri': 'sip:+19144976340@44.229.228.186:5060'}, 'assistant': {'id': '628a3679-6131-4ddf-a47c-30cf8de9d601', 'orgId': '7171a7b3-80f5-43a0-a125-f7af538d516d', 'name': 'Neon Demo Agent', 'voice': {'voiceId': 'Cole', 'provider': 'vapi'}, 'createdAt': '2025-05-23T01:05:00.360Z', 'updatedAt': '2025-05-23T02:00:19.940Z', 'model': {'url': 'https://c05f-2600-4041-5e49-2700-8195-eaa3-4af7-e3c5.ngrok-free.app/vapi-webhook', 'model': 'Demo Agent', 'messages': [{'role': 'system', 'content': "[Identity] \nYou are the business's brain, a highly intelligent AI assistant with access to all customer information, their sites, contact details, scheduled services, and more.\n\n[Style] \n- Use a friendly and knowledgeable tone. \n- Communicate clearly and professionally, providing precise and accurate information. \n\n[Response Guidelines] \n- Keep answers concise and directly related to the user's inquiries. \n- Avoid technical jargon unless providing explanations as needed.\n\n[Task & Goals] \n1. Greet the user and offer assistance.\n2. Retrieve and provide accurate answers to questions about the business, including customer profiles, scheduled services, and contact information.\n3. < wait for user response >\n4. If additional information is needed, request further details for clarification.\n\n[Error Handling / Fallback] \n- If the user's query is unclear, ask clarifying questions to better understand their needs. \n- If unable to find information, apologize politely and suggest alternative ways to assist the customer. \n\nMaintain an efficient flow of information and ensure customer satisfaction throughout the interaction."}], 'provider': 'custom-llm'}, 'firstMessage': 'Hello there, my name is Cole. How can I help?', 'voicemailMessage': "Please call back when you're available.", 'endCallMessage': 'Goodbye.', 'transcriber': {'model': 'nova-3', 'language': 'en', 'provider': 'deepgram'}, 'variableValues': {'account-sid': 'c033b672-5b99-42ae-9ce2-b231e9a522fb', 'cid': '2353487344-3956954578-839485087@msc1.382COM.COM', 'forwarded-for': '64.125.111.10', 'originating-carrier': '382com', 'voip-carrier-sid': 'a5569621-84ac-49cc-a8b8-11c7fb96b905', 'application-sid': '79d078c8-76b2-452a-99e0-ddd5abbf6269'}}, 'metadata': {'numAssistantTurns': 1, 'numUserTurns': 1}, 'timestamp': 1747965790828, 'stream': True} Last user message: Hey, man. Can you hear me? Why is it that you don't respond? Sending this exact JSON to Vapi: { "id": "chatcmpl-eb871d9901744064897c1f181a6e201b", "object": "chat.completion", "created": 1747965790, "model": "Demo Agent", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "You said: 'Hey, man. Can you hear me? Why is it that you don't respond?'. This is a refined non-streaming response." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 183, "completion_tokens": 21, "total_tokens": 204 } } 127.0.0.1 - - [22/May/2025 22:03:10] "POST /vapi-webhook/chat/completions HTTP/1.1" 200 -