Course lesson 26 · Building AI Workflows

Build & Deploy a Workflow

One study unit · Read, recall, then practice · Original video 00:09:15

The instructor creates and deploys the first destination-evaluation workflow with one named step returning dummy data. The class, entrypoint export, Wrangler binding, resource name, and class name are connected so Cloudflare can discover and execute it. A manual dashboard trigger then confirms the wiring before real browser and AI work are introduced.

Primary source: course video 26 · Supplied English subtitles · 00:09:15.

Understand the idea

What the course does

  1. Create a workflows folder and the destination-evaluation class in the data service.
  2. Implement run with an event argument and a step argument, initially using an unknown payload type.
  3. Add a descriptive step that logs an action and returns a small dummy object.
  4. Export the workflow class from the Worker entrypoint.
  5. Configure the workflow binding, deployed name, and exported class name in Wrangler, then deploy.
  6. Trigger an instance in the dashboard, inspect its completed step and output, and note how instance parameters and IDs are supplied.

Watch for

Follow the final workflow correction in lesson 34 when combining these steps.

Recall before revealing

What is the difference between a workflow definition and an instance?

Reveal the explanation

The definition is the deployed class and its steps; an instance is one execution of that definition with its own identity, inputs, and progress.

Try it

Change the dummy step to return a small diagnostic object describing the input URL, then trigger two distinct test instances.

Check your result

You can locate each instance separately and connect its visible output to the parameters supplied for that execution.

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 →