awake-maroonA

Voice Agent can't read the response(results) data

I have just setup a voice agent that makes a tool call to an api endpoint that returns data in this format:
{
"results": [
{
"toolCallId": "call_pKkNod7t791RIuox",
"result": "Organization: EduTech University\nIndustry: Education\nAccount Status: Active\nAccount Tier: Standard\nOpen Tickets: 4\nSatisfaction Score: 4.3/5.0\nPrimary Contact: Dr. Mary Wambui (Director of ICT)\nEmail: mary.wambui@edutech.ac.ke\nPhone: +254-724-890123\nLast Contact: 2024-09-14\nContract Value: KES 8,500,000\nServices: Campus Network Infrastructure, Educational Technology Solutions, Student Data Security, Remote Learning Platforms"
}
]
}

The above is dummy data.

The voice agent keeps saying that it is still waiting for a response yet the api request was made and responded appropriately according to vapi.ai api docs. Kindly help fix this.
image.png
image.png
Was this page helpful?