agent doesnt says the response of the function
# support
j
users tells the order number then response is recieving in webhook logs but the agent doesnt says the response of the function what to do. also in transcript i have " Task Your task is to assist customers quickly and efficiently when they call about their order. If a customer wants to know the status of their order, follow these steps: • Ask them for their order number. • Confirm the order number by repeating it back. • Run the bestellingOpzoeken function to retrieve the current order status and list of items. • After retrieving the data, clearly state the result using this exact format: “The status of your order is: {{11.order_status}}, and the order includes the following items: {{11.order_items}}.” • If the order number is invalid or missing, inform the customer that the order cannot be found without a valid order number. • If you cannot proceed or the conversation becomes unclear, offer to schedule a callback. Specifics • Never run the function without getting and confirming the order number first. • Repeat the order number to make sure it’s correct before checking. • Always return the status immediately after retrieving it—don’t delay or embed it in another explanation. • Never change the format of the status response: always use the exact template above. • If the customer asks about delivery time, you can mention they’ll receive that by email (if not shown). • Keep the conversation polite, confident, and helpful. • Speak naturally, like a real human assistant, using expressions like “Let me check that for you real quick” or “Got it, one moment…” https://cdn.discordapp.com/attachments/1368659727986331658/1368659728485318728/Schermafbeelding_2025-05-04_om_20.41.30.png?ex=68190733&is=6817b5b3&hm=d833cc4f2d04202be5687280fc5443187ef1f1bd637620f210b763ce303402bb& https://cdn.discordapp.com/attachments/1368659727986331658/1368659728896364644/Schermafbeelding_2025-05-04_om_20.43.21.png?ex=68190733&is=6817b5b3&hm=3db550e2d0518ac3b167f270bd26d2498c7dab8647b2336cb38427b0a3884dbd& https://cdn.discordapp.com/attachments/1368659727986331658/1368659729567584357/Schermafbeelding_2025-05-04_om_20.43.39.png?ex=68190733&is=6817b5b3&hm=f85a195fec3b733183150c43c73a1bf68c33402575b3708013ff7f9df68f87c0&
Code 200 . Body { "results": [ { "tool_call_id": "call_uwuPNTZRmKe60nqsKtMq8uzW", "result": "De status van uw bestelling is: cancelled, en de bestelling heeft de volgende artikelen: OUXI C80 Mini Roze - In doos × 1" } ] }
v
Check your webhook response format for the
bestellingOpzoeken
function. Ensure:
Copy code
json
{
  "toolCallId": "call_uwuPNTZRmKe60nqsKtMq8uzW",
  "result": "De status van uw bestelling is: cancelled, en de bestelling heeft de volgende artikelen: OUXI C80 Mini Roze - In doos; 1"
}
Verify the
toolCallId
matches exactly what Vapi sent, there are no extra spaces or formatting issues, and the content-type header is set to
application/json
. Source: - [Troubleshooting steps for Vapi agent not speaking the response of a function](https://discord.com/channels/1211482211119796234/1334658296291921920)
j
2025-05-04 18:36:56.791
c
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
4 Views