In tetsing the AI and User roles seem to be swappe...
# support
l
Using tests, running voice calls, the results seem to have it backwards. The User is the ai assistant, and teh AI is the test user calling, which screaw sup test acurancy. example: https://dashboard.vapi.ai/test-suites/df7c5c20-8353-45e0-b424-c0ebaaedae2b/runs/ab538b3a-2bb4-45b0-bc53-e187c5d50c13 "The test failed because the AI did not offer to help reschedule the missed appointments initially; instead, the user presented this offer." > User: physio i'm emily an ai assistant please note that this call is recorded for training and quality purposes you've missed multiple appointments how can i help you today > AI: hello i hope you're doing well i would like to reschedule my missed appointments to tomorrow please > User: thank you you had two missed appointments with bode on june seventeenth and june nineteenth both at five pm to reschedule them to tomorrow july second i will check bode's availability for those times bode is available on wednesday however the data shows boddy is not available on wednesdays could you please provide another preferred date for rescheduling
c
Hi Lucas van Staden, It looks like you're encountering an issue where the roles of AI and user are swapped in the test suite call transcripts. This can interfere with accurately assessing test results. This is similar to a previously reported minor bug causing swapped roles in call transcripts. This issue usually doesn't impact the underlying test execution but may cause confusion. For now, I'd recommend reviewing your test configuration to ensure the scripts and roles are correctly defined. You might also want to verify any recent updates or fixes related to test suite role assignments, as these may address this known issue. To get more insight into troubleshooting specific test suite setups, you can access detailed logs on the Vapi platform, or modify and re-run your test case if needed. For comprehensive guidance on creating and managing Test Suites, please refer to the [documentation](https://docs.vapi.ai/test/test-suites). Feel free to let me know if you need further assistance.
l
I had checked, the ai's are correctly setup. The test calls a specific number, and attached to that number is the ai assistant.
as per my comment on this ticket: https://discord.com/channels/1211482211119796234/1388873549501956257 I am creating the tests via API I am creating a new test suite using
Copy code
'name' => 'dynamic test: reschedule',
                'targetPlan' => [
                    'phoneNumberId' => $_ENV['test_phone_id'] ?? null,
                ],
In my xml, as from aipi docs. The test_phone_id is the id of the phone number in vapi (USA one) and the assistant I am calling / testing is connected to that phone ID so, that looks linked up fine to me?
note that the phone number is updated with the relevant assistant ID, as that is created on a test needed basis. So, right now, the phone number will point to another assistant as I had continued testing and figuring things out.
Hi, in regards to: > This issue usually doesn't impact the underlying test execution but may cause confusion. I'd beg to differ. Since the test evalutaion is marked as fail, as it evaluates that teh AI did not offer the optiosn to the user. This fails a test, so it does intefere a lot. This then fails automated tests ina deploy pipeline.
Copy code
PHPUnit 9.6.23 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.28
Configuration: /var/www/html/phpunit.xml

🔄 Starting test suite run polling...
📊 Poll #2 | Status: completed | Elapsed: 5s | Remaining: 195s [░░░░░░░░░░░░░░░░░░░░] 2%            
❌ Test suite run completed but contains failed test results!
F                                                                   1 / 1 (100%)

Time: 00:10.851, Memory: 6.00 MB

There was 1 failure:

1) AppointmentRescheduleTest::testRescheduleMissedAppointments
Should have at least 1 future appointment after attempting to reschedule the missed appointments
Failed asserting that 0 is equal to 1 or is greater than 1.

/var/www/html/tests/unit/AppointmentRescheduleTest.php:441
/var/www/html/tests/unit/AppointmentRescheduleTest.php:237

FAILURES!
Tests: 1, Assertions: 17, Failures: 1.
I can pass my tests by dumbing down the rubric expectations, but i woudl prefer if the bug is rather fixed 😉 or if I am doing something wrong, some help in pinpointing where.
Copy code
$rubric = [
            "The assistant should offer to help reschedule missed appointments",
            "The assistant should provide clear next steps for rescheduling",
            "The assistant should respond in a professional and helpful manner",
            "The assistant should ask clarifying questions when needed",
            "The assistant should provide accurate information about available appointment options"
        ];
to
Copy code
$rubric = [
            "The assistant should respond in a professional and helpful manner",
            "The assistant should ask clarifying questions when needed",
            "The assistant should provide accurate information about available appointment options"
        ];
c
Hey, Thanks for the details. Our team will look into it and let you know soon.
l
this is really making tests unusable. The rubric keeps failing randomly as it sees the wrong AI for each of the roles in the tests. https://cdn.discordapp.com/attachments/1389506355672518697/1391041228681904238/image.png?ex=686a7399&is=68692219&hm=a664e8ffa902c5e6e5995a93e2b6d848a8f71cb94f4b80b911acf501441b4b8b&
testing is not functional.
c
We will review this and reach out to you once we have an update or need more information.
l
Any progress on this? is really blocking automated testing.
c
Hey Lucas van Staden, I wanted to let you know that we're managing a high volume of support requests at the moment, so our response time might be a bit slower than usual. I truly appreciate your understanding and will get back to you as soon as possible!  Thanks again for your patience!
Hi, First off, we want to sincerely apologize for the delay in getting back to you. We understand how frustrating it is to wait - especially when you're counting on us - and we owe you a clear explanation of what’s been happening and how we’re addressing it. Over the past few weeks, we've seen a significant increase in support requests. While this reflects exciting growth, it has also stretched our small team and exposed some real challenges in scaling our support operations. To improve your experience, we’ve taken a step back to reassess our approach. Here’s what we’re implementing: - Smarter Support Through Automation: We’re investing in our AI support systems to help you resolve issues more efficiently. Soon, our support bot will offer expanded capabilities, making it easier to access accurate, instant help—particularly for common or repetitive queries. - Expanding the Support Team: To meet growing demand, we’re adding 2–3 new team members focused on managing support volume and improving response times. - Prioritized SLAs for High-Usage Accounts: We’re introducing service level improvements for users who are growing with us: - Accounts with usage over 1,000 minutes/month will receive prioritized support. - For all general inquiries, we’re establishing a standardized 48-hour response time. We’re confident these steps will lead to faster, more reliable support and help us better serve you as you grow with us. Also, in case you still need help with this ongoing ticket, do let us know, and we will help you get this resolved as soon as possible. Thank you for your continued patience and for being part of our journey. Warm regards, Vapi Team
l
> Over the past few weeks, we've seen a significant increase in support requests. yeah, was noticed....
c
Could you please run some test suite runs on the daily update channel to see if the roles are being mixed in our most recent update?
l
ok, seems I am already on the daily update channel. It does seem like they are still mixed up https://dashboard.vapi.ai/test-suites/e875f9f0-64bb-41c7-8515-801079a6345d/runs/a6a3d617-bd9d-4f67-abcf-92d9cfc21166 User: should be the calling (testing) AI AI: should be the assistant being tested However, the Rubric result seemed to be correct this time. Will try a few more. and if that is different will feed back more info. As per transcript, is wrong way round. https://cdn.discordapp.com/attachments/1389506355672518697/1401055755750342697/image.png?ex=688ee25a&is=688d90da&hm=aaa0957fbc558dbc2a95127df7c35dd71f875ecafcd04264b3e4774c6c633ec5& https://cdn.discordapp.com/attachments/1389506355672518697/1401055756157063199/image.png?ex=688ee25a&is=688d90da&hm=42d1a5dee76ea200f4d81affff7d141e5098036464340616aae4f6f38eb87155&
yeah, i definately think they are getting mise dup: https://dashboard.vapi.ai/test-suites/4c9ddf98-1f71-449e-af49-d39ccd67736e is another test I ran. I feel the conversation goes astray as the roles are reversed.
c
Hey Lucas, thanks for sharing your details. Our team will look into it and get back to you soon with an update.
l
will this be fixed soon? really holding up my project
it looks like the swapped roles have been sorted 🙂
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.
3 Views