Unique File (or KB) for each call.
# support
s
Hey, guys! I would like to add a unique knowledge base / file for each call that my agent makes in a way that it doesn't get carried over to other calls (since it is personalized information). So it will be removed after the call or something like that. How can I do this?
c
Upload the file, create a temporary query tool with it, attach it to the assistant for that call, and delete both the tool and file after the call to prevent carryover..
s
But how do I upload the file using API? I use Make.com
k
Use the HTTP module with a POST request, set Authorization: Bearer , use multipart/form-data, and upload the file in a file field to get the fileId..
s
In the make.com scenario, a few modules before I create a Google Docs file with the necessary data. Should I use the HTTPS Get a file module to get the binary of it, or what should I give as file exactly? Which field of Google Docs' result is to use? When I upload it, in VAPI it makes it a 127.00B unusable file. @Kings_big💫
k
Use the Google Drive, download a File module not HTTP, get with file conversion like, to PDF or TXT, and then pass the resulting binary file into the file field of the HTTP request to vapi to avoid uploading an empty or invalid file..
2 Views