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 assigns a tag to a specific document within the system. It is useful for categorizing or labeling documents with meaningful tags, which can help in organizing, searching, and filtering documents later on. For example, you might assign tags like "marvel" or "finance" to documents to group them by topic or department.

Properties

Name Meaning
Document ID The unique identifier of the document to which the tag will be assigned.
Name The name of the tag to assign to the document (e.g., "marvel").

Output

The output contains the full HTTP response from the API call that assigns the tag to the document. The main data is typically found in the json property of the output, representing the result of the tag assignment operation. This may include confirmation details such as the document ID, tag name, and status of the operation.

The node does not output binary data for this operation.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends a POST request to the endpoint /documents/{document_id}/tags with the tag name in the request body.
  • The base URL and headers are configured via credentials and node settings.

Troubleshooting

  • Missing or invalid Document ID: Ensure the Document ID provided exists and is correct; otherwise, the API will return an error indicating the document was not found.
  • Tag name issues: The tag name must be valid and existing or allowed by the system. Invalid or empty tag names may cause errors.
  • Authentication errors: Verify that the API key credential is correctly set up and has permissions to modify documents.
  • API endpoint errors: Network issues or incorrect base URL configuration can cause failures. Check connectivity and credential settings.
  • Permission errors: The user associated with the API key must have permission to modify the specified document.

Links and References

  • Refer to the external API documentation for managing document tags for detailed information on the endpoint behavior and expected responses.
  • Consult n8n documentation on setting up API key credentials and HTTP request nodes for integration best practices.

Discussion