Prompt examples

You interact with the Decision Assistant by using natural language prompts to build, test, and manage decision services.
Important: The following sections provide examples of prompts that you can use with the multi-turn assistant. Responses can vary depending on your environment and context, and the examples are not exhaustive.

Building decision services

Table 1. Building decision services sample prompts
Action Prompt example Results
Create a decision automation Create a decision automation named MyAutomation Creates an empty decision automation.
Create a decision service Create a decision service named MyDecisionService in MyAutomation Creates an empty decision service within the specified automation.
Browse sample decision services List the samples available for import

Returns a list of available sample decision services, including details such as descriptions and the number of decision services included in each sample. The list can also be exported as a CSV file.

Import a sample decision service Import the GettingStarted sample Imports the specified sample into the current automation.
Create a decision model Create a decision model in MyService Creates a decision model with a basic diagram.
Add a decision node to a diagram Add a decision node named Computation and link it to the Input data node Adds a decision node to the diagram and creates a dependency on the Input data node.
Create a data model in a new decision service Create a data model named CustomerInfo in a new decision service named MyNewService Creates a new decision service and a data model within it.
Create a composite type Create a composite type "Customer" with the following attributes:
  • "Name" of type string
  • "Age" of type integer
  • "Address" of type string
The assistant generates an implementation plan for review. After you accept the plan, the assistant creates the composite type.

Defining the decision logic

Action Prompt example Results
Creating a business rule Create a business rule in the Daily advice decision node The assistant prompts you to define the required logic and suggests options based on the decision node inputs and output type. Enter the condition and action in natural language to create the rule.
Creating a decision table Create a decision table in the Daily advice decision node Creates a decision table with condition and action columns and empty cells.
Adding a column to a decision table Add a "Subscription" definition column Adds a column to the decision table and creates the corresponding condition statement.

Validating decision artifacts

Action Prompt example Results
Validate a decision model to make sure that it contains no errors Check Daily advice for errors If no errors are found, the assistant confirms that the model is valid. If errors exist, the assistant lists them in the chat together with explanations and possible fixes.

Testing decision models

Action Prompt example Results
Create a test data set Create a test data set for the Daily advice decision model Creates a complete test data set with data items and values.
Update a test data set In the DailyAdviceSample test data set, change the rainForecast value to 15 Updates the rainForecast value to 15.
Run a test data set Run the DailyAdviceSample test data set Runs the decision model against a test data set and displays the test results in the chat.

Explaining decision services

Action Prompt example Results
Explain a decision service Explain the Getting started decision service Returns a detailed explanation of the decision service and its artifacts. The overview can also be downloaded as a CSV file.

Managing dependencies

Action Prompt example Results
Create a dependency Create a dependency between MyService and MyData Creates a dependency between the decision model and the data model. Data types that are defined in the data model can then be used in the decision model.
List dependencies List the dependencies of MyService Returns the current list of dependencies, which can also be downloaded as a CSV file.

Creating decision operations

Action Prompt example Results
Create a decision operation for a decision model Create a decision operation for Daily advice Creates a decision operation in the Decision operations tab.
List decision operations List decision operations available in MyService Returns the list of available decision operations for decision models. The list can also be downloaded as a CSV file.