Actions15
- Audio Actions
- Document Actions
- File Search Actions
- Image Actions
- Media File Actions
- Text Actions
- Video Actions
Document → Analyze Document
AI-generatedSummary
Analyze one or more documents using a specified Gemini model and a text prompt to generate insights or summaries.
Inputs
- Model (required) — Select the Gemini model to use for analysis either from a searchable list or by entering its ID directly.
- Text Input (required) — Provide a text prompt (e.g., 'Summarize this document') to guide the analysis of the document content.
- Input Type (required) — Choose whether the input documents are specified via URLs or provided as binary files in the workflow.
- URL(s) — Enter one or more document URLs (comma-separated) to be analyzed when 'Document URL(s)' is selected as Input Type.
- Input Data Field Name(s) — Specify the binary property name(s) containing the document files when 'Binary File(s)' is selected as Input Type.
- Simplify Output — Decide whether to return a simplified response (true) or the full raw response data (false). Defaults to true.
- Options — Customize output with options such as 'Length of Description (Max Tokens)' to control the detail level of the analysis.
Output shape
a list of candidate analysis results, each as a JSON object potentially simplified based on the 'Simplify Output' parameter
The operation supports multiple documents via URLs or multiple binary fields. Each candidate from the model's response is returned as a separate item. The simplifying option affects the format and verbosity of the output.
Examples
Example 1: Analyze a PDF document by URL
Select the 'Document' resource and 'Analyze Document' operation, choose the model, set Input Type to 'URL', enter the document URL, provide a prompt like 'Summarize this document', and execute.
Example 2: Analyze a PDF document provided as binary data
Select the 'Document' resource and 'Analyze Document' operation, choose the model, set Input Type to 'Binary', specify the binary property name containing the document, provide a prompt, and execute.