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.
connic init my-project --templates=postgres-change-notifierOverview
Listens to PostgreSQL NOTIFY events from database triggers and analyzes each change for significance. The change analyzer classifies events by impact level and routes notifications to the appropriate team using trigger_agent to call the notification dispatcher. High-significance events are stored in the database for audit trailing. Includes SQL examples for setting up database triggers.
Use cases
Order monitoring
Alert ops and sales teams when orders are cancelled, refunded, or when large orders arrive.
Security auditing
Track permission changes, user deletions, and sensitive field modifications in real-time.
Data sync notifications
Notify downstream systems when critical data changes via outbound webhooks to Slack, Teams, or PagerDuty.
Architecture
Main template files
Install these files with connic init my-project --templates=postgres-change-notifier. The CLI places agent definitions in a folder named after the template under agents/.
postgres-change-notifier/
agents/
change-analyzer.yaml
notification-dispatcher.yaml
tools/
notification_tools.py
schemas/
change-analysis.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=postgres-change-notifierThen 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 PostgreSQL Change Notifier 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 a PostgreSQL connector with the database credentials and LISTEN channel. Set up a trigger function to send NOTIFY events (see the README for SQL examples). 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/postgres-change-notifierInformation
- Publisher
- By Connic
- Category
- Agent Templates
- Difficulty
- Intermediate
- Works with
- PostgreSQL, HTTP Webhook
- Source
- GitHub
More agent templates
Browse the marketplaceStripe Dunning
Automated Stripe payment recovery with multi-stage personalized dunning emails. Tracks customer history and escalates from friendly reminders to pause notices.
S3 Document Pipeline
Auto-process documents uploaded to S3 with text extraction, classification, and routing. Handles PDFs, images, and text files with retries.
Email Helpdesk
End-to-end email support with IMAP polling, auto-reply filtering, and intent classification. Drafts contextual replies from the configured retrieval.
Research Assistant
Break complex research questions into sub-tasks, dispatch specialist agents in parallel, and synthesize web and internal data into structured, scored reports.
Customer Support
AI ticket triage with sentiment analysis and RAG-powered response drafting. Classifies by priority, blocks spam, and stores new solutions.
Invoice Processor
Extract structured data from invoices with AI, validate totals via a deterministic tool agent, and output auditable JSON with retry support.