Unstract HITL Fetch icon

Unstract HITL Fetch

Fetches approved documents from Unstract Human-in-the-Loop (HITL) queue after manual review

Document → Fetch Approved

AI-generated

Overview

This node fetches approved documents from the Unstract Human-in-the-Loop (HITL) queue after manual review. It is useful in workflows where documents undergo manual verification and the approved results need to be retrieved for further processing or automation. For example, it can be used to automatically fetch and process documents that have been approved in a HITL review system, filtering by workflow ID and optionally by HITL queue name.

Use Case Examples

  1. Fetch approved documents from a specific HITL queue after manual review to automate downstream processing.
  2. Retrieve approved document data from Unstract HITL for reporting or archival purposes.

Properties

Name Meaning
Unstract Host The base URL of the Unstract HITL API host to connect to.
Workflow ID The identifier of the workflow whose approved documents are to be fetched.
HITL Queue Name The name of the HITL queue to filter the approved documents by.

Output

JSON

  • error - Error message if the fetch operation failed or the response contained an error.
  • hasData - Boolean indicating if the response contains valid approved document data.
  • data - The approved document data fetched from the HITL queue, if available.

Dependencies

  • Requires an API key credential for Unstract HITL API authentication.

Troubleshooting

  • If the node returns a 404 error, it means the approved result is not yet available; wait and retry later.
  • A 500 error indicates a server-side issue; check the Unstract HITL service status or try again later.
  • If the response format is unexpected, ensure the API endpoint and parameters are correct.
  • Network or authentication errors may occur if the API credentials or host URL are incorrect; verify these settings.

Discussion