Google Event Create
# support
n
I attached my google account with inside vapi, and created the tool to check availability and create event to book appointment. But that is not working , I want to test the tool but that is asking about Post Url configuration and also help me with timezone. Please help me with it I cant able to book appoitment
v
Hi there! 👋 I'd be happy to help you with your Google Event Create tool in Vapi. I don't have specific information about the Google Event Create tool itself, but I can definitely help you with the Post URL configuration, timezone settings, and testing your tool. ## Post URL Configuration The Post URL in Vapi (also called server URL) can be configured at different levels: 1. **Where to configure**: You can set the server URL at four different levels - Account-wide, Phone Number, Assistant, or Function level. The URL with the highest priority will be used for the relevant event [according to Vapi documentation](https://docs.vapi.ai/server-url/setting-server-urls). 2. **For webhook functionality**: The Assistant Server URL is treated as a webhook. When configuring it, make sure to include: - The function name and required endpoint - Necessary parameters (attendee name, date, time, notes) - Correct headers and authentication tokens (if required) - Appropriate HTTP method (usually POST for webhooks) 3. **For local testing**: If you're developing locally, you can use ngrok to create a secure tunnel to your local machine:
Copy code
ngrok http 8080  # Replace 8080 with your server's port
Then use the ngrok forwarding URL as your server URL [as mentioned in the documentation](https://docs.vapi.ai/server-url/developing-locally). ## Timezone Settings For timezone configuration, you can: 1. Set timezone in the system prompt using the following format:
Copy code
{{ "now" | date: "%b %d, %Y, %I:%M %p", "America/New_York" }}
Replace "America/New_York" with your desired timezone [as referenced in Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325196797102260304). 2. Include current date and time at the beginning of your prompt:
Copy code
The current date is {{"now" | date: "%A, %B %d, %Y", "America/New_York"}} and the time is {{"now" | date: "%I:%M %p", "America/New_York"}}
This helps resolve timezone issues [according to user discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334271734332784773). ## Testing Your Tool To test your Google Event Create tool: 1. **Ensure proper association**: Verify that the tool is properly associated with your assistant [as mentioned in Discord](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333245023319494707). 2. Troubleshooting steps if the tool isn't working: - Check that the webhook configuration is correct - Verify the URL and tool name match exactly what's expected - Confirm the HTTP method is correct (usually POST) - Review Vapi logs for any errors - Check that API credentials and permissions are set up correctly 3. **Browser issues**: If you encounter a "Tool creation failed" error, try clearing your browser cache, disabling extensions, or using a different browser [as suggested in troubleshooting discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336399188665040968). Is there anything specific about these configurations you'd like me to explain further? Sources: - [Setting Server URLs at Different Levels](https://docs.vapi.ai/server-url/setting-server-urls) - [Developing Locally and Using Ngrok](https://docs.vapi.ai/server-url/developing-locally) - [Setting Timezone in System Prompt](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325196797102260304) - [Example of Setting Date and Time with Timezone](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334271734332784773) - [General Steps for Testing a Custom Tool in Vapi](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333245023319494707) - [General Troubleshooting Steps](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335141023600480318)
n
could u send me the video instruction for the same
I am struggling to understand
p
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!