Maximum of 500 Circuits can be created per organization.
A Circuit can contain 1 to 50 states.
Each circuit has a unique circuit ID, used in SDKs, APIs, and when nesting or batching circuits.
Circuits are configured using either Builder View (visual) or Code View (JSON). Changes in one view automatically reflect in the other.
Login to Qntrl.
Navigate to Circuits in the left panel.
Click the New Circuit button at the top-left corner.
Pre-built templates help you launch automation flows quickly with minimal setup.
Click Explore under the Choose from template option.
Browse the list of available templates under Circuit Templates.
Use the left pane to filter templates by category, if needed.
Select a template that suits your requirement and preview its components.
Click Use this Template button at the top right corner to install.
Click Create under the Start from scratch option.
Specify a unique Name and add a Description for the Circuit.
Click Save.
You can configure the Circuit in two different ways.
Builder View
Code View
In Builder View, you can construct your circuit with readily available states in the left pane. States are the building blocks of a circuit that can perform tasks, make decisions, or simply pass the output from one state to another.
Circuit states are categorized as follows:
Flow Controls
States
To explore more about the States in the Circuit, check out States of Circuit.
Constructing a circuit in Builder View involves two steps:
Add a State
Define a State
Step 1: Add a State in Builder View
Drag and drop them from the left pane onto the visual workflow. This action prompts a pop-up window to appear.
Enter a unique name for the state.
Select the Previous State and Next State between which the new state needs to be added. When you create the first state, the previous state and next state will be 'Start' and 'End' by default.
Click Create. The state will be displayed in the flow diagram.
Click Save.
Constructing a circuit in code view involves the following steps:
States are made up of attributes. Enter a state name. Define the attributes for the state as key-value pairs.
Define the below common fields of the state
name: All states must have a unique name to identify them within the Circuit. In the above displayed circuit, 'Create User' is the name of the circuit.
type: The actual functionality of the state is referred to by its type.
next: The name of the next state to run after the completion of the current state. In the above Circuit, 'End' is the next state for Create User.
Define the unique fields of the states. Refer to the States of the Circuit to explore the fields for each state.
Provide error handling options using the onError attribute for state types Function, Webhook, and Circuit.
Provide the Bridge ID and configuration details for Bridge controls.
Specify the inputPath, outputPath, and resultPath for Input and Output processing.
Click Save.
Whenever you configure a Circuit, whether defining Parameters, Input Path, Result Selector, or Output Path, you can supply values in any of the following ways:
A fixed value provided directly in the configuration field.
Example:
"api_url": "https://swerio.com/employee/update"
Use static values for constants such as URLs, string literals, flags, or tokens.
Retrieve centrally managed configuration values stored in Qntrl’s Config Store using variable references.
Example:
"base_url": "${<config_linkname>}"
Refer to Config Store to learn how to create and use these variables.
Extract values directly from the state input using JSONPath.
Example Input JSON:
{"employee_details": {"emp_name": "John Doe","emp_id": "357"}}
Parameter usage:
"name": "$.employee_details.emp_name","ID": "$.employee_details.emp_id"
Retrieve dynamic execution metadata such as circuit ID, execution ID, timestamps, origin, or requestor details.
Example
"execution_id": "$$.execution.id","requested_by": "$$.requestor.email"
These values reflect live execution context and allow building highly dynamic automations.
Refer to Context Object for full structure.
Generate randomized test values during execution, useful for test runs, demos, or simulating data.
Faker method names must be in lower underscore case.
"phone_number": "${#random.phone_number.cell_phone}","city_name": "${#random.address.city}"
Refer to the Faker Methods guide for the complete list of supported generators.
You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.