URLinks Docs
GatewayChain
Set theme to dark (⇧+D)

Structure of a Chain

It is a top-down tree structure, or a control flow diagram, but function calls are handled remotely. Each node represents a workflow, or another chain.

You can chain up nodes with boolean operators, a CEL evaluation, or a small piece of javascript, and then pass the result to the next node. The result is you do not need to write an extra workflow handle the logic.

​​ Configure the Structure with Console

Console in dashboard provide a diagram editor that you can use to configure the structure. It UI to configure basic bool operations and also an javascript/typescript editor that for more custom logic.

​​ Configure the Structure With API

You can pass a Json object to the chain to configure the structure.


{
"name": "chain_name",
"root": {
"node_name": "message_handler",
"type": "workflow",
"workflow_id": "<WorkflowID>",
"children": [
{
"node_name": "chain_handler",
"type": "chain",
"chain_id": "<ChainID>",
"children": [
{
"node_name": "message_handler",
"type": "workflow",
"workflow_id": "<WorkflowID>"
}
]
}
]
}
}