Actions4
- Space Actions
- Independent Chat Actions
Independent Chat → Upload File and Ask
AI-generatedSummary
Upload a file in an independent chat context, wait for the file to be indexed, then ask a question about the uploaded content using the Vekai API.
Inputs
- binaryPropertyName (required) — Specify the name of the binary property that contains the file to upload, for example 'data'. The file must be one of the supported types: PDF, DOC, DOCX, XLSX, HTML, XML, MD, or TXT.
- question (required) — Enter the question you want the AI to answer based on the contents of the uploaded file.
Output shape
a single item containing the JSON response from the Vekai API representing the AI's answer to the question about the uploaded document.
The operation uploads the file, polls the API until the file is indexed (up to a 20-second timeout), creates an independent chat, sends the question, and returns the AI response JSON. It throws an error if the file type is unsupported or indexing times out.