notify

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 6 Imported by: 0

README

togo

togo-framework/live-notify

marketplace pkg.go.dev MIT

Bridge togo live agent replies out through the notifications system — one bridge, zero per-provider live drivers.

Install

togo install togo-framework/live-notify

Usage

live-notify registers three live egress channels — slack, discord, and notify — that route an agent's reply through the togo notifications system. A conversation on one of these channels is delivered by the existing notifications-* driver, so there's no per-provider live code to write.

Blank-import this bridge alongside the notifications channel driver(s) you want:

import (
    _ "github.com/togo-framework/live-notify"          // registers slack / discord / notify live channels
    _ "github.com/togo-framework/notifications-slack"   // the matching notifications driver
)

Then set a conversation's channel and provide the driver's webhook env:

  • Set a conversation's channel to "slack" or "discord" to deliver each agent reply through that notifications channel.
  • Set it to "notify" to fan out to every channel listed in LIVE_NOTIFY_CHANNELS (CSV), e.g. LIVE_NOTIFY_CHANNELS=slack,discord.
  • Configure the underlying driver as usual — SLACK_WEBHOOK_URL for notifications-slack, DISCORD_WEBHOOK_URL for notifications-discord, etc.

Any registered notifications channel works the same way — notifications-webpush, -fcm, -pusher, -mail — with no extra live code. If the notifications plugin isn't installed, delivery is a no-op.

See docs/usage.md for an end-to-end example.


💎 Premium sponsors — ID8 Media · One Studio

Documentation

Overview

Package notify bridges togo `live` conversations to the togo `notifications` system, so an agent's reply can be delivered out over ANY registered notifications channel — slack, discord, webpush, fcm, pusher, mail, broadcast — without a per-provider live driver. Blank-import this alongside the notifications channel driver(s) you want (e.g. togo-framework/notifications-slack).

A live conversation whose `channel` is "slack" or "discord" delivers through that notifications channel; the "notify" channel fans out to the comma list in LIVE_NOTIFY_CHANNELS (e.g. "slack,discord").

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL