﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
url: https://docs.puppetflow.com/guide/channels.md
---
# Notification Channels

Channels connect Puppetflow to messaging platforms for notifications and human-in-the-loop workflows.

## Supported providers

* **Telegram** - Send messages to Telegram chats via a bot.
* **Discord** - Send messages to Discord channels via a bot.
* **Slack** - Send messages to Slack channels via a bot.

## Creating a channel

1. First, set up a [messenger integration](/guide/integrations#messenger-integrations) for the desired platform.
2. Go to **Channels** and click **New Channel**.
3. Select the integration and pick a chat/channel from the detected list.
4. Give it a name and optional group.

## Visibility

* **Owner** - Private to you.
* **Team** - Available to members of the selected team.
* **Workspace** - Available to every workspace member.

## Using channels in flow code

### Sending notifications

```js
await $notify('channel-id', 'Deployment complete!', {
  link: { url: 'https://app.example.com', label: 'Open the app' },
  showFlowId: true,
  showRunId: true,
});
```

| Option | Description |
| --- | --- |
| `link` | Object with `url` and `label`, appended to the message. |
| `showFlowId` | Append the flow ID to the message. |
| `showRunId` | Append the run ID to the message. |

### Human-in-the-loop

Pause the run and wait for a human to approve before continuing:

```js
// Notify the team and wait for approval
await $waitHumanValidation(
  'User onboarding requires manual review. Continue?',
  'channel-id'
);

// The run resumes only after someone clicks "Continue run" in the UI
await $clickElement('#confirm-onboarding');
```

Without a channel argument, the flow pauses silently and shows **Continue run** in the run's **Live** tab:

```js
// Silent pause - no notification
await $waitHumanValidation();
```

The method declares a pending validation on the server and polls every 3 seconds until it is approved from the UI or the API.

## Testing channels

After creating