Vekai icon

Vekai

Interact with Vekai API

Actions4

Space → Upload File and Ask

AI-generated

Summary

Upload a file to a specified Vekai Space, wait for the file to be indexed, then send a question to the AI about that file within a newly created chat in the Space.

Inputs

  • Space Name or ID (required) — Select the target Space to upload the file and ask your question in, either from the dropdown or via an expression.
  • Binary Property (required) — Specify the name of the binary property from the input item that contains the file to upload (e.g., 'data').
  • Question (required) — Enter the question you want to ask the AI about the uploaded file.

Output shape

a single JSON object representing the AI's response to the question within the context of the uploaded file and created chat

The operation handles file upload and indexing before sending the question. It supports file types: PDF, DOC, DOCX, XLSX, HTML, XML, MD, and TXT, and enforces an index wait timeout. Errors such as unsupported file types or index timeout are reported as failures unless 'continueOnFail' is enabled.

Examples

Example 1: Uploading a PDF document to a Space and querying it

  • Select a Space by name or ID
  • Set binary property to the file's binary property name
  • Provide a question relevant to the document content
  • Output will include the AI's answer to the question after document upload and indexing

Links

Discussion