# Decision models
Decision models are scalable and reusable assets that streamline and centralize complex conditional business logic. They allow teams to improve consistency and reduce maintenance by building logic once and reusing it across multiple recipes and projects.
Each decision model includes the following components:
- An input schema that defines the expected input fields.
- An output schema that defines the values the model returns.
- A decision table that provides a single-page view of the business rules.
Refer to the following sections for more information:
- Decision tables
- Decision Models by Workato connector
- Role-based access control
- Create a decision model
- Edit a decision model
# Decision tables
Each row in a decision table defines a set of conditions and an output. When a recipe calls a decision model using the Decision Models by Workato connector, the model evaluates each row in the decision table sequentially, from top to bottom. If the input values meet every condition in the row, the evaluation stops and the model returns that row's Outcome values. You can configure a Default outcome to return for each output field if the input values don't match the conditions in any row.
Example decision table for routing marketing leads
# Limitations
Decision tables have the following limitations:
- Decision tables support a maximum 2,000 rows, 50 input columns, and 50 output columns per table.
- Each decision model supports a maximum of one decision table.
# Available operators
The operators available for a condition vary depending on the column's data type.
String
The following operators are available for the String
data type:
- Any
- Contains
- Does not contain
- Starts with
- Does not start with
- Ends with
- Does not end with
- Equals
- Does not equal
- Is not empty
- Is empty
Integer
The following operators are available for the Integer
data type:
- Any
- Equals
- Does not equal
- Greater than
- Greater than or equal to
- Less than
- Less than or equal to
- Is not empty
- Is empty
- Is between
- Is not between
Decimal
The following operators are available for the Decimal
data type:
- Any
- Equals
- Does not equal
- Greater than
- Greater than or equal to
- Less than
- Less than or equal to
- Is not empty
- Is empty
- Is between
- Is not between
Boolean
The following operators are available for the Boolean
data type:
- Any
- Is true
- Is false
Date
The following operators are available for the Date
data type:
- Any
- Equals
- Does not equal
- Is before
- Is after
- Is on or before
- Is on or after
- Is not empty
- Is empty
- Is between
- Is not between
Date time
The following operators are available for the Date time
data type:
- Any
- Equals
- Does not equal
- Is before
- Is after
- Is on or before
- Is on or after
- Is not empty
- Is empty
- Is between
- Is not between
# Decision Models by Workato connector
The Decision Models by Workato connector allows you to integrate decision models into your recipes.
# How to connect to Decision Models by Workato
No configuration is required to set up this connector.
# Make decision action
The Make decision action evaluates inputs using your selected decision model.
# Input
Input field | Description |
---|---|
Model name | Select the model to call. |
Input values | Provide values for the model's input fields. |
# Output
Output field | Description |
---|---|
Output | Contains the outcome values defined in the first row that met all conditions. |
Visited | Contains information about the decision process such as the Input provided by the recipe and the decision model's ID . |
# Role-based access control
You can configure the following decision model permissions using collaborator and project roles:
Full access
Grants all decision model permissions.
View
View decision models and decision tables.
Edit
Edit decision models and decision tables.
Create
Create decision models and decision tables.
Delete
Delete decision models and decision tables.
The following permissions are provided by Workato's default system roles:
# Create a decision model
Complete the following steps to create a decision model:
Create a new project or select an existing project.
Click Create.
Select Decision model.
Select Decision model
Enter a Decision model name.
Enter a Decision model name
Use the Location drop-down menu to select the project where you plan to store the decision model.
Click Start building. The decision model builder opens.
# Edit a decision model
You can access decision models from Assets > Decision models or from within a specific project.
Refer to the following guides to edit a decision model:
Create an input field
Complete the following steps to create an input field:
Select a decision model and click Edit model.
Click Edit model
Select the Input node you plan to configure.
Click + Add field if there are no existing fields. Otherwise, click + (Create field).
Create a new field
Enter a Field name and Field label that identifies the field.
New field configuration
Select the field's Data type.
Optional. Enter a Hint that explains the field.
Optional. Click the Set as required toggle to make the field mandatory.
Click Create field.
Click Save.
Create an output field
Complete the following steps to create an output field:
Select a decision model and click Edit model.
Click Edit model
Select the Output node you plan to configure.
Click + Add field if there are no existing fields. Otherwise, click + (Create field).
Create a new field
Enter a Field name and Field label that identifies the field.
New field configuration
Select the field's Data type.
Optional. Enter a Hint that explains the field.
Click Create field.
Click Save.
Remove a field
Complete the following steps to remove an input or output field:
Select a decision model and click Edit model.
Click Edit model
Select the node you plan to configure.
Hover over the field you plan to remove.
Click – (Remove field).
Click – (Remove field)
Click Delete in the confirmation modal.
Click Save.
Configure a Decision Table node
Complete the following steps to configure a Decision Table node:
Select a decision model and click Edit model.
Click Edit model
Select the Decision Table node you plan to configure.
Optional. Edit the automatically generated table Name.
Decision model node configuration
Optional. Enter a Description for the table.
Click Save to save your changes or click Configure table to open the decision table. The decision table must have at least one input and output field before you can open it.
Configure a decision table rule
Complete the following steps to configure a decision table rule:
Select a decision model and click Edit model.
Click Edit model
Select the Decision Table node you plan to configure.
Decision model node configuration
Click Configure table to open the decision table. The decision table must have at least one input and output field before you can open it.
Create a new rule using one of the following methods:
- Click +.
- Press
Shift
andEnter
. - Press
Ctrl
and click on a row's number, then click Insert rule above or Insert rule below.
Create a new rule
Optional. Enter a name for the rule in the Rule name column.
Complete the following steps to configure each cell in the Conditions section:
Select the cell you plan to configure.
Select an operator from the drop-down menu. Cells default to the any
operator, which matches any inputs provided.
Select an operator from the drop-down menu
Enter a value to compare against the input using the operator.
Enter an output value for each cell in the Outcomes section.
Optional. Enter a Default outcome to return for each output field if no rules match the inputs provided.
Enter a Default outcome for each output field
Last updated: 8/25/2025, 2:57:26 PM