TIP: How to Use Standard In (stdin) in Shell Scripts

So to understand.
The input from KM becomes stdin for the shell script. And with no file cat uses this instead.

In cases with shell scripts then I am a bit unsure where stdin "ends up" in the shell script.

This post from @peternlewis also sends input from KM.

But this is another shell script, so what happens with stdin in this case?