Initiate Subprocess (n8n) Control Tower

An AI Control Tower that generates output data from an n8n workflow. Based on the generated output, it can start a subprocess.


Initiate Subprocess Control Tower

Background and Setup

Examples

Prerequisites

Good to Know

How to Start

  1. Open Process Builder.

    For information about how to open this screen, refer to Process Builder.


    Open Process Builder
  2. In Process Builder, in the Activity Library, open the n8n tab.

    Open n8n tab
  3. On the n8n tab, click the Control Towers tab.

    Open n8n Control Towers tab
  4. On the n8n > Control Towers tab, drag the Initiate Subprocess activity onto your process.

    Drag Initiate Subprocess activity

General Configuration

Specifies the basic settings for the Control Tower.

Figure 1. General Configuration screen

General Configuration screen

Good to Know

  • Documentation for this screen is provided for completeness. The fields are mostly self-explanatory.

Fields

Field NameDefinition

Display Name

Description:
Specifies the activity name that shows in your process.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Description:
Specifies an optional text description for your activity.
Allowed Values:
More than one line of text.
Default Value:
None
Accepts Variables:
No

Initiate Subprocess Configuration > n8n tab

Configures the access token to generate output from an n8n workflow.

Figure 2. Initiate Subprocess Configuration > n8n tab

Initiate Subprocess Configuration n8n tab

Fields

Field NameDefinition

n8n

Description:
Specifies the access token that connects to n8n.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None

Create Add Token icon

Opens this Screen:
Access Token for n8n.
Function of this Screen:
Configure an access token to connect to n8n.

Add Model Add Token icon

Function:
Creates a model with a name you specify.

In this activity, you can create more than one model to configure an LLM to give predictions for an app. Each configuration is stored as a model with a name specified in this field.

Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Clone Clone Icon

Function:
Creates a new model that is a copy of the selected model.

Edit Edit icon

Function:
Changes the model name.

Delete Delete icon

Function:
Deletes the selected model.

Initiate Subprocess Configuration > Triggering Event tab

Configures an activity on which to run the n8n workflow to generate output.

Figure 3. Initiate Subprocess Configuration > Triggering Event tab

Initiate Subprocess Configuration Triggering Event tab

Fields

Field NameDefinition

Activity

Description:
Specifies an activity on which to run the n8n workflow.
Allowed Values:
An activity from the list.
Default Value:
None
Accepts Variables:
No
Example:
Refer to:

On Event

Description:
Specifies the status for an activity instance where the change occurs.
Allowed Values:
  • Assign Work Item - The n8n workflow runs when the specified task is ready to be Assigned to a participant.
  • Complete Work Item - The n8n workflow runs when a task is Completed.
  • Cancel Work Item - The n8n workflow runs when a task is Cancelled.
  • Enter Activity Instance - The n8n workflow runs when the activity instance starts.
  • Leave Activity Instance - The n8n workflow runs when the activity instance ends.
  • Reassign Work Item - The n8n workflow runs when a task is Reassigned.
  • Work Item Assigned - The n8n workflow runs after the specified task is Assigned to a participant.
  • Work Item Overdue - The n8n workflow runs when a task is Overdue.
Default Value:
None
Example:
Refer to:

Set Trigger Condition

Opens this Screen:
Initiate Subprocess Configuration > Triggering Event tab > Set Trigger Condition
Function of this Screen:
Specifies the conditions that cause the n8n workflow to run.

Initiate Subprocess Configuration > Triggering Event tab > Set Trigger Condition

Specifies the conditions that cause the n8n workflow to run.

Figure 4. Initiate Subprocess Configuration > Triggering Event tab > Set Trigger Condition screen

Initiate Subprocess Configuration Triggering Event tab Set Trigger Condition screen

Fields

Field NameDefinition

Rule Type

Description:
Specifies a rule to execute.
Allowed Values:
  • IF - Specifies a rule to execute if a specified condition is true.
  • ELSE IF - Specifies a rule to execute if the previous condition is false.

    To open this field, click Add New Rule Add New Rule icon.

  • ELSE - The rule executes if the all the specified conditions are false.
Default Value:
  1. IF
  2. ELSE

Rule Name

Description:
Specifies a name for a rule in your condition.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
Rule Name 1

Edit Edit icon

Opens this Screen:
Initiate Subprocess Configuration > Triggering Event > Condition Builder screen
Function of this Screen:
Creates or changes logical rules. You can put one statement inside another statement to create complex logical expressions.

Delete Delete icon

Function:
Deletes the selected row.

Initiate Subprocess Configuration > Triggering Event > Condition Builder screen

Creates or changes logical rules. You can put one statement inside another statement to create complex logical expressions.

Figure 5. Initiate Subprocess Configuration > Triggering Event > Condition Builder screen

Initiate Subprocess Configuration Triggering Event Condition Builder screen

Fields

Field NameDefinition

Condition Name

Description:
Shows the name for your rule.
Allowed Values:
Read only.
Default Value:
Rule Name 1

Preview Preview icon

Function:
Shows the preview of your rule.

Validate Validate icon

Function:
Makes sure the rule is correct.

Rule Variable

Description:
Specifies the value to analyze.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:

Operator

Description:
Lets you select the operators for a logical expression.
Allowed Values:
Data TypeExpression Operators

String

, ==, Starts with, Ends with, Contains, Does Not Contains, !=, Does Not Contain Data, Contains Data

Bool

==

Date Time

, ==, >, >= , <, <=, !=

Number

, ==, >, >=, <, <=, !=

Default Value:
None
Example:
Refer to:

Rule Value

Description:
The value for the data variable.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:

Add Row Add Row icon

Function:
Creates a condition row.

Select Nest Type

Function:
Specifies the use of logical AND and OR operators to nest conditions to use for predictions.

You must set the condition first, before you specify the nest type.

Allowed Values:
  • And - Specifies the logical AND operator.
  • Or - Specifies the logical OR operator.
Default Value:
AND

Indent Right Indent Right icon

Function:
Creates the statement that is a condition of a parent statement.

Delete Delete icon

Function:
Deletes the selected row.

Back Back icon

Function:
Saves the rule and goes back to the Create Condition screen.

Initiate Subprocess Configuration > Request tab

Specifies how to connect the request data from n8n to the AgilePoint process schema.

Figure 6. Initiate Subprocess Configuration > Request tab

Initiate Subprocess Configuration Request tab

Fields

Field NameDefinition

Request Payload

Description:
Specifies a payload to use to connect to the AgilePoint process schema.

The payload must be in JSON format.

Allowed Values:
Click the Map Schema button to open the Schema Mapper.

Use this screen to connect the payload values to the AgilePoint process schema.

Default Value:
None
Example:
Refer to:

Initiate Subprocess Configuration > Response tab

Specifies where to store the response from the n8n workflow.

Figure 7. Initiate Subprocess Configuration > Response tab

Initiate Subprocess Configuration Response tab

Fields

Field NameDefinition

Response Payload / Store Response In This Variable

Description:
Specifies where to store the response from n8n.
Allowed Values:
  • Response Payload – Specifies a payload to use to map the response to the AgilePoint process schema.

    The payload must be in JSON format.

    Click Map Response to open the Schema Mapper.

    Use this screen to connect the response to the data model for your process.

  • Store Response In This Variable – Select this option if you want to store the information from n8n to a variable in the AgilePoint NX app.

    In the text field, specify a variable that accepts an alphanumeric string in JSON format.

Default Value:
Response Payload
Accepts Variables:
Yes
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Initiate Subprocess Configuration > Actions tab

Specifies a subprocess to start when the specified conditions occur in the generated output.

Figure 8. Initiate Subprocess Configuration > Actions tab

Initiate Subprocess Configuration Additional Actions tab

Fields

Field NameDefinition

Subprocess

Description:
Specifies a subprocess to start when the specified conditions occur in the generated output.

This field shows the list of subprocesses in AgilePoint NX.

Allowed Values:
A subprocess from the list.
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Ellipses Ellipses icon

Opens this Screen:
Initiate Subprocess Configuration > Actions tab > Mapping Variables
To Open this Field:
  1. In the Subprocess field, select a subprocess.
Function of this Screen:
Specifies how to map variables in a subprocess.

Start Subprocess

Description:
Specifies how frequently the subprocess runs based on the generated output.

An event for a specified activity is configured on the Triggered Events tab. Each time this event occurs, the AI model creates an output. When the prediction meets the configured criteria, the AI Control Tower can be configured to trigger a subprocess. If the activity associated with the subprocess-triggering event runs in a process loop (the activity executes more than one time during a process instance) this field determines whether to run the subprocess only the first time the event on the Triggered Events tab occurs (the first session), or to run it every time the event occurs (every session).

Allowed Values:
  • Only On First Session - Starts the subprocess only the first time the triggering conditions occur.
  • For All Sessions - Starts the subprocess every time the triggering conditions occur.
Default Value:
Only On First Session
Example:
Refer to:
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Set Action Trigger Condition

Opens this Screen:
Initiate Subprocess Configuration > Actions tab > Set Action Trigger Condition
Function of this Screen:
Specifies the conditions to start a subprocess in AgilePoint NX.

Save Status In This Variable (Boolean)

Description:
Specifies a variable to store the status of the generated output as a Boolean value.

The value is true if the prediction has no errors.

Allowed Values:
A variable.

Format:

  • Boolean

Response Values

  • true
  • false
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Save Error Message In This Variable (String)

Description:
Specifies a variable to store the error message for the generated output.
Allowed Values:
A variable.

Format:

  • String

Accepted:

  • Letters
  • Numbers
  • Spaces
  • Special characters
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Suspend Process Instance If Exception Occurs

Description:
Specifies whether to move the process forward when an error occurs in the AgilePoint NX app.
Allowed Values:
  • Selected - Pauses the process when an error occurs, and shows an error in the log.
  • Deselected - Shows an error in the log when an error occurs, but does not pause the process.
Default Value:
Selected
Example:
Refer to:

Enable Debug

Description:
Specifies whether to store the debugging information for the AI Control Tower activity in the debug log folder on the AgilePoint Server machine.
Allowed Values:
Default Value:
Selected
Example:
Refer to:

Initiate Subprocess Configuration > Actions > Mapping Variables screen

Specifies how to map variables in a subprocess.

Figure 9. Initiate Subprocess Configuration > Actions > Mapping Variables screen

Initiate Subprocess Configuration Actions tab Mapping Variables screen

Fields

Field NameDefinition

Share All Variables (Basic) / Copy All Variables (Advanced) / Map Specific Variables (Advanced)

Description:
Specifies whether the parent process shares or copies all the process data variables or only the selected variables with the subprocess.
Allowed Values:
  • Share All Variables (Basic) - Shares all the process data variables from parent process to subprocess.
  • Copy All Variables (Advanced) - Copies all the process data variables from parent process to subprocess.
  • Map Specific Variables (Advanced) - Shares selected process data variables from parent process to subprocess.

    Click the Configure Configure icon button to open the Initiate Subprocess Configuration > Actions tab > Initial Attributes screen.

Default Value:
Share All Variables (Basic)
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Initiate Subprocess Configuration > Actions > Initial Attributes screen

Specifies a set of process variables to pass to a subprocess. You can share the parent process's variables with the subprocess if the subprocess uses the same data.

The subprocess can have its own data only within the subprocess, or it can share its data with the parent process. For example, a subprocess can access the data of the parent process, such as the reviewer name and review completion date.

Figure 10. Initiate Subprocess Configuration > Actions > Initial Attributes screen

Chat Completion Initiate Subprocess Configuration Actions tab Initial Attributes screen

Fields

Field NameDefinition

Attribute

Description:
A variable to connect with the subprocess.
Allowed Values:
A variable.
Default Value:
None

Value

Description:
The value in the subprocess to associate with the variable in the parent process.
Allowed Values:
A variable in the subprocess.
Default Value:
None
Accepts Variables:
Yes

Add Add icon

Function:
Adds a row.

Delete Delete icon

Function:
Deletes the row.

Initiate Subprocess Configuration > Additional Actions tab > Set Action Trigger Condition

Specifies the conditions to start a subprocess in AgilePoint NX.

Figure 11. Initiate Subprocess Configuration > Additional Actions tab > Set Action Trigger Condition screen

Initiate Subprocess Configuration Additional Actions tab Set Action Trigger Condition screen

Fields

Field NameDefinition

Rule Type

Description:
Specifies a rule to execute.
Allowed Values:
  • IF - Specifies a rule to execute if a specified condition is true.
  • ELSE IF - Specifies a rule to execute if the previous condition is false.

    To open this field, click Add New Rule Add New Rule icon.

  • ELSE - The rule executes if the all the specified conditions are false.
Default Value:
  1. IF
  2. ELSE

Rule Name

Description:
Specifies a name for a rule in your condition.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
Rule Name 1

Edit Edit icon

Opens this Screen:
Initiate Subprocess Configuration > Actions tab > Condition Builder screen
Function of this Screen:
Creates or changes logical rules. You can put one statement inside another statement to create complex logical expressions.

Delete Delete icon

Function:
Deletes the selected row.

Initiate Subprocess Configuration > Additional Actions tab > Condition Builder screen

Creates or changes logical rules. You can put one statement inside another statement to create complex logical expressions.

Figure 12. Initiate Subprocess Configuration > Additional Actions tab > Condition Builder screen

Initiate Subprocess Configuration Additional Actions tab Condition Builder screen

Fields

Field NameDefinition

Condition Name

Description:
Shows the name for your rule.
Allowed Values:
Read only.
Default Value:
Rule Name 1

Preview Preview icon

Function:
Shows the preview of your rule.

Validate Validate icon

Function:
Makes sure the rule is correct.

Rule Variable

Description:
Specifies the value to analyze.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:

Operator

Description:
Lets you select the operators for a logical expression.
Allowed Values:
Data TypeExpression Operators

String

, ==, Starts with, Ends with, Contains, Does Not Contains, !=, Does Not Contain Data, Contains Data

Bool

==

Date Time

, ==, >, >= , <, <=, !=

Number

, ==, >, >=, <, <=, !=

Default Value:
None
Example:
Refer to:

Rule Value

Description:
The value for the data variable.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
Yes
Example:
Refer to:

Add Row Add Row icon

Function:
Creates a condition row.

Select Nest Type

Function:
Specifies the use of logical AND and OR operators to nest conditions to use for predictions.

You must set the condition first, before you specify the nest type.

Allowed Values:
  • And - Specifies the logical AND operator.
  • Or - Specifies the logical OR operator.
Default Value:
AND

Indent Right Indent Right icon

Function:
Creates the statement that is a condition of a parent statement.

Delete Delete icon

Function:
Deletes the selected row.

Back Back icon

Function:
Saves the rule and goes back to the Create Condition screen.