#No response yet. Still waiting for a
1 messages · Page 1 of 1 (latest)
Hey,
Based on the logs it seems like conversation ends with agent asking "Can I send in your order now?" but he doesn't receive a confirmation
This is what actually happened
Agent said: "Can I send in the order?" or "Should I place the order?"
Agent did NOT: Actually call the CustomerRequest tool/function
Result: The order was never placed - it was just talked about
So there might be few potential issues
The agent is asking for permission instead of taking action. Common causes:
- Prompt/Instructions Issue: The agent's system prompt might say "ask before doing things" but doesn't clarify when to actually execute
- Tool Description Unclear: The CustomerRequest tool might not clearly indicate when it should be called
- Confidence Issue: The agent isn't confident enough to make the tool call
- Missing Trigger: The tool calling logic doesn't recognize the conversation context as ready for order placement
There are few ways of fixing such a problem
Option 1: Improve Agent Instructions
When the user confirms they want to place the order, you MUST:
- Call the CustomerRequest tool with all required parameters
- Wait for the tool response
- Confirm the order ID to the user
Do not ask "should I place the order?" - just place it after confirmation.
Option 2: Fix Tool Description
Make the CustomerRequest tool description clearer about when to call it:
{
"name": "CustomerRequest",
"description": "Place a customer order. Call this immediately when the user confirms they want to place the order. Required parameters: customer_name, order_items, delivery_address."
}
Also to make sure, please test your agent. After finding problematic conversation open it, switch to transcription tab and create tests by adding additional messages
{
role: "user",
message: "Yes, please send the order"
}
I did confirm the request, but perhaps the agent could not hear it and therefore didn't transcribe it. Even if it didn't hear it, therefore not invoking the tool, it was supposed to generate a response from the turn timeout, but instead ended with websocket conneciton error :"This conversation failed with the following reason: Generating the LLM response took too long." Do you know why that is?