# Notify Discord when a Stream live input disconnects

Tell the production team when its encoder disconnects from a Cloudflare Stream live input.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-stream-live-to-discord&templateName=Notify+Discord+when+a+Stream+live+input+disconnects)

**Required accounts**

- Cloudflare Stream
- Discord

## Notify Discord when a Stream live input disconnects

### 1. Trigger · Live input disconnected

**Cloudflare Stream**. Stream reported live\_input.disconnected.

### 2. Action · Report the encoder disconnect

**Discord**. Send rich content, files, a poll, or a reply to a channel.

## Set up your workflow

1. **Select a live input** In Cloudflare Notifications, configure encoder-disconnect notifications for the intended Stream live input. Send them to the webhook destination used by the FastHook relay.
2. **Choose the production team’s channel** Connect Discord and select a channel where the bot can post. Keep the live input ID and update time in the notification so operators can find the stream.
3. **Disconnect a rehearsal encoder** Start and stop an encoder on a test live input. Match the ID and disconnect time in Discord to that rehearsal.

## Related integrations

- [Cloudflare Stream integrations](https://www.fasthook.io/apps/cloudflare-stream/integrations)
- [Discord integrations](https://www.fasthook.io/apps/discord/integrations)
