# Announce a new R2 release file in Slack

Record the object key from an R2 upload in KV and let your release channel know which file arrived.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-r2-release-pointer-to-kv-and-slack&templateName=Announce+a+new+R2+release+file+in+Slack)

**Required accounts**

- Cloudflare R2
- Cloudflare Workers KV
- Slack

## Announce a new R2 release file in Slack

### 1. Trigger · A file was uploaded to R2

**Cloudflare R2**. R2 reports PutObject on the selected bucket.

### 2. Action · Record the uploaded object key

**Cloudflare Workers KV**. Write text or binary data under one key. Optionally attach JSON metadata or set an expiration time.

### 3. Action · Notify the release channel

**Slack**. Send text, Block Kit content, attachments, or a thread reply to a channel.

## Set up your workflow

1. **Choose the release bucket** Connect the R2 account and select the bucket for new release files. Configure a PutObject notification for the release prefix and forward it through the FastHook R2 relay.
2. **Name the pointer in KV** Select the namespace and choose a key such as releases:current. The value is the uploaded object key in R2. Consumers can use their existing bucket access to read the file.
3. **Choose a Slack channel** Connect Slack and select the release channel. Invite the app to a private channel before activating. The message includes the bucket and object key.
4. **Upload a release file** Upload a new object under the configured prefix with a single PUT. Read releases:current and compare it with the key in the Slack message. The pointer follows notification delivery order.

## Related integrations

- [Cloudflare R2 integrations](https://www.fasthook.io/apps/cloudflare-r2/integrations)
- [Cloudflare Workers KV integrations](https://www.fasthook.io/apps/cloudflare-workers-kv/integrations)
- [Slack integrations](https://www.fasthook.io/apps/slack/integrations)

## Related workflow templates

- [Notify Slack when an R2 object is deleted](https://www.fasthook.io/templates/cloudflare-r2-deletions-to-slack.md): Send the bucket, object key and deletion time to your operations channel.
