<@865531204849500190> thanks for the office hours ...
# office-hours
o
@Shubham Bajaj thanks for the office hours tip on how to prompt the assistant to make sure it uses a tool. I'm trying this with assistant ID 6ca81081-15d7-4d0f-ba04-74be87ece8a5 This is my system prompt : Say:
I will now fetch a book passage
and trigger the
Book-tool
tool. My Book-tool should send a request to a Cloudflare Worker. I can confirm this works because the if I test the tool in its configuration panel, I get the right response. The tool id is ce78aed1-4a83-4535-8a59-3bc730799824 What happens when I test the assistant is that it seems to start giving me a response, it stops, the starts over and gives me a response from its own knowledge, not from my endpoint. You can check some logs in this call log ID : dd526652-6990-4ef8-bc9d-897a9b128fd1 Everything seems to be fine, Cloudflare's logs see the incoming request, does not get the required message, but sends a response anyways. In the Vapi logs, I see in the messages section that the tool was called and a result was returned, but the assistant doesn't want to use it : { "role": "bot", "time": 1743111994528, "source": "", "endTime": 1743111995008.001, "message": "I will", "duration": 480.0009765625, "secondsFromStart": 22.08 } { "role": "tool_calls", "time": 1743111995956, "message": "", "toolCalls": [ { "id": "toolu_01SCaVU9ajnbgiSkp3EtZ668", "type": "function", "function": { "name": "Book_tool", "arguments": "{\"hint\": \"book\"}" } } ], "secondsFromStart": 20.606 } { "name": "Book_tool", "role": "tool_call_result", "time": 1743111996708, "result": "Success.", "toolCallId": "toolu_01SCaVU9ajnbgiSkp3EtZ668", "secondsFromStart": 21.358 }