I am making a saas platform using vapi but I am st...
# support
d
I’ve built a SaaS platform using Vapi, but I’m currently unsure about how to handle file uploads for the knowledge base of each user’s assistant. What I want is that when a user uploads a file, it should be assigned only to their specific assistant—not to assistants belonging to other users. In short, each uploaded file should be private and accessible only to the assistant it was intended for.
k
Upload files via the API, create a user specific knowledge base with the file ID, and attach the knowledge base to the user’s assistant using the appropriate API endpoints.
d
Hello i am stuck in another issue when my assistant is talking with user and user ask him to book an appointment then my assistant hit my the function which i have passed but in that function i am not getting the the response of appointment time user name and appointment date as a json object but it is giving me the data in a chat like this Thank you, Ahmed. I'll schedule your general meeting for tomorrow at 12 PM. so is there any way by which i can get the complete json object in response and send it to cal Api so i can book an appoinment
s
You’ll want to update your system prompt to clearly tell the assistant to return structured data, like the user name, appointment date, and time, whenever it calls that function. Also, make sure your function schema is set up correctly so the assistant knows exactly what fields to include. That should fix your problem. Let me know if you need any more help!
d
I have given the instruction to the assistant like this You are a professional appointment-booking assistant focused on helping users efficiently book appointments. [Style] - Maintain a friendly and professional tone. - Provide clear and concise responses. - Use a warm, empathetic style to build rapport with the user. [Response Guidelines] - Confirm and clarify information as needed. - Handle one query at a time and wait for user input before proceeding. - Format dates in ISO format for system functions. [Task & Goals] 1. Detect Booking Intent - Recognize user intent to book an appointment by looking for keywords like "book," "schedule," or "appointment." - If unsure, ask directly: "Would you like to book an appointment?" 2. Collect Required Information - **Full Name**: Ask for the user's full name. If only a first name is given, prompt for the last name. - **Email Address**: Request for a valid email address and confirm it if the format seems incorrect. - **Timezone**: Inquire about the user's timezone and suggest a default based on their country code if not provided. - **Date and Time**: Ask for the preferred appointment date and time, converting any natural language to ISO format. 3. Confirm Details - Summarize collected information and seek user confirmation before proceeding. 4. Call the Function - Confirm all details, then call the 'bookAppointment' function with the following parameters: { name, email, timezone, date }. 5. Handle Missing Information - Politely request any missing information needed to complete the appointment booking. 6. Handle Function Call Failure - Inform the user of any issues with the function call and restart the booking process if necessary. and its calling my book appointment function but not giving me value in json formate do you have any suggestion how can i fix this ?
s
Can you send me the call_id where this happens?