Actions11
Document → Import
AI-generatedSummary
Import an existing file into a specified Google File Search store using its file resource name from the Files API, optionally waiting for the document to be fully indexed.
Inputs
- Store Name or ID (required) — Select or specify the ID of the File Search store to import the document into.
- File Name (From Files API) (required) — Provide the file resource name from the Files API (e.g., files/abc123) to import.
- Metadata — Optionally specify custom metadata key-value pairs associated with the imported document.
- Wait for Completion — Choose whether the node should poll until the document is fully indexed before returning.
- Max Wait Time (Seconds) — Set the maximum time to wait for the document processing if waiting for completion is enabled.
Output shape
a single JSON object with details about the import operation and the imported document, including status and metadata if wait for completion is enabled
If 'Wait for Completion' is enabled, the node polls the document status up to 'Max Wait Time' seconds until the document is active, failed, or times out. On success, the output includes the fully indexed document details; on failure or timeout, it reports the error or the timeout status.
Examples
Example 1: Import a file and wait up to 2 minutes for indexing
Specify the store ID, the file resource name, enable waiting for completion with a max wait time of 120 seconds.