Honestly I feel like I'm taking crazy pills these days.
Write a program! If it has a bug, debug it and update the program. Use an LLM to debug it if you must. If you're doing something repeatable, then use a traditional automation scheme.
If an LLM has to handle a subsection of the program, so be it. Just wrap that part with clean inputs and outputs.
Why does it feel like we've forgotten how to automate things?