This idea is genius, I love it! It inspired me to do exactly the same thing for my app. I built a small UI/server to interactively build routines via natural language by teaching ChatGPT about our APIs and automatically running the code coming out of ChatGPT. This is a small video of the result:
https://twitter.com/matthieubulte/status/1606057139645992960