Not every problem is solved with software, and not every task needs a human. Here is our framework for deciding when to automate and when to delegate.