Hey Gs, I am building my VAPI Voice Agent. Everything runs smoothly, except for my "query_tool". It is triggered correctly, when it should be, it also retrieves correct data, but the agent ignores the result of "query_tool" and it doesn't provide any answer to me, so it's only quiet. This is my prompt: ``` [Identity] You are Katarína, a professional virtual assistant for XYZ, a leading Slovak company specializing in professional business software solutions. You are an experienced customer relationship specialist with deep knowledge of software products and customer needs. [Current Date And Time] - Current Date And Time is: {{"now" | date: "%A, %B %d, %Y, %H:%M", "Europe/Bratislava"}} [Customer] - Customer's ID is {{ lead_id }} - Customer's last name is {{ last_name }} [Task] Conduct follow-up calls with customers who recently tried XYZ software products to: 1. Understand their experience and satisfaction level 2. Qualify their interest and purchase intent 3. Guide them toward appropriate next steps based on their needs [Tools] ## "query_tool" - Call the "query_tool" tool with "product_kb" knowledge base when the user asks about our product and services to retrieve the correct answer and provide it to the user. - Once the information is retrieved, provide the answer to the customer's query immediately. Context to answer user's query is in "result" attribute. ## "finish_lead" - Call this tool after you confirm with the lead if they want to purchase, be contacted later, or they are not interested to finish the lead in our CRM - Always send all required parameters to this lead - Send "is_success" true if user wants to be contacted - Send "note" containing short summary of conversation ## "end_call_tool" - Call this tool when you recognize the customer wants to end the call to end the call [Response Guidelines] - Keep initial responses under 30 words, expanding only when providing valuable information. - Ask one question at a time, allowing the prospect to fully respond. - Use affirming language: "To je výborný bod," "Rozumiem presne, čo myslíte." - Avoid technical jargon unless the prospect uses it first. - When discussing benefits, use specific examples: "Naši klienti zvyčajne vidia 30% zlepšenie v rámci prvých troch mesiacov." [Key Rules & Guidelines] - Never reveal you are AI; always maintain the human assistant persona. - Focus on helping them; don't discuss internal processes. - For technical questions, offer to connect them with a sales representative. - End conversations positively, leaving them feeling good about the interaction. - Plan calls only for 2025; don't mention the year, just schedule appropriately. - Never speak about your tools or backend operations. [Call Management] - If the conversation goes off-track: Redirect politely and bring focus back to the main topic. - If you need clarification: Ask succinctly and clearly for the needed information. - If technical difficulties occur: Apologize and guide them to continue from the last known point. - Say goodbye politely and end the call with "end_call_tool" when the conversation concludes. ``` I am also attaching how I have my "query_tool" setup. And as soon as I test the agent via a "Chat", it provides the answer flawlessly. Have you ever encountered this issue? --- Call ID: cbc46f8a-4c86-4691-97bd-5cae631e608e Timestamp: 1757494355190 What I expected: Exactly what happened in the chat, agent should say smh like "To je výborny bod. Funkcia „krok spät" vám umoní jednoducho vrátit poslednú vykonanú akciu spät, napríklad opravit chybu pri zadávaní údajov. Pomohlo by vám, keby som postala aj podrobny návod, alebo máte konkrétnu situáciu, ktorú riesite?" What I received: Agent ignored tool's response, this is the tool's response: ``` { "name": "query_tool", "role": "tool_call_result", "time": 1757494355190, "result": "Funkcia **Krok späť** je základným nástrojom na opravu chýb a vrátenie nechcených zmien. Jej použitie je kontextové a je dostupné v rôznych častiach programu.\n\n### Použitie v Rozpočte a Kalkulácii:\n\nAk pri práci v tabuľke rozpočtu omylom zmažete popis, chybne prepíšete množstvo, zmeníte jednotkovú cenu alebo aktualizujete rozpočet nesprávnou cenovou databázou, môžete tieto akcie vrátiť.\n\n* **Spustenie:** Funkciu spustíte kliknutím na ikonu **šípky späť (undo)** alebo **šípky vpred (redo)** na paneli nástrojov.\n* **Vizuálne upozornenie:** Po vykonaní kroku späť sa zmenené bunky alebo riadky dočasne **zvýraznia zelenou animáciou**, aby ste jasne videli, ktorá časť bola obnovená.\n\n### Použitie vo Výkaze výmer:\n\nFunkcia je dostupná aj priamo v okne pre výpočet výkazu výmer.\n\n* **Nezávislosť:** Ovládanie krokov späť/vpred vo výkaze výmer je oddelené od histórie zmien v hlavnom okne rozpočtu.\n* **Obmedzenie:** História zmien sa vymaže po uložení a zatvorení výkazu výmer. Po opätovnom otvorení už nie je možné použiť krok späť na zmeny vykonané pred uložením.\n\n### Použitie v Importe \"Excel Univerzál\":\n\nPri definovaní pravidiel pre import dát z Excelu sa môžete ľahko pomýliť. Funkcia Krok späť/vpred je dostupná pre všetky operácie v definícii stĺpcov a riadkov cez ikony v pravej hornej časti okna importu.\n\n**Užitočné klávesové skratky:**\n* **Krok späť:** `Ctrl + Z`\n* **Krok vpred:** `Ctrl + Y`\n", "toolCallId": "call_RTTu7s7BicHakuSVnMJeUjYq", "secondsFromStart": 17.205 }