Skip to main content

1. Create your first flow

Get started by dropping a Request node onto the canvas. This node allows you to send a HTTP Request.

2. Lets iterate

Its very common that you need to iterate or loop through the results of an array when dealing with APIs.
  1. Drag the Transform node onto the canvas and connect it to the Request node
  2. The Transform node can operate in a few different modes. For this example, we will use the iterate mode.
  3. Paste the variable {{1_Request.body}} into the Array path setting. This tells Zygo that we want to iterate over the body of the Request.
  4. Go ahead and hover over the Request node and hit the play button
  5. You will now see X number of events that are emitted from the Transform node. Lets move onto a conditional node!

3. Learning conditionals

So far we have sent a GET request using the Request node and iterated over the results with the Transform (iterate mode) node. Now we want to check each object in the array for specific values so we handle the data differently. The Condition node (if / else) allows us to create one or many rules in order to “route” the flow one way or another.
  1. Drag the Condition node onto the canvas and attach it to the Transform node.
  2. Click on the indicator in the top right of the Transform node to pull up the events panel.
  3. We are going to check if any object in the array has more than 8000 employees. So we want to copy the reference to {{item.employeeCount}}
  4. Paste {{item.employeeCount}} into the first rule, specify greater than and then insert 8000.
  5. Now we are going to use two more nodes and connect them to the Condition node so we can easily see which path if followed.
    1. Drag a Transform node onto the canvas and connect it to the Condition node
    2. Drag another Transform node onto the canvas. But now hover over the Condition node, click the Set Failure Path button and then connect it. The failure path will be followed if the rule does not match
  6. Go ahead and hover over the Request node and hit the play button
    1. You will notice that some objects with flow towards one end node and other events will follow the failure path

4. Next steps

Now that you have completed the Quickstart, you can start to explore the other core nodes such as Webhooks, Web forms, Python, Table and Ticket. You can also view and create your own third party integrations.

5. Dashboard

I recommend checking out the `Table` node which allows you to save data to a table within your flows. You can then create a dashboard to visualize the data!