Skip to main content

Webhook Targets (Slack, Teams, Google Chat)

A webhook target posts NudgeBee notifications to a Slack channel, a Microsoft Teams channel, or a Google Chat space through that tool's incoming webhook:

  • You paste one URL. There is no app to install, and no workspace admin approval or consent.
  • Delivery is one-way. People can read the notification and open its links, but cannot reply to NudgeBee, chat with nubi, or press action buttons.
  • You can create as many targets as you need, for example one per team channel.

Each target is tied to the single channel or space its URL was created for. A target receives only what a notification rule sends to it, or what the rules page's When no rule matches row sends to it.


Webhook Target or App?​

The Slack, Microsoft Teams, and Google Chat apps connect NudgeBee to your workspace. Webhook targets trade that interactivity for a setup anyone can do in a minute.

App integrationWebhook target
SetupOAuth install, or a service account, often with admin approvalPaste one URL
DirectionTwo-way: replies, chat with nubi, action buttonsOne-way: link buttons only
ChannelsChoose any channel the app can seeExactly one channel or space per URL
Default channelYesNo. Only a rule, or the When no rule matches row, sends to a target.
Threaded updates and resolved repliesSlack app onlyNo
Retries when rate-limitedSlack and Teams appsNo
How manyOne installation per workspaceAs many as you need

Use the app if your team wants to act on alerts from chat. Use a webhook target when you only need alerts to land in a channel, or when installing an app is not an option.


Step 1: Create the Webhook in Your Chat Tool​

Slack​

  1. Go to api.slack.com/apps. Open an app you own, or create one with Create New App > From scratch.
  2. Open Incoming Webhooks and switch Activate Incoming Webhooks on.
  3. Click Add New Webhook to Workspace, pick the channel, and click Allow.
  4. Copy the webhook URL. It starts with https://hooks.slack.com/services/.

Reference: Sending messages using incoming webhooks

Microsoft Teams​

  1. In Teams, open the channel, click ••• next to the channel name, and choose Workflows.
  2. Pick the template Send webhook alerts to a channel. Older Teams clients, and the hint in NudgeBee's dialog, call it Post to a channel when a webhook request is received.
  3. Choose the team and channel, then click Save.
  4. On the workflow's details page, copy the webhook URL. It is an HTTPS URL on a Power Automate host, such as one ending in .logic.azure.com or .powerplatform.com.
Use Workflows, not the Office 365 connector

Microsoft has retired the classic Incoming Webhook connector for Office 365. Create new targets from Workflows, as above. The Workflows URL keeps working after the connector shuts down.

Reference: Send messages in Teams using incoming webhooks

Google Chat​

  1. In Google Chat, open the space and click the space name at the top.
  2. Choose Apps & integrations > Webhooks > Add webhook.
  3. Give it a name, for example NudgeBee, and click Save.
  4. Copy the URL. It starts with https://chat.googleapis.com/v1/spaces/.

Incoming webhooks are available only in Google Workspace spaces. Spaces on personal Gmail accounts do not support them.

Reference: Send messages to Google Chat with incoming webhooks


Step 2: Add the Target in NudgeBee​

  1. Navigate to Admin > Integrations > Messaging & Alerting, and select Slack, Microsoft Teams, or Google Chat.
  2. Find the Webhook targets section:
    • Slack and Microsoft Teams: if the app is installed, open the Webhook targets tab. If it is not, the Webhook targets section appears below the prompt to connect the app. You do not need to connect the app.
    • Google Chat: it sits below the spaces table.
  3. Click Create webhook.
  4. Fill in the dialog:
    • Name * (Required): how the target appears in notification rules, for example Prod alerts — #ops. Names must be unique within a provider.
    • Webhook URL * (Required): the URL from Step 1.
  5. Click Send test message. NudgeBee posts a short test message to the channel. When the dialog shows ✓ Test delivered, the Create button is enabled.
  6. Click Create.

The Slack "Create webhook target" dialog

The Microsoft Teams and Google Chat dialogs have the same two fields. Only the URL hint and the instructions under it differ:

The Microsoft Teams "Create webhook target" dialog

The Google Chat "Create webhook target" dialog

Webhook targets belong to the whole tenant, not to one account. Any notification rule can use a target, whatever account the rule covers. The webhook URL is stored encrypted and is never shown again after you save it.

Creating and editing targets requires permission to manage messaging integrations. Users without it see the list but not the Create webhook button.


Step 3: Route a Notification Rule to the Target​

A new target receives nothing until a rule sends to it. It is never used as an app's default channel.

  1. Navigate to Admin > Notification Rules. Click Add rule > Blank rule, or open an existing rule.
  2. Under Which, choose the notification types. Under From, choose the accounts.
  3. Under Do, choose Send them. There is one picker for each place NudgeBee can send to. Pick your target by name in Slack webhook, Teams webhook, or Google Chat webhook. A picker appears once at least one target of that type exists.
  4. Save the rule.

The Do section of a rule, with a picker for each connected app and webhook target type

To send notifications that no rule covers to a target, edit the When no rule matches row at the bottom of the rules list. Choose Send to specific channels for all notifications, or Specific channels for one type, and pick the target in the same pickers.

To check where a notification would go before relying on it, click Check where it goes on the rules page.

Some rules to keep in mind:

  • One target per type per rule. Each picker holds one target. To post the same notifications to two Slack channels, create a separate rule for each channel.
  • Every matching rule delivers. A target receives a notification if any matching rule names it. A Don't send rule is the exception: it wins over every other rule.
  • Daily email rules send only email, so they have no channel pickers. The other types can all send to a webhook target: Troubleshooting, SLO, Cloud spend, Optimization, Automation, Weekly digest, and AI Gateway budget alerts.

What the Notification Looks Like​

Webhook targets use the same message templates as the matching app, minus anything interactive:

  • Slack: the same alert card the Slack app posts, with the severity color, title, evidence, cluster, resource, and priority. It keeps the View Details link. The Ask nubi button and the Suppress menu are removed, because Slack cannot send their clicks back through a webhook.
  • Microsoft Teams: the same Adaptive Card the Teams app posts, with the alert, namespace, account, status, and evidence, and a View button that opens the event in NudgeBee.
  • Google Chat: a text message with the alert, reported time, namespace, account, status, and evidence, and a View Details link.

Each target receives the same types of notification as its app. Every repeat of an alert is posted as a new message. Webhooks cannot thread replies under an earlier message.


Manage Targets​

Each target's row menu in the Webhook targets section offers three actions:

  • Test sends a test message to the saved URL. Use it to check that a target still works.
  • Edit renames the target, or replaces its URL. To keep the current URL, leave Webhook URL blank. A new URL must pass Send test message before you can save it. A rename alone does not need a test.
  • Delete removes the target. Rules that sent to it stop delivering there. Such a rule keeps showing the deleted target in its picker, and it cannot be saved until you pick another target or clear the picker.

Troubleshooting​

Symptom or MessageCauseFix
webhook_url host "…" is not a Slack incoming webhook hostThe URL is not a hooks.slack.com URLCopy the URL from the Slack app's Incoming Webhooks page
webhook_url host "…" is not a Microsoft Teams / Power Automate webhook hostThe URL is not from a Teams workflowCreate the URL from Workflows > Send webhook alerts to a channel
webhook_url host "…" is not a Google Chat incoming webhook hostThe URL is not a chat.googleapis.com URLCopy the URL from the space's Apps & integrations > Webhooks
webhook_url must be httpsThe URL starts with http://Use the https:// URL exactly as issued
could not reach the … webhookNudgeBee could not connect to the URL: a mistyped host, or a DNS or network problemRe-copy the URL from the chat tool
the … webhook returned 403 or 404The webhook was revoked or deleted, or the Teams workflow is turned offTurn the Teams workflow back on, or create a new webhook, then Edit the target and paste the new URL
A webhook target with this name already exists.Another target of this type has the same nameChoose another name
The target shows Active, but nothing arrivesNo rule sends to it, and neither does the When no rule matches rowAdd the target to a rule, as in Step 3. Use Check where it goes to check.
Messages stopped arriving, and the target still shows ActiveThe webhook was revoked. NudgeBee does not retry failed deliveries, and does not disable a failing target.Use Test on the target's row. If it fails, create a new webhook and edit the target.