I am creating an agent to interact with restaurant customers on whatsapp to book reservations. I have created a tool “send a message” when my agent needs to collect information from customer.
When I test my agent, it receives the customer message (reservation request), and prepares the answer, but it does not use the tool “send a message” to send the answer to the customer. Here are the logs from my test and the blue print from my “send a message” tool.
Can anybody have a look and tell me why it does not complete the desired workflow ?
envoyer_message.blueprint (7).json (12.2 KB)
debug agent (2).pdf (108.9 KB)
1 Like
Hey @Vanessa_Davin, this is a common gotcha with Agents and tool execution.
Based on your logs, the agent is deciding not to call the tool, which usually means one of three things:
1. Tool description isn’t explicit enough
The agent needs to understand when to use the tool. In your tool’s description, try being very prescriptive:
Use this tool to send ANY response to the customer. You MUST call this tool to deliver your message. Never respond without using this tool first.
2. The agent thinks it has already responded
If your agent’s system prompt mentions “responding to customers,” it might treat the response as the action. Make sure your prompt says something like:
To communicate with customers, you must use the ‘send a message’ tool. Your text output alone does not reach the customer.
3. Tool trigger conditions
Check if your tool has any filter conditions that might not be matching. Sometimes a small mismatch (such as expecting a specific format) can silently prevent execution.
Quick debug: In your agent’s system prompt, add this line temporarily:
After preparing any response, always confirm out loud: ‘Now I will use the send_message tool to deliver this.’
This forces the agent to think through the tool call and often reveals where the logic breaks.
Let me know what your tool description currently says. I’m happy to take a closer look!
Thanks Chris for your reply. Actually, since I was blocked and had other issues linkedin to Whatsapp, I decided to proceed differently (with Whatsapp flows and integrating an AI module at a later stage) so my question is no longer pending.
Thanks anyway for your feedback !
1 Like