How to Generate a Pipeline