Self-hosted n8n integration

Connect Your AI Agent to n8n

Build self-hosted automations with n8n and keep full control of your workflows. Trigger alerts, run ML workflows, and sync insights to the tools your team already uses.

6 Triggers
4 Actions
HTTP Native Nodes
100% Self-Hosted Ready
My Zap — Active
DBToAgent Anomaly Detected
Trigger
Slack Send Channel Message
Action
Google Sheets Create Spreadsheet Row
Action

Automate with the tools you already use

Four Ways to Automate Your Data

Every action your AI agent can perform is available in n8n workflows — no custom backend code needed.

Chat with AI

Send a natural language question to your agent and get a complete answer — just like chatting in the app. Perfect for scheduled reports: "Every Monday at 9am, ask my agent for last week's sales summary and send it to Slack."

Natural Language Session Context Full Answers

Run SQL Queries

Execute any SQL query against your database and pipe the results anywhere. Build powerful data pipelines: "When a form is submitted, query my DB for matching records and add them to a Google Sheet."

Raw SQL Up to 1,000 Rows JSON Output

ML Predictions

Feed data into your trained models and get predictions back — directly in your Zap. Dynamic input fields auto-configure based on your model's features. "When a new lead arrives, predict conversion probability and route to the right team."

Dynamic Fields Auto-Configure Real-time

Schema Analysis

Trigger a full AI analysis of your database schema and get a detailed report on table structures, relationships, and data patterns. "Every night, analyze my production DB and log the health report to Notion."

Auto-Discovery Relationships Health Reports

Real Automations. Real Results.

Here's what teams are building with DBToAgent + n8n — in minutes, not months

🚨

Anomaly → Instant Alert

When DBToAgent detects an anomaly
Send PagerDuty alert + log to Sheets

Your AI flags 47 unusual transactions at 3am. Before anyone wakes up, PagerDuty pings the on-call engineer and every anomaly is logged for review.

📊

Scheduled Reports → Slack

Every Monday at 9:00 AM
Chat: "Weekly sales summary" → Slack #sales

Your agent writes a full sales report in natural language every Monday morning. The team gets it in Slack before their first coffee.

🤖

New Lead → Predict & Route

New HubSpot contact created
Predict conversion score → Route to team

Every new lead gets scored by your ML model instantly. High-probability leads go to senior reps. Low scores get nurture sequences. Zero manual triage.

💡

Insight Discovered → Email Digest

AI discovers a new insight
Format email → Send to stakeholders

When the AI finds hidden customer segments or predicts churn risk, it sends a formatted email to your leadership team. They see opportunities you didn't even know to look for.

Model Trained → Team Notification

ML model finishes training
Post accuracy metrics to Slack + Notion

Your prediction model finishes training at 2am. By morning, the data team has accuracy scores, feature importance, and a direct link — ready to deploy.

🔄

Chat Completed → CRM Update

Agent completes a chat response
Extract entities → Update Salesforce record

When someone asks your agent about a customer, the chat response automatically updates the CRM with the latest data points. Your records stay fresh without anyone lifting a finger.

Set Up in 3 Minutes

From zero to automated workflows — faster than making coffee

1

Create Your API Key

Go to Settings → API Keys in your DBToAgent dashboard. Choose your scopes (read, chat, predict, admin) and generate a secure key.

2

Add DBToAgent to n8n

Create an HTTP Request node in n8n, call `/api/n8n/*`, and send your API key in `X-API-Key`. You're connected in minutes.

3

Build Your First Workflow

Pick a trigger (Webhook, Cron, or App event), call DBToAgent actions, then route to Slack, Sheets, CRM, or internal systems.

Everything Your Data Can Trigger & Do

A complete API surface available through n8n nodes and HTTP requests — no custom backend required

Triggers

6 events
💬
Chat Completed Fires when your agent finishes responding to a question
💡
Insight Discovered AI finds a hidden pattern, segment, or prediction opportunity
🧠
Model Trained An ML model finishes training and is ready for predictions
🚨
Anomaly Detected Outliers or unexpected patterns flagged in your data
⚙️
Job Completed Any background ML job finishes — training, analysis, or batch
🆕
Session Created Someone starts a new conversation with your agent

Actions

4 actions + 3 searches
💬
Chat with Agent Send a natural language question and get a full AI response
📋
Run SQL Query Execute any query and get structured results as JSON
🔮
Make Prediction Feed data into trained ML models — dynamic fields auto-configure
🔍
Analyze Schema Run a full AI analysis of your database structure and health
Searches

Enterprise-Grade Security Built In

Your data workflows are protected at every layer

🔐

Scoped API Keys

Each API key is locked to specific permissions — read, chat, predict, or admin. Revoke instantly from your dashboard. Keys are bcrypt-hashed at rest.

✓ Per-key scopes ✓ Instant revocation ✓ Usage tracking
🛡️

Signed Webhooks

Every webhook payload is signed with HMAC-SHA256. Verify the signature to ensure events genuinely come from DBToAgent — not from imposters.

✓ HMAC-SHA256 ✓ Timestamp validation ✓ Replay protection
🔁

Smart Retry & Auto-Disable

Failed deliveries retry with exponential backoff (3 attempts). After 10 consecutive failures, the webhook auto-disables to protect your systems.

✓ 3x retry w/ backoff ✓ Auto-disable at 10 fails ✓ Re-enable anytime

Automate Your Data Workflows Today

Connect your AI database agent with n8n. Start building self-hosted automations in minutes — no code, no complexity, no limits.

No credit card required · 14-day free trial · All plans include n8n access