rudra
05/05/2025, 1:23 PMVapi Support Bot
05/05/2025, 1:24 PMjavascript
// Create a custom tool configuration
const calendarTool = {
type: "function",
function: {
name: "getCalendarEvents",
description: "Fetches events from customer's Google Calendar",
parameters: {
type: "object",
properties: {
startDate: { type: "string", format: "date" },
endDate: { type: "string", format: "date" }
},
required: ["startDate"]
}
}
}
Add this tool to your assistant configuration and implement the server endpoint that handles OAuth authentication with Google Calendar API.
Sources:
- [Vapi Documentation](https://docs.vapi.ai/tools)
- [Discord Discussion](https://discord.com/channels/1211482211119796234/1331991829717188680)Kings_big💫
05/05/2025, 1:31 PMrudra
05/12/2025, 8:00 AMKings_big💫
05/12/2025, 2:56 PMRaph
05/13/2025, 12:00 AMKings_big💫
05/13/2025, 2:41 AM