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
Main template files
Install these files with connic init my-project --templates=sqs-order-processor. The CLI places agent definitions in a folder named after the template under agents/.
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 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=sqs-order-processorThen 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 SQS Order 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 SQS inbound connector for the orders queue and an SQS outbound connector for the fulfillment queue. Provide AWS credentials for both. 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/sqs-order-processorInformation
- Publisher
- By Connic
- Category
- Agent Templates
- Difficulty
- Intermediate
- Works with
- AWS SQS
- Source
- GitHub
More agent templates
Browse the marketplaceTelegram 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.
Invoice Processor
Extract structured data from invoices with AI, validate totals via a deterministic tool agent, and output auditable JSON with retry support.
Email Helpdesk
End-to-end email support with IMAP polling, auto-reply filtering, and intent classification. Drafts contextual replies from the configured retrieval.
Browser Automation Demo
Ask for a Connic email, password, and project title, then sign in and create the project through the dashboard.
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.
Voice Customer Support
Build a voice support agent that searches your customer knowledge in Connic Retrieval and demonstrates ticket creation with a mock tool.