SQS Order Processor
Validate and fulfill orders from SQS queues with fraud detection, inventory checks, and concurrency keys. Results publish to an outbound queue.
connic init my-project --templates=sqs-order-processorOverview
Processes e-commerce orders from an SQS queue through a validation-then-fulfillment pipeline. The validator checks completeness, calculates totals independently, verifies inventory, and flags fraud signals. Concurrency control queues orders by customer_id to prevent duplicates. Middleware rejects malformed payloads with StopProcessing before the LLM runs. Approved orders get fulfillment records from a deterministic tool agent. Results are published to an SQS outbound queue.
Use cases
Order validation
Validate incoming orders for missing fields, calculation errors, and fraud signals before fulfillment.
Inventory management
Check stock availability during validation and reject orders for out-of-stock items.
E-commerce backend
Process high-volume order queues with per-customer concurrency control and strict timeout guarantees.
Architecture
Scaffolded project structure
Running connic init my-project --templates=sqs-order-processor creates this file tree.
sqs-order-processor/
agents/
order-validator.yaml
order-fulfiller.yaml
order-pipeline.yaml
tools/
order_tools.py
middleware/
order-validator.py
schemas/
order-validation.json
requirements.txt
README.mdGet started
Install the template, create a Connic project, and deploy. Choose Git (automatic on push) or CLI (works with any provider).
Prerequisites
- Python 3.10+
- A Connic account (create a project first)
- API key for your LLM provider (e.g. Gemini, OpenAI) to add in project variables
Install and scaffold
Install the SDK and create a project from this template.
pip install connic-composer-sdkconnic init my-project --templates=sqs-order-processorThen cd my-project
Deploy
Pick your deployment method. Git auto-deploys on push; CLI works with GitLab, Bitbucket, or no Git.
Git integration
- In Connic: Project Settings → Git Repository, connect your GitHub repo
- Settings → Environments: map branch (e.g.
main) to Production - Push your scaffolded project to that repo
git add .
git commit -m "Add SQS Order Processor template"
git push origin mainCLI deploy
- In Connic: Project Settings → CLI, create an API key and copy project ID
- Run
connic loginin your project folder connic testto try with hot-reload, orconnic deployfor production
connic login
connic test # Ephemeral dev env with hot-reload
connic deploy # Deploy to productionConnect and configure
Add an SQS inbound connector for the orders queue and an SQS outbound connector for the fulfillment queue. Provide AWS credentials for both. Add your LLM provider API key in Project Settings → LLM Provider API Keys.
Template source
Browse the full template, contribute improvements, or fork for your own use.
connic-org/connic-awesome-agents/tree/main/sqs-order-processorExplore other templates
View allPostgreSQL 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.
Telegram Personal Assistant
Multimodal Telegram assistant that processes text, images, voice, video, and documents. Searches the web, saves notes and knowledge, and schedules follow-up reminders with persistent sessions.
Email Helpdesk
End-to-end email support with IMAP polling, auto-reply filtering, and intent classification. Drafts contextual replies from your knowledge base.
Invoice Processor
Extract structured data from invoices with AI, validate totals via a deterministic tool agent, and output auditable JSON with retry support.