Booking Webhook not executing
# support
k
Just want to first say hi to everyone, I'm new to using Vapi and all the automations. I just started a week ago and I'm creating an outbound agent that can book appointments, and not too worried about double bookings right now although planning on adding it for the future. Problem #1 I can get through a whole conversation somewhat fluently and it asks all the right questions, but I have to ask the agent to execute the webhook for it to work. In my prompt I have this to try to get the agent to do it on its own "- Once you get the information from the information questions, execute the "Booking_babes" (name of webhook) function immediately to the webhook." but I've never it execute on it's own. Problem #2 and on a side note I'm using open ai's gpt api (gpt 4o mini) to translate into a readable format for google cal and I can't get it to book the right time slot. This is my prompt for that "Format '{{1.message.toolCallList[].function.arguments.
Date and time
}}' into a formal date/time using {{now}} and include both date and time. Return only the formatted result and format it with the timezone CST but don't put CST." I am open to calls or dm's, will provide whole prompt or whatever info if needed!😇
v
You can continue this conversation by mentioning me in the message.
@Kyler Hello and welcome to the Vapi community! It's great to hear about your progress with creating an outbound agent. Let's address your concerns: Problem #1: For the webhook execution issue, it sounds like you might need to adjust the logic within your conversation flow to trigger the webhook automatically. Make sure that the conditions for executing the "Booking_babes" webhook are clearly defined and that the agent has all the necessary information to meet those conditions without manual intervention. If you're using a specific platform or tool to design your conversation flow, ensure that the webhook is set up to be triggered upon collecting the required information. Problem #2: Regarding the date and time formatting for Google Calendar, it seems like there might be an issue with the prompt you're using for the GPT API. The prompt should be clear and provide the API with the necessary context to understand the input format and the desired output format. If you're experiencing inconsistencies, you might want to refine the prompt to ensure that it specifies the input date and time format clearly and requests the conversion into a standard format that Google Calendar can understand, such as ISO 8601. If you're still facing difficulties, please provide more details about your current setup, the exact issues you're encountering, and any error messages you're receiving. This will help in diagnosing the problem more effectively. If you need further assistance, don't hesitate to reach out for a call or direct message. We're here to help you succeed with your project!
s
Hey @Kyler 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 me figure out what went wrong!