live-notify
OtherBridge togo live agent replies to the notifications system — Slack, Discord, web-push, FCM, Pusher, mail — via one live.Channel. For togo-framework/live.
togo install togo-framework/live-notifyInstall
togo install togo-framework/live-notifyUsage
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
channelto"slack"or"discord"to deliver each agent reply through that notifications channel. - Set it to
"notify"to fan out to every channel listed inLIVE_NOTIFY_CHANNELS(CSV), e.g.LIVE_NOTIFY_CHANNELS=slack,discord. - Configure the underlying driver as usual —
SLACK_WEBHOOK_URLfornotifications-slack,DISCORD_WEBHOOK_URLfornotifications-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.
<div align="center"><sub>💎 Premium sponsors — <b>ID8 Media</b> · <b>One Studio</b></sub></div>