Course lesson 32 · Building AI Workflows

Add Evaluation Data in UI

One study unit · Read, recall, then practice · Original video 00:05:45

The application’s evaluation screens are connected to real backend records instead of placeholder arrays. Two shared DataOps queries supply problematic destinations and recent evaluations through tRPC, filtered by the account context. The debugging sequence shows that an empty UI can be correct when the selected account differs from the account attached to the stored evaluation.

Primary source: course video 32 · Supplied English subtitles · 00:05:45.

Understand the idea

What the course does

  1. Start the user application and locate the problematic-links and evaluations sections.
  2. Import the shared evaluation queries into the tRPC evaluation routes.
  3. Replace problematic-destination dummy data with the query for unavailable results.
  4. Replace the general evaluation placeholder array with the real recent-evaluations query and await the results.
  5. Resolve the expired Cloudflare login affecting the remote D1 connection.
  6. Compare the test account ID in D1 with the application’s temporary user/account value, align the test setup, and inspect the displayed evaluations.

Watch for

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

Recall before revealing

Why could D1 contain evaluations while the application displays none?

Reveal the explanation

The route filters by account, and the demonstration’s stored test account initially did not match the application’s temporary account value.

Try it

Write a troubleshooting sequence for an empty evaluations screen. Include a query with the exact account ID being used by the route.

Check your result

You can separate a valid empty result from a broken connection and identify whether the stored account matches the requested account.

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 →