Customje icon

Customje

Custom operations

Overview

This node integrates with the Customje API to perform various content processing operations, focusing here on the Extract Content operation under the "Custom" resource. It allows users to extract meaningful information from files (such as images or PDFs) by sending file data along with a question or instruction to the API. This is useful for scenarios like extracting text from images, analyzing PDF contents, or interpreting custom file formats.

Practical examples include:

  • Extracting text or metadata from an uploaded image.
  • Asking specific questions about the content of a document.
  • Processing base64-encoded files to retrieve structured information.

Properties

Name Meaning
API Key Customje API Key used for authenticating requests to the Customje service.
Gemini API Key AI Studio API Key for Gemini, likely used for enhanced AI processing within the extraction.
Text The question or instruction guiding what content to extract from the provided file data.
File Data The actual file content encoded in Base64 format to be processed by the API.
MIME Type The MIME type of the file being sent. Options: Application/PDF, Custom, Image/GIF, Image/JPEG, Image/PNG, Image/WebP, Text/Plain.
Custom MIME Type If MIME Type is set to "Custom", this field specifies the exact MIME type string to use.

Output

The output is a JSON object returned from the Customje API's /extract-content.php endpoint. It contains the extracted content based on the input file and question/instruction. The exact structure depends on the API response but generally includes the interpreted or extracted data from the file.

No binary data output is produced by this node; all results are returned as JSON.

Dependencies

  • Requires valid API keys for both Customje (API Key) and AI Studio Gemini (Gemini API Key).
  • Makes HTTP POST requests to https://api.customje.com/extract-content.php.
  • The node expects the file content to be provided as a Base64-encoded string.
  • No additional environment variables or n8n-specific credentials beyond the API keys are required.

Troubleshooting

  • Invalid API Keys: Ensure that both API keys are correct and active. Authentication failures will prevent successful extraction.
  • Incorrect MIME Type: Providing an incorrect MIME type may cause the API to misinterpret the file data. Use the appropriate MIME type or specify a correct custom MIME type.
  • Malformed Base64 Data: The file data must be properly Base64 encoded. Invalid encoding will result in errors or empty responses.
  • API Errors: If the API returns errors, check the error message for details. Common issues include rate limits, invalid parameters, or unsupported file types.
  • Unhandled Operations or Resources: Using operations or resources other than "custom" and "extract-content" will throw errors indicating they are not implemented or unknown.

Links and References


If you need summaries for other operations or resources, please provide their names.

Discussion