Skip to content
Impulse SoftwareDOCS
Get modules

ImpulseNotify

Verified for ImpulseNotify 0.5.0 ·

Connecting channels

A channel is one delivery route with its own encrypted credentials. Connect at least one before anything can be routed — Telegram, ntfy or a webhook is the quickest first channel. Everything here lives under Addons → ImpulseNotify → Channels.

A channel pairs one of ten delivery types — WhatsApp, SMS, Telegram, Webhook / n8n, Slack, Discord, Microsoft Teams, Email, Pushover and ntfy — with the credentials that type needs. You bring your own accounts; no message credits are bundled. You can run several channels of the same type, for example one Slack channel for billing and another for critical alerts.

  • Credentials are encrypted at rest (AES-256-GCM, keyed to your WHMCS install) and shown masked as •••••••• after saving. A Webhook, Slack, Discord or Teams destination URL counts as a credential too: the form shows only its host.
  • Default admin recipient (solo-operator mode): Telegram, SMS and Email channels include an optional Default admin recipient field. If you’re a one-person shop, fill it in once on the channel — admin rules with no explicit recipient will deliver straight to you without needing any Staff Recipients records. (Webhook, Slack, Discord, Teams, Pushover and ntfy already deliver to their saved URL, user/group key or topic by default.)
  • Status: a new channel reads unconfigured until its first test send; after that it shows ok or error with a Last test time.
  • Instant vs queued: for rule-routed events, Telegram, Webhook, Slack, Discord, Teams, Pushover and ntfy channels try to send on the same request that raised the event, so messages usually arrive immediately; WhatsApp, SMS and Email wait for the queue, which the 1-minute queue_drain cron task delivers. Manual single sends and WHMCS Notification Provider sends go out immediately on every channel type.
  • Dev mode: on an unlicensed install, creating a channel counts toward the 3-channel cap and every test send toward the 50-sends-per-day cap. Disabling, editing and deleting channels always work.

ImpulseNotify Channels tab listing configured Telegram, Slack, ntfy, Twilio SMS, WhatsApp, Pushover, and Email channels with ok status badges, inline Test send boxes, Auto-configure, and edit controls

  1. Go to Addons → ImpulseNotify → Channels.
  2. Click Add channel (guided) for the step-by-step wizard, or the manual setup link for a single form. Pick the channel type and give the channel a label.
  3. Fill in the credentials. Each field has inline help, and each type has a collapsible setup guide.
  4. Finish with a test send: the wizard ends on Test & enable; on the list, use the row’s Test send. A test result shows the provider’s response, with any credential scrubbed out.

A wizard you leave part-way stays on the list as a disabled draft with a Resume setup button.

ImpulseNotify guided channel setup wizard Step 1 displaying all ten channel type cards — WhatsApp, SMS, Telegram, Webhook/n8n, Slack, Discord, Microsoft Teams, Email, Pushover, and ntfy — with icons and capability summaries

3. Telegram — the quickest first channel

Section titled “3. Telegram — the quickest first channel”

Telegram needs no approvals, so it’s one of the fastest ways to prove the pipeline end to end. The guided wizard has four steps.

  1. In Telegram, message @BotFather, send /newbot, pick a name and username, and copy the Bot token it issues.
  2. In the wizard’s Bot token step, paste the token. The Webhook secret token is a string of 8–256 characters (A-Z a-z 0-9 _ -); leave it blank and the wizard generates one. Saving checks the token with Telegram — you only advance when the bot answers.
  3. Find your chat id: bots can’t start conversations, so send your bot any message first (for a group, add the bot and post something), then click Refresh chats and pick the chat. You can also type a chat id; group ids are negative. (For a solo setup, you can paste this chat id into Default admin chat ID on the channel edit form.)
  4. Test & enable.

Recipients on Telegram are chat ids, not usernames.

Client linking, STOP replies & automatic webhooks

Section titled “Client linking, STOP replies & automatic webhooks”

Your clients can link their own Telegram chat from the client-area preferences page with Connect Telegram (one-time encrypted pairing token), and a linked client can reply STOP to opt out. Both require Telegram to deliver updates to your channel’s callback URL:

<your WHMCS System URL>/modules/addons/impulsenotify/callbacks/telegram.php?channel=<CHANNEL_ID>

ImpulseNotify registers that webhook automatically (setWebhook with your channel’s secret token) when you enable the channel, pass a test send while enabled, save a new token/secret, or click Regenerate secret. It never overwrites a webhook already pointing at a different server — use Settings → Health Checks → Telegram webhooks to inspect live getWebhookInfo, click Register here / Register again, or regenerate the secret. Once a webhook is registered, Telegram stops answering the wizard’s getUpdates (Refresh chats) lookup, so find your chat ids before enabling the channel.

The Webhook channel POSTs a signed JSON body to any public endpoint — an n8n Webhook node, a custom receiver, or another automation platform.

  • Destination URL — the endpoint that receives the POST. A rule’s Recipient can override it per rule.
  • Signing secret — at least 8 characters. Leave it blank in the wizard and one is generated and shown once, so you can copy it into your receiver.

Every delivery is a JSON POST with the fields event, occurred_at, text, vars and request_id, and four headers:

Header Value
X-ImpulseNotify-Origin impulsenotify
X-ImpulseNotify-Timestamp Unix time of the send
X-ImpulseNotify-Signature-V2 sha256= + hex HMAC-SHA256 of {timestamp}.{rawBody}, keyed with the signing secret (recommended — binds timestamp and body against replays)
X-ImpulseNotify-Signature sha256= + hex HMAC-SHA256 of the raw body, keyed with the signing secret (kept for backwards compatibility)

Verify the signature on the receiving side before you trust the body — prefer X-ImpulseNotify-Signature-V2 (checking that X-ImpulseNotify-Timestamp is recent, e.g. within 5 minutes) and compare in constant time. In an n8n Code node, for example:

const ts = headers['x-impulsenotify-timestamp'] || '';
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
const given = headers['x-impulsenotify-signature-v2'] || '';
if (!crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(given))) throw new Error('bad signature');

A Webhook channel needs no message template: rule-routed events arrive with their variables in vars.

Each of these takes a single URL, which is the credential and is stored encrypted. A rule’s Recipient can override it per rule.

  • Slack — an Incoming webhook URL (Slack app → Incoming Webhooks → Add New Webhook to Workspace).
  • Discord — a channel Webhook URL (Channel → Edit → Integrations → Webhooks → New Webhook → Copy URL).
  • Microsoft Teams — a Workflow URL: the HTTP POST URL of a Power Automate “When a Teams webhook request is received” workflow. Messages arrive as an Adaptive Card.
Section titled “Rich color-coded cards & “View in WHMCS” links”

Rule-routed WHMCS event alerts automatically render with severity colors and a clickable View in WHMCS link (pointing straight to the ticket, invoice, order, service or client in your WHMCS admin area) — Slack attachments, Discord embeds, and Teams Adaptive Card banners + Action.OpenUrl buttons:

  • Green — paid invoices, paid/accepted orders, provisioned/unsuspended services, completed patches.
  • Red — fraud orders, ticket SLA breaches, suspended/terminated services, critical CVEs, failed patches.
  • Amber — payment reminders, refunds, cancellations, expiring domains, maintenance deferral caps.
  • Blue — general activity (new invoices, new orders, tickets, upgrades, logins).

Customer-supplied values (names, company names, ticket subjects) have Slack and Discord chat markup neutralised before rendering.

SMS runs on your own gateway account, chosen per channel under SMS provider. Only the selected provider’s fields apply:

Provider Fields Receipts & STOP
Twilio Account SID, Auth token, Messaging Service SID or From number ✓
Vonage (Nexmo) API key, API secret, From, Signature secret (optional), Signature method ✓ — callbacks need the signature secret
Telnyx API key, From or Messaging Profile ID, Public key ✓ — callbacks need the public key, PHP’s sodium extension, and a fresh timestamp (< 300s)
Plivo Auth ID, Auth token, From ✓
MessageBird / Bird Access key, From, Signing key ✓ — callbacks require a fresh timestamp (< 300s)
AWS SNS Access key ID, Secret access key, Region, Sender ID (optional), SMS type — send-only
  • Default admin number (optional): set an E.164 phone number on the channel if you’re a solo operator and want admin SMS rules delivered there whenever no Staff Recipients match.
  • Recipients are normalized to E.164; a number that can’t be normalized fails without retrying. Settings → Health Checks → Phone-number normalizer shows how a raw number converts.
  • Callback URL: once the channel is saved, Settings → Health Checks → SMS callback endpoints lists its URL (…/modules/addons/impulsenotify/callbacks/sms.php?channel=<id>) and where it goes in your provider’s console. Paste it exactly as shown, as an HTTP POST webhook. The one URL takes both delivery receipts and inbound replies. AWS SNS has no inbound webhook — its delivery status goes to Amazon CloudWatch.
  • STOP replies: an inbound STOP, STOPALL, UNSUBSCRIBE, CANCEL, END or QUIT from a phone number opts out every client holding that verified number across every category on SMS — including Announcements — with at most one confirmation message per number per day. Two-way replies need a real number, not an alphanumeric sender ID.

Email has two optional fields: From name and Default admin email (for solo operators when no Staff Recipients match). The mail provider, from address and SMTP settings live under Settings → Email delivery, which embeds ImpulseCore’s shared Email Delivery panel: leave it unconfigured to inherit your ImpulseCore-wide email settings, or set a provider there to override them for notifications only. With neither configured, email falls back to the WHMCS mailer.

  • Application API token — the 30-character token of your registered Pushover application.
  • Default user/group key — used when a rule gives no recipient. A rule can target another user or group key.
  • Optional Device(s), Default title, Priority (-2 silent to 1 high), Sound and Time to live. Emergency priority 2 isn’t supported, because it needs acknowledgement tracking.
  • Per-rule priority override & WHMCS links: any rule can override the channel’s default Pushover priority under Conditions & targeting → Pushover priority override (for example, keeping normal billing alerts at 0 while escalating fraud and SLA breaches to 1 High). Event alerts also include a clickable View in WHMCS url action.

ntfy is a free, open-source HTTP push service with iOS, Android and desktop apps — use public https://ntfy.sh or point ImpulseNotify at your own self-hosted ntfy server.

  • Server URL — optional https:// base URL (defaults to https://ntfy.sh when left blank; SSRF-checked for public hosts).
  • Default topic — required topic name (1–64 letters, digits, - or _). Rules can leave Recipient blank to publish to this default topic, or enter another topic name as a per-rule override.
  • Access token (optional) — Bearer token (tk_…) for private/authenticated topics, stored encrypted and sent in the Authorization: Bearer header.
  • Priority (optional) — 1 (min) through 5 (urgent). Leave blank to auto-scale by event severity (red alerts send as priority 5 with rotating_light, amber warnings as 4, normal events as 3). Event alerts also attach Title, Tags, and a clickable Click header linking straight into WHMCS.

WhatsApp needs a Meta app, a permanent access token, the app secret and a verified webhook, and every business-initiated message must use a Meta-approved template.

  • Fields: App ID, Phone number ID, WhatsApp Business Account ID, Access token, App secret, Webhook verify token.
  • The guided wizard has five steps — channel type & label, Meta app credentials (saving checks the token), business account & number discovery, webhook, and test & enable. On the channel list, Auto-configure discovers the IDs, generates the verify token and subscribes the webhook for you.
  • Meta’s GET verification handshake works even while the channel is a wizard draft (once the verify token is saved); delivery-receipt POSTs require the channel to be enabled.
  • Map WHMCS events to your Meta-approved templates on the Templates tab — see WhatsApp onboarding.
Type Fields (secrets stored encrypted) Delivery receipts Inbound
WhatsApp App ID, Phone number ID, WhatsApp Business Account ID, Access token, App secret, Webhook verify token ✓ —
SMS per provider — see SMS, optional Default admin number ✓ (not AWS SNS) STOP replies
Telegram Bot token, Webhook secret token, optional Default admin chat ID — Client linking, STOP replies
Webhook / n8n Destination URL, Signing secret — —
Slack Incoming webhook URL — —
Discord Webhook URL — —
Microsoft Teams Workflow URL — —
Email From name, optional Default admin email — —
Pushover Application API token, Default user/group key, Device(s), Default title, Priority, Sound, Time to live — —
ntfy Server URL, Default topic, Access token, Priority — —

Secrets are in bold.