Unstract is a platform that helps extract structured data from unstructured documents using AI. It provides powerful APIs for document processing, including:
- LLMWhisperer: Convert documents to layout-preserved plain text
- Unstract API: Extract structured data from documents using custom workflows
This package includes following main nodes:
- Convert documents (PDF, images, etc.) to layout-preserved plain text
- Maintain document structure and formatting
- Support for various document formats
- Configurable processing modes
- Process documents using Unstract's AI-powered extraction
- Extract structured data from unstructured documents
- Support for custom API deployments
- Seamless integration with Unstract workflows
- Push documents to Human-in-the-Loop (HITL) processing queues
- Configure timeout, metrics, metadata, and queue targeting
- Support for various document types and queue configurations
- Error handling for upload and processing issues
- Retrieve approved results from HITL processing queues
- Poll for completed processing with configurable intervals
- Optional queue name parameter for targeted fetching
- Proper error handling for "No approved items available" responses
- Go to Settings > Community Nodes in your n8n instance
- Select Install a community node
- Enter the npm package name:
n8n-nodes-unstract
- Click Install
You can install this node package in your n8n instance using npm:
npm install n8n-nodes-unstract
For Docker installations, add the package to your n8n container:
# Replace <your-path-to-n8n-custom-nodes> with the path to n8n
N8N_CUSTOM_EXTENSIONS="<your-path-to-n8n-custom-nodes>" npx n8n start
Before using these nodes, you'll need:
-
API Credentials: Get your API keys from:
-
Node.js: Version 20 or above is required
-
LLMWhisperer API Credentials:
- Go to your n8n credentials settings
- Create new credentials of type "LLMWhisperer API"
- Enter your LLMWhisperer API key
-
Unstract API Credentials:
- Go to your n8n credentials settings
- Create new credentials of type "Unstract API"
- Enter your Unstract API key and endpoint details
-
Unstract HITL Credentials:
- Go to your n8n credentials settings
- Create new credentials of type "Unstract HITL"
- Enter your HITL API key for Human-in-the-Loop processing
Use the LLMWhisperer node to convert documents to text while preserving layout:
- Add the LLMWhisperer node to your workflow
- Configure your API credentials
- Set the input file (binary data)
- Choose processing mode and options
- Execute to get layout-preserved text output
Use the Unstract node to extract structured data:
- Add the Unstract node to your workflow
- Configure your API credentials and deployment
- Set the input document (binary data)
- Specify your API deployment name
- Execute to get structured data output
Use the HITL Push node to send documents for human review:
- Add the Unstract HITL Push node to your workflow
- Configure your HITL API credentials
- Set the input document (binary data)
- Configure queue name, timeout, and metadata options
- Execute to push document to HITL processing queue
Use the HITL Fetch node to retrieve approved results:
- Add the Unstract HITL Fetch node to your workflow
- Configure your HITL API credentials
- Optionally specify a queue name to target specific queues
- Configure polling interval and retry settings
- Execute to fetch approved results from HITL queue
Visual guides for integrating Unstract nodes in your n8n workflows:
These screenshots help developers understand the visual setup and configuration of each node type for seamless integration into n8n workflows.
For detailed API documentation and advanced configuration options:
- Node.js 20 or above
- npm or yarn
# Clone the repository
git clone https://github.com/Zipstack/n8n-nodes.git
cd n8n-nodes
# Install dependencies
npm install
# Build the project
npm run build
# Run linting
npm run lint
For development and testing:
# Set the custom extensions path and start n8n
N8N_CUSTOM_EXTENSIONS="/path/to/n8n-nodes" npx n8n start
- Documentation: docs.unstract.com
- Issues: GitHub Issues
- Community: Join our community discussions
- Email: [email protected]
This project is licensed under the MIT License - see the package.json file for details.
We welcome contributions! Please feel free to submit issues, feature requests, or pull requests.
Made with β€οΈ by the Unstract team