Course lesson 25 · Building AI Workflows

What are Cloudflare Workflows?

One study unit · Read, recall, then practice · Original video 00:07:27

The next feature evaluates destination pages: render their content, ask AI whether the product remains available, and preserve evidence. Cloudflare Workflows supplies named steps with persisted progress and configurable retry behaviour, making the process easier to manage than a long HTTP request. The lesson explains the intended architecture before implementation and contrasts it with much heavier data-processing orchestration.

Primary source: course video 25 · Supplied English subtitles · 00:07:27.

Understand the idea

What the course does

  1. Identify the destination URL as the input and page health as the application-facing result.
  2. Plan a rendering step that collects visible text and HTML.
  3. Plan an AI step that interprets the collected page content.
  4. Plan evidence storage so the collected input can later support debugging and evaluation.
  5. Inspect the WorkflowEntrypoint class, its run method, and named steps in the conceptual example.
  6. Review concurrency and duration constraints before treating the example as a high-volume production design.

Watch for

Recall before revealing

Why give browser rendering and AI inference different retry policies?

Reveal the explanation

They have different failure modes and costs; retrying an expensive inference repeatedly may waste money even when retrying a transient rendering failure is useful.

Try it

Sketch three or four named steps for checking a product page, and write the output needed by the following step.

Check your result

Each step has a clear responsibility and a reason for the data it passes onward; the AI input comes from rendered evidence.

Practice prompts and answer checks are added teaching material. Answer from memory first, then compare and explain any difference.

Rewatch only what you need

Open this lesson in your original course library and seek to the times below. Videos are not hosted on this site.

Companion primary documentation: Workflows Workers API. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →