Configure Slack, Teams, and Discord Webhook Channels

Who this is for

Teams using Slack, Microsoft Teams, or Discord who want CloudAIPilot notifications posted to their channels.

What you will complete

Create an incoming webhook in your messaging platform and connect it to CloudAIPilot as a notification channel.

Before you begin

  • Admin or Owner role in CloudAIPilot.
  • Admin access to your Slack workspace, Teams tenant, or Discord server to create a webhook.

Slack setup

Step 1: Create a Slack incoming webhook

  1. Go to your Slack workspace and open Settings & Administration → Manage Apps.
  2. Search for Incoming Webhooks and click Add to Slack.
  3. Select the channel where you want CloudAIPilot notifications to appear (e.g., #devops-alerts).
  4. Click Add Incoming Webhooks Integration.
  5. Copy the Webhook URL — it looks like https://hooks.slack.com/services/T.../B.../....

Alternatively:

  1. Go to api.slack.com/apps and create a new app.
  2. Under Incoming Webhooks, enable it and add a webhook to your workspace.
  3. Select the channel and copy the webhook URL.

Step 2: Add the Slack channel in CloudAIPilot

  1. Go to Settings → Notification Channels → Add Channel.
  2. Select Slack.
  3. Enter a Channel Name (e.g., "DevOps Slack Alerts").
  4. Paste the Webhook URL you copied from Slack.
  5. Click Add Channel.
  6. Click Test to send a test message to your Slack channel. Verify it appears.

Microsoft Teams setup

Step 1: Create an incoming webhook in Teams

  1. Open Microsoft Teams and go to the channel where you want notifications.
  2. Click the ... (more options) next to the channel name → Connectors.
  3. Find Incoming Webhook and click Configure.
  4. Give the webhook a name (e.g., "CloudAIPilot Alerts") and optionally upload an icon.
  5. Click Create.
  6. Copy the Webhook URL — it looks like https://outlook.office.com/webhook/....
  7. Click Done.

Step 2: Add the Teams channel in CloudAIPilot

  1. Go to Settings → Notification Channels → Add Channel.
  2. Select Microsoft Teams.
  3. Enter a Channel Name (e.g., "Teams Infrastructure Alerts").
  4. Paste the Webhook URL.
  5. Click Add Channel.
  6. Click Test to verify a message appears in your Teams channel.

Discord setup

Step 1: Create a Discord webhook

  1. Open Discord and go to the server and channel where you want notifications.
  2. Click the gear icon (channel settings) next to the channel name.
  3. Select Integrations → Webhooks → New Webhook.
  4. Give it a name (e.g., "CloudAIPilot") and optionally change the avatar.
  5. Click Copy Webhook URL — it looks like https://discord.com/api/webhooks/....

Step 2: Add the Discord channel in CloudAIPilot

  1. Go to Settings → Notification Channels → Add Channel.
  2. Select Discord.
  3. Enter a Channel Name (e.g., "Discord Server Alerts").
  4. Paste the Webhook URL.
  5. Click Add Channel.
  6. Click Test to verify a message appears in your Discord channel.

Custom Webhook setup

For any other service (PagerDuty custom integration, your own API, etc.):

  1. Select Webhook as the channel type.
  2. Enter the destination URL.
  3. Optionally enter a Secret — CloudAIPilot will sign all payloads with HMAC-SHA256 using this secret. Verify the signature on your server to confirm authenticity.
  4. CloudAIPilot sends a JSON payload to your URL for each event.

What success looks like

  • After clicking Test, a test message appears in your Slack channel, Teams channel, or Discord channel within a few seconds.
  • The channel status updates to Verified.

Common errors and fixes

"Test shows success but no message appeared in the channel" Cause (Slack): The webhook may have been deleted in Slack after you copied the URL. Fix: Create a new webhook in Slack and update the URL in CloudAIPilot.

Cause (Teams): The connector may have expired. Teams connectors can be disabled by Microsoft after inactivity. Fix: Re-create the connector in Teams and update the URL in CloudAIPilot.

"Test shows an error — 'Invalid webhook URL'" Fix: Verify the URL is correctly copied with no extra spaces or characters. The URL must start with https://.

"I want notifications in multiple Slack channels" Fix: Add multiple Slack channels — one per webhook URL. Each channel is independent.


Related articles