Abdul Ahad
04/23/2025, 10:50 PMVapi Support Bot
04/23/2025, 10:52 PMjavascript
// Configure your tool with async parameter for server communication
const toolConfig = {
toolId: "your-tool-id",
async: true,
server: {
url: "https://your-server.com/endpoint",
secret: "your-api-key" // Will be sent as x-vapi-secret header
}
};
When triggered, Vapi will send a request to your server with the extracted data. Your server should respond with:
json
{
"results": [{
"toolCallId": "incoming-id-from-request",
"result": "Your response data"
}]
}
Sources:
- [Vapi Tools Documentation](https://docs.vapi.ai/tools)
- [Vapi Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)
- [Vapi Server URL Events Documentation](https://docs.vapi.ai/server-url/events)Kings_big💫
04/24/2025, 6:36 AMAbdul Ahad
04/24/2025, 2:20 PMKings_big💫
04/24/2025, 2:47 PM