Usually both. Build when the workflow is core to your advantage. Integrate when the problem is already solved.