Workflow design, modularization, and troubleshooting