Have an app you've always wanted to build? A humdrum task to automate? AI tools make it easier than ever, but they can be as error-prone as they are miraculous. Here's how to do it right.