Invoice Processor
Extract structured data from invoices with AI, validate totals via a deterministic tool agent, and output auditable JSON with retry support.
connic init my-project --templates=invoiceOverview
A sequential pipeline that extracts structured data from raw invoice text or images using an LLM agent with calculator tools, then validates totals with a deterministic tool agent at zero token cost. Middleware adds audit trails with request IDs and cost tracking. Supports retry on transient failures and parallel processing of multiple invoices.
Use cases
AP automation
Process incoming supplier invoices, extract line items and totals, and validate before posting to ERP.
Receipt ingestion
Parse receipts from photos or PDFs into structured data for expense reporting and reconciliation.
Invoice auditing
Batch-process invoices to flag discrepancies between stated and calculated totals with full audit trail.
Architecture
Main template files
Install these files with connic init my-project --templates=invoice. The CLI places agent definitions in a folder named after the template under agents/.
invoice/
agents/
invoice-extractor.yaml
invoice-validator.yaml
invoice-pipeline.yaml
tools/
invoice_tools.py
middleware/
invoice-extractor.py
schemas/
invoice.json
requirements.txt
README.mdGet started
Install the template, create a Connic project, and deploy through a connected Git repository or the CLI.
Prerequisites
- Python 3.10+
- A Connic account (create a project first)
- Project credit for a connic/* model, or credentials for a BYOK provider
Install and scaffold
Install the SDK and create a project from this template.
terminalpip install connic-composer-sdk connic init my-project --templates=invoiceThen cd my-project
Deploy
Choose a deployment method. A connected Git repository deploys on push; use the CLI for projects without a connected Git repository.
Git integration
In Connic: Project Settings → Git & Environments, connect the GitHub repository
On the same page, map a branch (e.g. main) to the Production environment
Push the scaffolded project to that repository
terminalgit add . git commit -m "Add Invoice Processor template" git push origin mainCLI deploy
In Connic: Project Settings → API Keys & MCP Auth, create an API key and copy project ID
Run connic login in the project folder
Use connic dev to try with hot-reload, connic test to run suites, or connic deploy for production
terminalconnic login connic dev # Ephemeral dev env with hot-reload connic test # Run declarative test suites connic deploy # Deploy to productionConnect and configure
Add an HTTP Webhook (sync) connector for real-time invoice processing. POST invoice data to the webhook URL and receive the structured extraction result in the response. Use a connic/* model, or add BYOK credentials under Project Settings → LLM Provider.
Template source
Browse the full template, contribute improvements, or fork it for another use case.
connic-org/connic-awesome-agents/tree/main/invoiceInformation
- Publisher
- By Connic
- Category
- Agent Templates
- Difficulty
- Beginner
- Works with
- HTTP Webhook, AWS S3, Email
- Source
- GitHub
More agent templates
Browse the marketplaceEmail Helpdesk
End-to-end email support with IMAP polling, auto-reply filtering, and intent classification. Drafts contextual replies from the configured retrieval.
Kafka Fraud Detector
Score transactions for fraud in real-time on Kafka streams. Uses velocity analysis, geo-anomaly detection, and pattern matching per customer.
PostgreSQL Change Notifier
Monitor PostgreSQL changes via LISTEN/NOTIFY, classify events by impact, and route notifications to the right team. Stores high-impact changes for auditing.
SQS Order Processor
Validate and fulfill orders from SQS queues with fraud detection, inventory checks, and concurrency keys. Results publish to an outbound queue.
Lead Enricher
Enrich and qualify new signups by researching their company and scoring fit against the ideal customer profile. Saves qualified leads.
Stripe Dunning
Automated Stripe payment recovery with multi-stage personalized dunning emails. Tracks customer history and escalates from friendly reminders to pause notices.