本文へスキップ
記事中級

R2 のイベント通知でアップロードされた PDF を要約する

R2 のイベント通知と Queues を使い、PDF がアップロードされた時点で Workers AI により要約し、結果をバケットに保存します。

最終更新
2026年10月12日
元の記事を読む

この紹介文は現在英語版のみです。

When a PDF lands in an R2 bucket, an event notification puts a message on a queue; a Worker consumes it, extracts the PDF’s text, summarizes it with Workers AI and writes the summary as a text file to the same bucket.

What you’ll learn

  • Build an upload front end
  • Create a queue and enable R2 event notifications
  • Extract text from a PDF
  • Summarize with Workers AI and store the result in R2

Cloudflare products used

R2, Queues, Workers AI.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

さらに学ぶ