Chat Completion - Initiate Subprocess (OpenAI) Control Tower
An AI Control Tower that generates text output from data provided from an AgilePoint NX app to an LLM. If conditions configured in the AI model occur in the prediction, it can start a subprocess..

Background and Setup
Examples
- (External) AgilePoint Announces AI Control Tower Support for OpenAI
- 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.
Prerequisites
- AgilePoint NX OnDemand (public cloud), AgilePoint NX PrivateCloud, or AgilePoint NX OnPremises v10.0 or higher.
Good to Know
- To send an email notification, click
Advanced
>
Email Notifications
. For more information, refer to Email Notifications screen (Process Activities).
- In most text fields, you can use process data variables as an alternative to literal data values.
- You can configure whether this activity waits for other activities before it runs.
For more information, refer to How Do I Configure an Activity to Wait for Other Incoming Activities?
- This section shows the configuration settings on the configuration screens for this activity. Other configuration settings apply to system activities. For more information, refer to:
How to Start
- Open Process Builder.
For information about how to open this screen, refer to Process Builder.

- In Process Builder, in the Activity Library,
open the OpenAI tab.

- On the OpenAI tab, click the Control Towers tab.

- On the OpenAI > Control Towers tab,
drag the Chat Completion - Initiate Subprocess
activity onto your process.

General Configuration
Specifies the basic settings for the Control Tower.

Good to Know
- Documentation for this screen is provided for completeness. The fields are mostly self-explanatory.
Fields
| Field Name | Definition |
|---|---|
|
Display Name |
|
|
Description |
|
Chat Completion - Initiate Subprocess Configuration > OpenAI > Model Properties tab
Configures the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
OpenAI |
|
|
Create |
|
|
Model |
|
Use Model Configured In Access Token |
|
|
Frequency Penalty |
|
|
Presence Penalty |
|
|
Maximum Token Length |
|
|
Stop Sequences |
|
|
Temperature |
|
|
Nucleus Sampling (top_p) |
|
Chat Completion - Initiate Subprocess Configuration > OpenAI > System Instruction tab
Configures the system instruction that is used to guide the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
OpenAI |
|
|
Create |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Goals/Mission tab
Specifies the goals or rules for the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Goals / Mission |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Skills tab
Specifies the skills or roles for the LLM used to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Skills |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Input tab
Specifies the input content the LLM used to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Input |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Instruction tab
Specifies any guidance or information to refine the response of the model to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Instruction |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Quality Verification tab
Specifies any guidance or information to verify the accuracy of the generated text output.

Fields
| Field Name | Definition |
|---|---|
|
Quality Verification |
|
Chat Completion - Initiate Subprocess Configuration > System Instruction > Output tab
Specifies the output format the LLM used to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Output |
|
Chat Completion - Initiate Subprocess Configuration > Triggering Event tab
Configures an activity on which to run the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Activity |
|
On Event |
|
Set Trigger Condition |
|
Chat Completion - Initiate Subprocess Configuration > Triggering Event > Set Trigger Condition screen
Specifies the conditions that cause the LLM to run.

Fields
| Field Name | Definition |
|---|---|
|
Rule Type |
|
Rule Name | |
|
Edit |
|
|
Delete |
|
Chat Completion - 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.

Fields
| Field Name | Definition | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Condition Name |
| ||||||||||
|
Preview |
| ||||||||||
|
Validate |
| ||||||||||
|
Rule Variable |
| ||||||||||
|
Operator |
| ||||||||||
|
Rule Value |
| ||||||||||
|
Add Row |
| ||||||||||
Select Nest Type |
| ||||||||||
|
Indent Right |
| ||||||||||
|
Delete |
| ||||||||||
|
Back |
|
Chat Completion - Initiate Subprocess Configuration > Request tab
Specifies how to connect the request data from the LLM to the AgilePoint process schema.

Fields
| Field Name | Definition |
|---|---|
|
Message Content / Map JSON Request To App Schema |
|
Chat Completion - Initiate Subprocess Configuration > Response tab
Specifies where to store the response from the LLM.

Fields
| Field Name | Definition |
|---|---|
|
Map OpenAI Response To App Schema / Map JSON Response To App Schema |
|
|
Store Response JSON In This Variable |
|
|
Store Response Content In This Variable (String) |
Chat Completion - Initiate Subprocess Configuration > Parsing tab
Configures the parsing actions to extract the information from the generated text output.

Fields
| Field Name | Definition |
|---|---|
|
Add Row |
|
|
Action |
|
|
Input |
|
|
Results | |
|
Settings |
|
|
On Fail |
|
|
Delete |
|
|
Edit |
|
|
Edit |
|
|
Edit |
|
|
Save Parsing Status In This Variable (Boolean) |
|
|
Save Parsing Error Message In This Variable (String) |
Chat Completion - Initiate Subprocess Configuration > Parsing > JSON Parsing screen
Configures the JSON code snippet for parsing the generated text output.

Fields
| Field Name | Definition |
|---|---|
|
JSON Path |
|
|
JSON Input |
|
|
Store JSON Parsing Result In This Variable | |
Skip JSON Parsing If Exception Occurs |
|
Chat Completion - Initiate Subprocess Configuration > Parsing > Inline Function screen
Configures one or more inline functions to parse the chat completion result.

Fields
| Field Name | Definition |
|---|---|
Formula |
|
Inline Functions |
|
|
Description |
|
Skip Inline Function If Exception Occurs |
|
|
Apply |
|
Chat Completion - Initiate Subprocess Configuration > Parsing > Regex Parsing screen
Configures a regular expression for parsing the generated text output.

Fields
| Field Name | Definition |
|---|---|
|
Regex Syntax |
|
|
Perform Regex Match On This Text |
|
|
Store Regex Parsing Result In This Variable | |
Skip Regex Parsing If Exception Occurs |
|
Chat Completion - Initiate Subprocess Configuration > Actions tab
Specifies a subprocess to start when the specified conditions occur in the generated text output.

Fields
| Field Name | Definition |
|---|---|
|
Subprocess |
|
|
Ellipses |
|
|
Start Subprocess |
|
Set Action Trigger Condition |
|
|
Save Status In This Variable (Boolean) | |
|
Save Error Message In This Variable (String) | |
Suspend Process Instance If Exception Occurs |
|
Enable Debug |
|
Chat Completion - Initiate Subprocess Configuration > Additional Actions tab > Mapping Variables screen
Specifies how to map variables in a subprocess.

Fields
| Field Name | Definition |
|---|---|
|
Share All Variables (Basic) / Copy All Variables (Advanced) / Map Specific Variables (Advanced) |
|
Chat Completion - Initiate Subprocess Configuration > Additional Actions tab > 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.

Fields
| Field Name | Definition |
|---|---|
|
Attribute | |
|
Value |
|
|
Add |
|
|
Delete |
|
Chat Completion - Initiate Subprocess Configuration > Actions tab > Set Action Trigger Condition screen
Specifies the conditions to start a subprocess in AgilePoint NX.

Fields
| Field Name | Definition |
|---|---|
|
Rule Type |
|
Rule Name | |
|
Edit |
|
|
Delete |
|
Chat Completion - Initiate Subprocess Configuration > Actions tab > Condition Builder screen
Creates or changes logical rules. You can put one statement inside another statement to create complex logical expressions.

Fields
| Field Name | Definition | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Condition Name |
| ||||||||||
|
Preview |
| ||||||||||
|
Validate |
| ||||||||||
|
Rule Variable |
| ||||||||||
|
Operator |
| ||||||||||
|
Rule Value |
| ||||||||||
|
Add Row |
| ||||||||||
Select Nest Type |
| ||||||||||
|
Indent Right |
| ||||||||||
|
Delete |
| ||||||||||
|
Back |
|




