TRANSCRIPTEnglish

AWS Certified Generative AI Developer - Professional:Bedrock Prompt Flows

4m 42s661 words113 segmentsEnglish

FULL TRANSCRIPT

0:00

Imagine you run a factory, not a wizard

0:02

tower. Raw materials come in all day

0:04

long. Some are clean, some are messy,

0:08

some are dangerous. You do not let raw

0:10

materials go straight to customers. You

0:12

build an assembly line. That assembly

0:14

line is a prompt flow. At the very start

0:17

of the factory, there's worker one.

0:19

Worker one does only one job. They

0:22

clean. They take whatever the user

0:23

sends, slang, emojis, broken sentences,

0:26

mixed languages, and they normalize it.

0:28

They don't answer anything. They don't

0:29

think, they just clean and standardize.

0:32

This is pre-processing. If the input is

0:35

unsafe, worker one raises a red flag and

0:37

sends it down a different hallway. That

0:39

hallway is conditional branching. Safe

0:42

input goes forward. Unsafe input gets

0:45

routed to a safety response. No debate,

0:47

no guessing. Next, the clean material

0:50

reaches worker two. Worker two is the

0:52

builder. This worker actually answers

0:55

the question. But here's the key. Worker

0:57

2 always follows the same rulebook. The

0:59

rules are fixed, the policies are fixed,

1:01

the tone is fixed. Only one thing

1:04

changes each time, the cleaned user

1:06

input. That's the static plus one

1:08

pattern. Static rules plus one dynamic

1:11

input. This keeps the system safe,

1:13

predictable, and auditable. Worker 2

1:15

never improvises beyond the rules.

1:18

Then the product reaches worker three.

1:21

Worker 3 is the inspector. They don't

1:23

care how clever the answer sounds. They

1:25

check structure. Is it valid JSON? Does

1:27

it contain all required fields? Does it

1:29

follow the approved format? If the

1:31

answer fails inspection, it never leaves

1:33

the factory. This is post-processing. No

1:36

schema rejected. Wrong format rejected.

1:39

Unsafe content rejected. Only approved

1:42

output ships. Now, zoom out. This entire

1:45

factory line is a prompt flow. Each

1:47

worker is a small reusable prompt. You

1:50

don't build one giant worker who does

1:52

everything. You build small workers with

1:54

clear responsibilities. Cleaner,

1:56

builder, inspector, and sometimes a

1:59

guard at the door who decides which path

2:00

to take. Why does AWS love this? Because

2:03

it's not magic. It's controlled. It's

2:06

testable. It's governable. It's

2:08

auditable. If something breaks, you know

2:10

which step failed. If something is

2:12

unsafe, it gets caught before shipping.

2:14

If rules change, you update one worker,

2:17

not the whole factory. Here's the rule

2:19

your brain should autoplay in the exam.

2:21

One big prompt is chaos. Many small

2:23

prompts is control. Messy input clean

2:26

first. Different cases branch. Untrusted

2:29

output validate. Fixed rules plus one

2:32

dynamic input. That's prompt flows, not

2:34

wizardry. Engineering.

2:36

Great. Let's do a real concrete

2:38

end-to-end prompt flow exactly how it

2:40

would exist in a production bedrock app.

2:42

No theory, no fluff, just what runs.

2:45

I'll show you. One, the flow. Two, the

2:47

actual prompts. Three, the inputs

2:49

outputs at each step. for why the exam

2:52

loves this pattern. Real prompt flow

2:54

example use case customer support AI

2:56

safe predictable auditable goal

2:58

normalize user input answer validate

3:00

output schema

3:02

hashed architecture mental picture this

3:05

could be orchestrated by bedrock prompt

3:07

flow or lambda step functions exam

3:10

accepts both step one normalize input

3:14

pre-processing user input messy

3:18

prompt one normalizer prompt template

3:20

history input variable

3:22

Output of step one. Why AWS loves this?

3:26

Clean input. No hallucination. No

3:29

business logic yet. Step two. Now we use

3:33

static plus one. Prompt two. Answer

3:36

generator. Static instructions.

3:39

Dynamic input + one.

3:42

Output of step two. Still not final.

3:45

This output is untrusted. Step three.

3:48

Validate output schema post-processing.

3:50

Now we make the output machine safe.

3:53

Prompt three validator prompt input

3:57

output of step three. Now it is

4:00

structured, predictable, safe to

4:02

integrate, logable.

4:04

Conditional branching real example.

4:07

Let's say step one detects abuse output

4:10

of step one. Alternate path

4:13

decision logic

4:16

safety prompt result. This is

4:18

conditional branching. Why the exam

4:21

loves this flow? This single flow

4:23

demonstrates pre-processing, static plus

4:25

one, sequential prompts, conditional

4:27

branching, post-processing, governance

4:30

and safety. If an exam question says

4:33

reduce hallucinations, improve safety,

4:35

and ensure structured output, this is

4:38

the correct mental model.

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.