Message received in a queue
Start a workflow when the consumer receives a message from the selected queue.
Workflow template
Save each message body as a JSON file in the chosen R2 bucket, with a distinct object key for each queue and message.
How it works
Start a workflow when the consumer receives a message from the selected queue.
Run the R2 S3-compatible PutObject operation.
Before activation
Configure the relay Worker with the FastHook callback and shared secret. Set it as the source queue’s consumer and enter the queue name in the trigger.
Select an R2 connection with write access to your bucket. Keep the file mapped to the queue trigger. The default key is queue-archive/<queue>/<message_id>.json.
Activate the workflow and send a JSON message with a recognizable value. Use the delivery’s message ID to find the object in R2 and compare its JSON with what you sent.