Calculating prices and processing data using Yield Pipelines

How to use the various inputs in a Yield Pipeline to process the data, and output prices and other essential information

How to create a Yield Pipeline

To create a Yield Pipeline, click on Yield Pipelines in the menu, and + New. After which it will ask you for a title and unique identifier. Title, in most cases, can be the same as your Offering title.

Inputs to a Yield Pipeline

Inputs in a Yield Pipeline, in most cases, are the same as outputs in the Form Pipeline. You can create inputs by clicking on + Create Input, after which you give it the same name and data shape as the corresponding output in your Form Pipeline.

You don't necessarily have to have the same name, but it makes it easier once you link Form Pipeline together with Yield Pipeline.

Adding a Process Pipeline

To be able to calculate anything in a Yield pipeline, you need Process Pipelines. Process Pipelines are like small calculators that you configure depending on your needs. Here's a guide on how to make Process Pipelines for various uses.

You can import your Process Pipelines by clicking on Process Pipeline right of Quote Steps:

How to use a Process Pipeline in a Yield Pipeline

Constants, and data from Tables, can effectively be used here to calculate various things with the help of Process Pipelines and the given inputs.

Once done, it could look like this:

(Note that we here have a Process Pipeline named "Floor cost calculator")

Quote Outputs

Quote Outputs is what will be shown in the Sub-rows (e.g. the price breakdown) once you are ordering something, describing what you are buying and how much the item costs. You can also use Quote Outputs to show data in the Quote Info, more into detail what you are ordering. For example: where you live, engine name, car brand. Guide on how to make Quote Info here.

Example: Liquid volume calculation

Our hypothetical Form Pipeline in this case asks which liquid a customer want using a select, and ask depth and diameter of the container. This is what we send to our Yield Pipeline, which can be seen as inputs here.

Liquid price is taken from the corresponding table, more into detail how select can be used and Table Cells work in this article. We then use a Process Pipeline to convert "diameter", "depth" and "liquid-m3-price" into a total cost which we can use on the sub-rows in the offering.

 

Here's an example where we in our Form Pipeline ask for Width, Height, glass type and how many they want of the same glass. We send 'materialid' (Glass type) to Glass Sheet Materials Table Cells block, where we can get the square metre price of this specific glass. We then multiply Square metres with the cost of each metre of that specific glass, which gives us the price for one glass. We add a discount depending on Quantity. We do the last cost calculations in the sub-rows, article here on how to use sub-rows to calculate things.

Example: Tree cutting

Here's an example where we calculate the cost of cutting down trees depending on amount of trees, and distance to nearest road, with the help of a Process Pipeline. We can use the result in Sub-rows to display the price.