[Go to site: main page, start]

Skip to content

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 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,
});
OptionDescription
linkObject with url and label, appended to the message.
showFlowIdAppend the flow ID to the message.
showRunIdAppend 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 a channel, click Send test message to verify the connection.

Usage tracking ​

Before deleting a channel, you can inspect which flows reference it in their code.