intermediate4 min read

Alert Channels

Alert Channels

Alert channels define where notifications are sent when an alert fires. Configure channels once and reuse them across multiple alerts.

Email Channel

The simplest channel. Enter one or more email addresses separated by commas.

Configuration:

  • Recipients -- email addresses
  • Include data -- attach the query results as a table in the email body
  • Format -- HTML (rich) or plain text

Slack Channel

Post alert notifications to Slack channels.

Setup:

  1. 1Go to Settings > Integrations > Slack and click Connect.
  2. 2Authorize AI for Database to post to your workspace.
  3. 3When creating an alert channel, select the Slack channel from the dropdown.

Configuration:

  • Channel -- the Slack channel to post to
  • Mention -- optionally @mention a user or @here/@channel
  • Include data -- include query results in the message

Webhook Channel

Send a JSON payload to any HTTP endpoint. Useful for integrating with PagerDuty, Opsgenie, Datadog, Zapier, or custom systems.

Configuration:

  • URL -- the endpoint
  • Method -- POST (default) or PUT
  • Headers -- add Authorization or custom headers
  • Payload template -- JSON template with variables:
json
{
  "alert_name": "{{alert_name}}",
  "status": "{{status}}",
  "value": "{{current_value}}",
  "threshold": "{{threshold}}",
  "timestamp": "{{triggered_at}}"
}

PagerDuty Integration

A specialized webhook preset for PagerDuty. Enter your PagerDuty integration key and AI for Database handles the event formatting automatically. Supports triggering, acknowledging, and resolving incidents.

Testing Channels

Click Send Test on any channel to send a sample notification. This helps verify the configuration before you rely on it for real alerts.

Channel Management

View all configured channels in Settings > Alert Channels. Each channel shows how many alerts use it, the last notification time, and delivery status.