Your way is much simpler. I was building an AI to handle all my emails but it turned out to be a lot harder than I had originally envisioned.
I'm trying to use the model of the unix command line -- each script is useful and simple on its own, but in combination they become incredibly powerful.