S3 Document Pipeline
Auto-process documents uploaded to S3 with text extraction, classification, and routing. Handles PDFs, images, and text files with retries.
connic init my-project --templates=s3-document-pipelineOverview
Triggered by file uploads to an S3 bucket. The intake agent extracts text, metadata, and entities from PDFs, images, and text files. Middleware rejects unsupported file types with StopProcessing before the LLM runs. The classifier assigns categories, confidence scores, and routing destinations. Retries on transient failures.
Use cases
Document management
Automatically classify and route documents to the right team as they land in the configured S3 inbox.
Contract processing
Extract key entities (parties, dates, amounts) from uploaded contracts and flag for legal review.
Multi-format intake
Process PDFs, images, Word documents, and text files through a single unified pipeline.
Architecture
Main template files
Install these files with connic init my-project --templates=s3-document-pipeline. The CLI places agent definitions in a folder named after the template under agents/.
s3-document-pipeline/
agents/
document-intake.yaml
document-classifier.yaml
document-pipeline.yaml
middleware/
document-intake.py
schemas/
intake-result.json
classification-result.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=s3-document-pipelineThen 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 S3 Document Pipeline 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 S3 inbound connector with the bucket name and AWS credentials. Configure S3 Event Notifications to point to the connector's webhook URL. 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/s3-document-pipelineInformation
- Publisher
- By Connic
- Category
- Agent Templates
- Difficulty
- Intermediate
- Works with
- AWS S3, HTTP Webhook
- Source
- GitHub
More agent templates
Browse the marketplaceCompliance Auditor
Scheduled compliance scanning combining web search for regulatory updates, MCP docs, and retrieval history. Produces scored summaries.
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.
Invoice Processor
Extract structured data from invoices with AI, validate totals via a deterministic tool agent, and output auditable JSON with retry support.
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.
Browser Automation Demo
Ask for a Connic email, password, and project title, then sign in and create the project through the dashboard.