Hello,
For the past 3 days, I’ve been trying to figure out how to integrate some data from my database into the VAPI prompt system. I’ve tried several approaches, but nothing seems to work so far.
My goal is to send this data upfront, as soon as the user initiates the call, so that my assistant immediately has access to the following information:
Name
Age
Origins
Important info
Summary of the last 5 discussions
Please note that I’m not using phone numbers — all calls are made directly from my web app, and users are identified only through their user ID.
As for the database, it’s quite straightforward: I internally retrieve the transcripts, analyze them using an LLM, and get the data I need in JSON format. Everything is stored in my backend.
However, I’m still encountering the following error when trying to send this data to VAPI:
❌ Error sending history to VAPI: {"message":"Cannot POST /assistant/47a9ad21-7c41-4efd-8e27-21b63925e27b/history","error":"Not Found","statusCode":404}
Thanks in advance for your help — happy to share more technical details if needed!