๐Ÿค– Workflows in n8n

๐Ÿ“˜

This guide will get you oriented in n8n

If you run Faros CE locally, you can access the n8n UI at http://localhost:5678

n8n helps you to interconnect APIs to share and manipulate its data, bringing a rich automation layer on top of Faros CE. The building block in n8n is a node, that extracts and passes data to other nodes. A connected set of nodes is a workflow. Workflows get executed when triggered manually or via a trigger node.

Nodes

A Node is an entry point for retrieving data, a function to process data, or an exit for sending data. Data in nodes can be manipulated thanks to expressions.

You can interact with Faros CE by adding a GraphQL node to your workflow that points to http://hasura:8080 with a json query. You can connect then connect that node to other nodes from the catalog to achieve your automation goal.

Often, you will follow the GraphQL node with a Function node that will split the response into various n8n items. An example below if your query returns vcs_PullRequest.

const prs = items[0].json.data.vcs_PullRequest
return prs.map(pr => ({ json: pr }))

Workflows

When you connect nodes together, you create a workflow. There is a pre-canned workflow here that you can finish configuring and activate that.

Executions

You can track the executions of your workflow in the Execution menu. An execution can be manually triggered, or be triggered by a trigger node. Our pre-canned workflow starts with such a Trigger Node: the Cron Node.


Did this page help you?