# Record recent Cloudflare Queue deliveries in Workers KV

Index the delivery metadata for 24 hours using the delivery ID as the key. The record includes the queue, message ID, attempt and timestamp. Message contents stay out of KV.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-queues-deliveries-to-workers-kv&templateName=Record+recent+Cloudflare+Queue+deliveries+in+Workers+KV)

**Required accounts**

- Cloudflare Queues
- Cloudflare Workers KV

## Workflow steps

### 1. Trigger · Message received in a queue

**Cloudflare Queues**. Start a workflow when the consumer receives a message from the selected queue.

### 2. Action · Index the queue delivery

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

## Set up your workflow

1. **Copy the template** Open the template in FastHook to create an editable Workflow Draft.
2. **Connect your accounts** Connect your accounts for Cloudflare Queues, Cloudflare Workers KV.
3. **Review the Workflow** Review the Steps, field mappings, routes, and provider settings.
4. **Activate** Activate the Workflow when the Draft is ready, then verify a test run.

## Questions about this template

### Does the template copy someone else's credentials?

No. FastHook creates a disconnected Draft. Connect your own Cloudflare Queues, Cloudflare Workers KV accounts before activation.

### Can I change the Steps and mappings?

Yes. The copied Workflow is an editable Draft. Review every Step, input, mapping, and route before you activate it.

### What is copied into my workspace?

FastHook recreates the Trigger configuration, Action Steps, routes, and mappings with new IDs. Provider accounts, credentials, and secrets are never copied.

### When does the Workflow start running?

Only after you connect the required accounts, finish the configuration, and explicitly activate the Draft.

## Related integrations

- [Cloudflare Workers KV integrations](https://www.fasthook.io/apps/cloudflare-workers-kv/integrations)
- [Cloudflare Queues integrations](https://www.fasthook.io/apps/cloudflare-queues/integrations)
