Jalvis icon

Jalvis

Interact with Jalvis.ai API

Actions5

Document → Update Tag

AI-generated

Overview

This node integrates with the Jalvis.ai API to manage documents and tags. Specifically, the "Update Tag" operation for the "Document" resource allows users to assign or update a tag on an existing document by specifying the document's ID and the tag's ID.

Common scenarios where this node is beneficial include:

  • Automatically categorizing or re-categorizing documents in a content management workflow.
  • Tagging documents based on external triggers or data enrichment processes.
  • Organizing documents dynamically in bulk operations by updating their tags programmatically.

For example, after processing a batch of documents, you might use this node to update each document’s tag to reflect its new status or category.

Properties

Name Meaning
Document ID The unique identifier of the document to update. This is required.
Tag ID The unique identifier of the tag to assign to the specified document. This is required.

Output

The output is a JSON object representing the updated document or the result returned by the Jalvis.ai API after updating the tag. It typically contains the updated document details including the newly assigned tag information.

If the API returns an error, the output JSON will contain an error field with the error message and a debug field showing the request details for troubleshooting.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Jalvis.ai API.
  • Needs an API authentication token credential configured in n8n (referred generically as an API key credential).
  • The base URL for the API must be set in the credentials.
  • The node uses HTTP requests with appropriate headers including the API token and version.

Troubleshooting

  • Common issues:

    • Invalid or missing Document ID or Tag ID parameters will cause the API call to fail.
    • Incorrect or expired API authentication token will result in authorization errors.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • Errors from the API are captured and returned in the output JSON under the error key.
    • The debug context provides the full HTTP request details which can help identify malformed requests or incorrect URLs.
  • How to resolve:

    • Verify that the Document ID and Tag ID are correct and exist in the Jalvis.ai system.
    • Ensure the API token credential is valid and has necessary permissions.
    • Check network connectivity and firewall settings.
    • Use the debug information to inspect the exact request sent to the API.

Links and References

Discussion