This function is quite complex to actually execute. You must define and pass the entire workflow template in the function to have it execute successfully.
We are working on ways to make this more simple.

Language
Click Try It! to start a request and see the response here!