Here is the Python-centric version of this post/notebook: "Workflows with LLM functions (in Python)".
As promised earlier here is a "WL version" of this post.