Getting the transcript
Reading the captions from YouTube. A video nobody has opened here before takes 10 to 30 seconds; this page fills in on its own.
Getting the transcript
Reading the captions from YouTube. A video nobody has opened here before takes 10 to 30 seconds; this page fills in on its own.

Google Cloud Tech · @googlecloudtech
This video has no Most replayed graph yet: YouTube shows one only once a video has enough views. These are the moments viewers replayed most in Google Cloud Tech's most watched videos.
Most replayed moment at 3:55
3.7x that video's typical replay level
this transportation agent next. So this gives us predictable, reliable execution. And you can take a look at a screen for this code example of how to write it in sequential agent. All right, let's try it out in ADK web UI.
Said at 3:49
Most replayed moment at 2:05
2.0x that video's typical replay level
and then put together the generator agent and critique agent with sequential agent. And now let's test with ADK Web UI, by typing adk web. We will type our requests here, and in the tracing tab,
Said at 2:01
The graph counts replays. It does not show where viewers stopped watching.
Words
1,095
Runtime
6:09
Speaking pace
178wpm
Reading time
5min
178 words per minute, just under the 181 median of 349 measured videos. That distribution comes from the 349-video hook study.
Opening (first 30 seconds)
In this video, you will know what Graph Engineering is and how to build one and when you should use it. Hey, I'm Annie. So in the last video we discussed why Loop Engineering failed and why you should consider Graph Engineering. And today let's define Graph Engineering with code that actually runs. So first what is Graph Engineering? You can think of it as you're creating a graph workflow for your system. And inside the graph you can have agents or other deterministic function as node. And let's
89 words, the words spoken in the first 30 seconds at 178 words per minute.
Free, no signup. See how the first 30 seconds hold attention, with rewrites.
Sentence shape
| Measure | This transcript |
|---|---|
| Sentences | 110 |
| Average words per sentence | 10.0 |
| Longest sentence | 27 words |
| Questions asked | 7 |
| Sentences containing a number | 3 |
Most used terms
Filler phrases
8 in total: you know 5 · like 2 · actually 1.
A literal whole-word count of the same phrase list the Prepublish browser extension uses, so a phrase inside another word is not counted and a phrase used in its ordinary sense still is. It is a count and not a judgement.
What this transcript is
Every word below is the caption track YouTube publishes for this video, pulled from the video itself and reproduced unchanged. It is not Prepublish's writing, not a summary, and not a re-transcription: it is the video's own published captions. English captions, published by the channel, in the video’s original language. Source: the video on YouTube. A channel that would rather this page did not exist can ask for its removal through the contact page, and it is removed.
In this video, you will know what Graph Engineering is and how to build one and when you should use it. Hey, I'm Annie. So in the last video we discussed why Loop Engineering failed and why you should consider Graph Engineering. And today let's define Graph Engineering with code that actually runs. So first what is Graph Engineering? You can think of it as you're creating a graph workflow for your system. And inside the graph you can have agents or other deterministic function as node.
And let's build one together with Google Agent Development Kit 2.0 to help you better understand it. So we will use this one example. Race day. A runner is about to run a marathon and they want an agent that answers one question how should I run this race? And what are you looking at right now is attempt number one, one agent, one giant prompt. It promises everything. It fetches the weather, analyse the course, it checked my fitness, built my race strategy.
It has this all the workflow inside the prompt. So watch what happens if I run it. Look at the answer and is so confident. It is very specific. But it has one problem. It has no weather API, it has no course data. So every one of those numbers is invented. Is hallucinating. So this is a disease. When every step leaves inside one model call, nothing can be fetched, nothing can be tested, and nothing can be trusted. So the fix is not a better prompt.
The fix is structure. And here is where Graph Engineering fits. So first we learn Prompt Engineering what to say to the model. Then Context Engineering, what to put around the model. Then Loop Engineering letting agent plan, act, check in a cycle. So Graph Engineering is a next layer. Many pieces of work wired together. The pieces are nodes, the wiring is edge. So let's solve this some problem using Graph Engineering mindset.
First, let's build the smallest possible graph to solve it. You know we want to first fetch race day condition and then come up with a strategy. So we have two nodes. Node one is a plain Python function. It fetches race day conditions, no model, no cost. And node two is an agent, it reads those conditions and writes advice. And this is a part that surprise people. You know the function and agent there appears same list, same wiring.
So if you look at the edges start to fetch to advise. That's the entire orchestration. And now let's run it. The function fetched zero LLM cost. The agent reason one LLM call. Real data in, real advice out. And here is one principle and you probably already have it. Predictable work goes in functions and reasoning goes in the model. And now let’s iterate to the next shape. So here we have three concepts. Fan out, Join, and Router.
So my risk strategy needs three inputs. Weather, Course and Fitness. They don't depend on each other. So why don't we run them together in parallel? So let's draw three edges out of start. First we have this fan out pattern. These are parallel processes. We have all three fetches leave at once and process them at the same time. You know in ADK 2.0 you can also create dynamic fan out. If you have parallel process, but you don't know how many of them will run at the same time.
And we can create the shape in runtime with dynamic workflow and that is what we call dynamic fan out. And now let's get back to our marathon example. Once we get all the input and then they meet at the join node. This is a second concept. It's like a synthesizer in a gigantic system. So it waits for all three branches, waits for the slowest process. And bundles the outputs into one dictionary keyed by node name. And here you never need to write a merger.
You never wrote an aggregator agent. A join node can just work in the graph. And now the last concept, Router Pattern. It is also the shape everyone gets wrong easily. You know, in this situation we have Hot day, Cold day, Normal day. Three strategies. You have three specialist agents and we need to pick one. So how we define this router here to pick one strategy? You have option one LLM router. They can ask the model to classify.
It works but it cost tokens. And it can misread because AI is non-deterministic. Option two, Deterministic router. We can put a deterministic router node with fixed views and conditions in the graph. You know we make hot points to hot strategy, normal to normal strategy, and cold to cold strategy. So how do we pick one? So for example if you have a free tax request if user types anything they want and there is no signal for an if statement to read.
And that is an open set and that LLM router is the best tool. The if statement deterministic router means when the set is closed and the signal is in the data. And in our race example, we use a deterministic router because it's more reliable and it also cost less. Okay, now we cover three concepts in this graph workflow Fan out, Join and Router. So let's count the cost. We have three parallel fetches, one join and one strategist.
Still exactly one LLM call, because only one strategist agent node required LLM call. Other nodes are all the terms of logic that don't require any LLM call. And now we see this example of Graph Workflow. But sometimes you don't need a graph at all. So here are some questions to help you figure out whether to use graph or not. So first question is can you draw the workflow before the input arrives? If yes, draw it and use graph workflow.
Second, what if the shape itself depends on the input? For example, the deep research scenario. You do not know how exact the graph looks like. You can create a dynamic workflow with ADK 2.0 and your code will decide the graph shape and runtime. All right that's it for today's Graph Workflow, Graph Engineering. And let me know how you create your own workflow. And don't forget to share your experience in the comments.
Thank you so much for watching the video and I will see you in a future one. Bye.
The words are the caption track's own and nothing is reworded or re-transcribed. Paragraph breaks are placed between sentences so the text reads as prose.
Free tools for your own script. No signup, no login.
Paste your draft and see where viewers are likely to drop off, with a rewrite for each weak line.
Paste the first 30 seconds of your own draft for a hook score and rewrites.
Check your draft against YouTube's advertiser-friendly guidelines before you record it.
Read this channel's public videos and transcripts, and download a writing brief for it.