This example shows how to add the steps for Task Agent, Approval, and AAP Job Execution. (There are additional steps available you can use depending on your use case.)
Procedure
Click Add step and select the Task Agent step, which will interact with a model and optional tools to fulfill a prompt.
In the Detail panel, configure the Parameters tab (middle section):
Select a model from the Model dropdown.
After you select a model, click Set up connection and select an LLM provider credential. If no credential exists, click Create new credential to create one inline.
Enter prompt instructions to describe what tasks the task agent should do when the workflow run hits this step.
For example: "Use these logs to analyze the server issue and then determine which job template should be run to remediate the problem."
In the Tools field, select which tools the task agent can access.
Check All tools to enable every discovered tool, check individual tools to select a subset, or leave all unchecked for text-only mode. Tools are discovered from enabled MCP server integrations.
Add an Approval step, which adds a human checkpoint before continuing the workflow. This example is reviewing the recommended job template. In the Detail panel, configure the step parameters:
Enter the usernames of approvers.
Enter a message, such as "Is this the right job template to remediate the identified issue?"
Set a timeout interval.
If an approver does not respond before the timeout interval is reached, the approval is rejected.
Click Create to add the step to the canvas.
Click Add step. Click AAP Execution step > Launch AAP job template from the Step panel, which will make the approved changes on your infrastructure.
In the Detail panel, configure the step parameters:
Select your Ansible Automation Platform credential or create a new credential.
Select the organization.
In the Job template field, select a job template from the dropdown list.
Or, if you want the task agent to make the decision of what job template to run, enable the Use expressions toggle. From the Input (left panel), drag the job_template_name from the Task Agent output into the Job template field (center panel).
Click Create to add the step to the canvas.
Click Save in the upper right corner.
This saves the workflow and adds it to the Workflows list. Use the icon in the navigation to access the list.
What to do next
Next, organize your execution path and connect the steps. You cannot run your workflow until the steps are in the correct order and connected using the handles.