Chat Completion - Adapt Flow (AWS Bedrock) 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 roll back or roll forward a process to a different activity.

Background and Setup
Examples
- (External) AgilePoint NX Connector For AWS Bedrock
- 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 Private Cloud, 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.
For more information, refer to Data screen.
- 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 AWS Bedrock tab.

- On the AWS Bedrock tab, click the Control Towers tab.

- On the AWS Bedrock > Control Towers tab,
drag the Chat Completion - Adapt Flow
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 - Adapt Flow Configuration > Amazon Web Services > Model Properties tab
Configures the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Amazon Web Services |
|
|
Create |
|
|
Model |
|
Use Model Configured In Access Token |
|
|
Maximum Output Token Length |
|
|
Stop Sequences |
|
|
Temperature |
|
|
Nucleus Sampling (top_p) |
|
|
Add Model |
|
Clone |
|
|
Edit |
|
|
Delete |
|
Chat Completion - Adapt Flow Configuration > Amazon Web Services > System Instruction tab
Configures the system instruction that is used to guide the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Amazon Web Services |
|
|
Create |
|
Set System Instruction |
|
Chat Completion - Adapt Flow 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 - Adapt Flow 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 - Adapt Flow Configuration > System Instruction > Input tab
Specifies the input content the LLM used to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Input |
|
Chat Completion - Adapt Flow 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 - Adapt Flow 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 - Adapt Flow Configuration > System Instruction > Output tab
Specifies the output format the LLM used to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Output |
|
Chat Completion - Adapt Flow 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 - Adapt Flow Configuration > Triggering Event > Set Trigger Condition screen
Configures an activity on which to run the LLM to generate text output.

Fields
| Field Name | Definition |
|---|---|
|
Rule Type |
|
Rule Name | |
|
Edit |
|
|
Delete |
|
Chat Completion - Adapt Flow 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 - Adapt Flow 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 - Adapt Flow Configuration > Response tab
Specifies where to store the response from the LLM.

Fields
| Field Name | Definition |
|---|---|
|
Map AWS Bedrock 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 - Adapt Flow 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 Configuration - Adapt Flow > 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 - Adapt Flow Configuration > Parsing > Inline Functions screen
Configures one or more inline functions for parsing the generated text output.

Fields
| Field Name | Definition |
|---|---|
Formula |
|
Inline Functions |
|
|
Description |
|
Skip Inline Function If Exception Occurs |
|
|
Apply |
|
Chat Completion - Adapt Flow 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 - Adapt Flow Configuration > Actions tab
Specifies variables to store the status of the LLM and to store the error message if an error occurs in the LLM. It also configures what to do when an error occurs in the AgilePoint NX app.
You can set conditions to change the flow of a process.

Fields
| Field Name | Definition |
|---|---|
Set Action Trigger Condition |
|
|
Save Status In This Variable (Boolean) | |
Suspend Process Instance If Exception Occurs |
|
Enable Debug |
|
Chat Completion - Adapt Flow Configuration > Actions > Set Action Trigger Condition screen
Specifies the conditions to roll back or roll forward a process to a different activity.

Fields
| Field Name | Definition |
|---|---|
|
Rule Type |
|
Rule Name | |
|
Edit |
|
|
Delete |
|
Chat Completion - Adapt Flow Configuration > Actions > 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 |
|


