How do i get the assistant to speak back the resul...
# support
s
Trying again... How do i get the assistant to speak back the results of the tool call? (make) When i leave the success message blank, it for some reason autofill's it to a different functions complete message field. Which is terrible UX... PLEASE HELP... https://cdn.discordapp.com/attachments/1345109800228229322/1345109800664698950/image.png?ex=67c35a9f&is=67c2091f&hm=bf9229ddc3cc876d36f3d898d5202fad40985970536f6067f083299529c0ce86&
v
To get your Vapi assistant to speak back the results of a tool call, you need to ensure that the server response is formatted correctly. Hereโ€™s how you can do it: 1. **Server Response Format**: Make sure your server sends back a response in the following JSON format after processing a tool call:
Copy code
json
   {
       "results": [
           {
               "toolCallId": "X",
               "result": "Y"
           }
       ]
   }
- **`toolCallId` (X)**: A unique identifier for each tool call. - **`result` (Y)**: The output from the tool's execution. 2. **Configure Tool Messages**: In your tool configuration, ensure you define the messages properly. For example:
Copy code
json
   "messages": [
       { "type": "request-start", "content": "Checking the weather forecast. Please wait..." },
       { "type": "request-complete", "content": "The weather in location is" },
       { "type": "request-response-delayed", "content": "It appears there is some delay in communication with the weather API." }
   ]
Regarding the issue with the success message autofilling incorrectly when left blank, here are some steps to troubleshoot: 1. **Check API Request Formatting**: Ensure that your API request includes all necessary fields and that they are correctly formatted. If the success message is left blank, Vapi may default to using a different message. 2. **Set Explicit Messages**: To avoid default filler messages, explicitly set the message array to empty or provide a specific message. For example:
Copy code
json
   "messages": [
       { "type": "request-complete", "content": "" }
   ]
3. **Review Server Logs**: If the success message does not appear as expected, check the server logs for any error messages that might provide insights into the issue.
By following these steps, you should be able to configure your assistant to speak back the results correctly and address the autofill issue. If you continue to experience problems, feel free to reach out for more help! ๐Ÿ˜Š Sources: - [Configuring VAPI Assistant to Speak Back Tool Call Results](https://docs.vapi.ai/tools/custom-tools) - [Report on VAPI Success Message Autofill Incorrectly](https://discord.com/channels/1211482211119796234/1211483291191083018/1328923059905630238) - [Known Issues Affecting Message Autofill in VAPI](https://discord.com/channels/1211482211119796234/1211483291191083018/1341585041624666122)
s
@Vapi Support Bot Tool Messages Request Start Message Message shown when the tool starts executing. This message is never triggered for async tools. If not provided, a default message like "Hold on a sec" will be used. Let me see here... Request Delayed Message Message shown when the tool execution is taking longer than expected or when the user talks while processing. This message is never triggered for async tools. Sorry about that... Give me a second. Request Completed Message Message shown when the tool completes successfully. For async tools, this is triggered immediately without waiting for server response. If not provided, the model will generate a response. Request Failed Message Message shown when the tool execution fails. This message is never triggered for async tools. If not provided, the model will generate an error response. Jeez, I am having some issues with my system! this is from the dashboard, not API. I know how it works on the API, but the dashboard is not working correctly
v
I understand you're having issues with the Tool Messages section on the dashboard. It sounds like the dashboard is not behaving as expected, especially with the success message autofilling incorrectly. Here are a few things you can try to resolve this: 1. **Check Default Messages**: If the success message field is left blank, the dashboard may default to a generic message. Make sure to explicitly set a custom message to avoid this. 2. **Clear Cache**: Sometimes, clearing your browser's cache or trying a different browser can help resolve display issues on the dashboard. 3. **Review Configuration**: Double-check your tool message configurations to ensure everything is set up correctly. If the dashboard is not saving your changes, consider using the API to set the messages directly. 4. **Report the Issue**: If the problem persists, it might be a bug in the dashboard. Reporting this to the support team with details can help them address the issue. Let me know if you need further assistance! ๐Ÿ˜Š Sources: - [Configuring VAPI Assistant to Speak Back Tool Call Results](https://docs.vapi.ai/tools/custom-tools) - [Report on VAPI Success Message Autofill Incorrectly](https://discord.com/channels/1211482211119796234/1211483291191083018/1328923059905630238) - [Known Issues Affecting Message Autofill in VAPI](https://discord.com/channels/1211482211119796234/1211483291191083018/1341585041624666122)
k
Hey! To help track down this issue, could you share: - The call ID - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!