h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation fetches the user source file associated with a specific document. It is useful when you need to retrieve the original file uploaded or linked by a user for a given document ID. This can be beneficial in scenarios such as auditing, reviewing original content, or processing the raw file further.

For example, if you have a document stored in your system and want to download or inspect the exact source file that a user provided, this operation allows you to do so by specifying the document's unique identifier.

Properties

Name Meaning
Document ID The unique identifier of the document whose user source file you want to fetch. This property is required.

Output

The output will contain the JSON response from the API call that returns the user source file data related to the specified document. The structure typically includes metadata about the file and possibly the file content or a link to download it.

If the node supports binary data output (not explicitly shown here), the binary field would represent the actual file content of the user source file.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The base URL for API requests is configured via credentials.
  • The node sends a GET request to the endpoint /documents/{document_id}/user_source_file where {document_id} is replaced by the provided Document ID.

Troubleshooting

  • Missing Document ID: Ensure the Document ID is provided; otherwise, the request cannot be made.
  • Authentication Errors: Verify that the API key credential is correctly set up and has permissions to access document files.
  • Document Not Found: If the document ID does not exist or the user source file is unavailable, the API may return a 404 error.
  • Timeouts or Network Issues: Check network connectivity and API server status if requests time out or fail.

Links and References

  • Refer to the API documentation of the external service for details on the /documents/{document_id}/user_source_file endpoint.
  • Consult n8n documentation on how to configure API key credentials and handle binary data outputs.

Discussion