- Home
- Skills
- Workflow Automation
- Structural AI
Structural AI
Extract and validate structured JSON from resumes and invoices using Pydantic schemas.
$6
Structural AI
Example session with this skill installed
Extract the data from this invoice: Invoice #INV-2024-001 from Acme Corp to Global Tech. Date: Oct 12, 2024. Item: Cloud Subscription - $500.00. Tax: $40.00. Total: $540.00.
- Read your context and instructions
- Compiled the structural ai
I have processed the invoice text, screened it for safety, and validated the output against the internal invoice schema.
Extracted Invoice Data
{
"invoice_number": "INV-2024-001",
"vendor_name": "Acme Corp",
"customer_name": "Global Tech",
"date": "2024-10-12",
"line_items": [
{
"description": "Cloud Subscription",
"quantity": 1,
"unit_price": 500.00,
"total": 500.00
}
],
"financials": {
"subtotal": 500.00,
"tax": 40.00,
"total_amount": 540.00,
"currency": "USD"
},
"metadata": {
"document_type": "invoice",
"validation_status": "passed"
}
}
Next steps
- Review the
financialsobject to ensure currency mapping is correct for your ledger. - Pipe this JSON output into your accounting API or database.
- Provide a resume text if you need to perform candidate profile extraction.
Connects securely to your tools. The creator never sees your data.
About this skill
Unstructured document text creates manual data entry bottlenecks and inconsistent database records. StructuralAI automates the conversion of invoice and resume text into strictly validated JSON objects.
What it does
- Document parsing extracts key entities from raw text for resumes and invoices.
- Schema validation enforces Pydantic-based data structures to ensure output consistency.
- Safety screening filters input text to mitigate risks from embedded instructions or prompt injection.
- Missing data handling maps empty fields to null or empty arrays according to strict schema rules.
- Error correction performs iterative validation to fix malformed JSON outputs before delivery.
How it works
- Prepare Input saves the raw document text to a temporary working file.
- Generate Prompt runs a preparation script to create a context-aware extraction prompt based on the specific document type.
- AI Extraction processes the text to generate a raw JSON object following the provided schema.
- Validate Output executes a Pydantic validation script to verify the JSON structure and types.
- Clean Up returns the validated data and removes temporary files from the workspace.
Frameworks & tools
Built for Python 3.10+ environments using Pydantic 2.x for data modeling. It utilizes custom scripts for CLI-based preparation and validation workflows.
Why this beats prompting it yourself
Raw prompting often results in schema drift, hallucinated fields, or markdown clutter that breaks automated pipelines. This skill uses a multi-step verification loop and Pydantic enforcement to ensure the JSON is always machine-readable and type-safe.
Use cases
- Automating accounts payable by piping invoice text directly into ERP systems.
- Scaffolding candidate profiles for applicant tracking systems from raw CV text.
- Standardizing messy document exports into clean, queryable JSON datasets.
- Sanitizing untrusted document content through automated input screening.
Known limitations
Supports only invoice and resume document types. Does not perform OCR on images or PDFs directly, text must be provided. Maximum document length is 12,000 characters.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.10+Pydantic 2.x
Install dependencies using requirements.txt before running the scripts. Requires readable invoice or resume text. Does not require personal API keys or a separate backend.
Permissions
File Scopes
Terminal access is required to execute Python scripts. File access is required to read document text, load schemas, and validate temporary JSON outputs. Network access may be needed to install Python dependencies. No credentials or personal API keys are required.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.