You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/add-agent-action-create-run-workflow.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ ms.custom:
24
24
> This feature is in preview, might incur charges, and is subject to the
25
25
> [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
26
26
27
-
AI agents often need to work with external systems, such as call APIs, update systems, or coordinate multiple steps. However, when you mix agent and integration logic, or you directly embed integration logic in agent code, solutions become harder to maintain, test, update, and evolve. Agents can adeptly make decisions, but they aren't designed to manage retry attempts, long‑running steps, or external system failures.
27
+
AI agents often need to work with external systems, such as calling APIs, updating systems, or coordinating multiple steps. However, when you mix agent and integration logic, or you directly embed integration logic in agent code, solutions become harder to maintain, test, update, and evolve. Agents can adeptly make decisions, but they aren't designed to manage retry attempts, long‑running steps, or external system failures.
28
28
29
-
In Microsoft Foundry, AI agents can run multi-step processes or integrate with Azure, Microsoft, and external services, systems, apps, and data sources - often without extra code - when you connect agents to automated *logic app workflows* in Azure Logic Apps. To support this scenario, you can add prebuilt or preexisting workflows as *action* tools that your agents can use. This capability means you can add AI capabilities to solutions with reusable integration logic, or you can trigger existing workflows from agents in Foundry.
29
+
In Microsoft Foundry, AI agents can run multistep processes or integrate with Azure, Microsoft, and external services, systems, apps, and data sources - often without extra code - when you connect agents to automated *logic app workflows* in Azure Logic Apps. To support this scenario, you can add prebuilt or preexisting workflows as *action* tools that your agents can use. This capability means you can add AI capabilities to solutions with reusable integration logic, or you can trigger existing workflows from agents in Foundry.
30
30
31
31
Your agent can run workflows with seemingly endless integration options with Azure, Microsoft, and other services or products through Azure Logic Apps. You also have operations that help you manage, shape, convert, and transform data in your workflows. If no prebuilt connector exists for the data source or operation, you can create your own connector.
32
32
@@ -60,8 +60,8 @@ For more information, see:
60
60
61
61
If you have any other role, you need to have the hub created for you. For more information, see:
62
62
63
-
-[Default roles for projects](/azure/foundry/concepts/rbac-azure-ai-foundry#default-roles-for-projects)
64
-
-[Default roles for hubs](/azure/foundry/concepts/rbac-azure-ai-foundry#default-roles-for-the-hub)
63
+
-[Role-based access control for Microsoft Foundry](/azure/foundry/concepts/rbac-foundry).
64
+
-[Role-based access control for Microsoft Foundr (hub-focused)(classic)](/azure/foundry-classic/concepts/hub-rbac-foundry)
65
65
66
66
- An [Azure OpenAI model version gpt-4.1 or earlier](/azure/foundry/foundry-models/concepts/models-sold-directly-by-azure?tabs=global-standard-aoai%2Cglobal-standard&pivots=azure-openai) deployed for your Foundry project.
67
67
@@ -73,17 +73,17 @@ For more information, see:
73
73
74
74
## Considerations for using existing workflows as agent actions
75
75
76
-
To make existing workflows available through the actions gallery for an agent in Foundry, workflows need to meet the following requirements:
76
+
To make existing workflows available through the actions gallery for an agent in Foundry, the workflows need to meet the following requirements:
77
77
78
-
- The logic app resource that contains the workflow needs to use the **Consumption** hosting option.
78
+
- The workflow must exist in a logic app resource that uses the **Consumption** hosting option.
79
79
80
-
- The logic app resource uses the same Azure resource group and subscription as your Foundry project.
80
+
- The logic app resource must exist in the same Azure resource group and subscription as your Foundry project.
81
81
82
-
- The workflow starts with the [**Request** trigger named **When an HTTP request is received**](/azure/connectors/connectors-native-reqres#add-request-trigger).
82
+
- The workflow must start with the [**Request** trigger named **When an HTTP request is received**](/azure/connectors/connectors-native-reqres#add-request-trigger).
83
83
84
84
This trigger requires a description, which you provide on the trigger information pane in the workflow designer. This description helps the agent choose the correct action in Foundry when multiple agent actions exist.
85
85
86
-
- The workflow contains any other actions from the [1,400+ connectors gallery](/connectors/), including runtime-native, built-in operations, that implements the logic for your business scenario.
86
+
- The workflow can contain any other actions from the [1,400+ connectors gallery](/connectors/), including runtime-native, built-in operations, that implement the logic for your business scenario.
87
87
88
88
- The workflow must always end with the [**Response** action](/azure/connectors/connectors-native-reqres#add-a-response-action).
89
89
@@ -100,9 +100,9 @@ For more information, see:
100
100
-[Built-in operations that run with Azure Logic Apps runtime](/azure/connectors/built-in)
101
101
-[Custom connectors in Azure Logic Apps](/azure/logic-apps/custom-connector-overview)
102
102
103
-
## Limitations and known issues
103
+
## Limitations and known problems
104
104
105
-
This release has the following limitations or known issues:
105
+
This release has the following limitations or known problems:
106
106
107
107
| Limitation | Description |
108
108
|------------|-------------|
@@ -130,7 +130,7 @@ To set up an action for your agent to run a logic app workflow, follow these ste
130
130
131
131
> [!NOTE]
132
132
>
133
-
> Not all models support agent actions. If the **Actions** section appears unavailable, you need to deploy a gpt-4.1 model or earlier.
133
+
> Not all models support agent actions. If the **Actions** section appears unavailable, you need to deploy a GPT-4.1 model or earlier.
134
134
135
135
1. In the **Add action** wizard, select **Azure Logic Apps**.
136
136
@@ -165,7 +165,7 @@ To set up an action for your agent to run a logic app workflow, follow these ste
165
165
166
166
## 2: Create and authenticate connections
167
167
168
-
To create any connections that the action needs and to authenticate access to the required services, systems, apps, or data sources, follow these steps. The underlying template specifies the connectors to use for this action and in the corresponding logic app workflow.
168
+
To create connections that the action needs and to authenticate access to the required services, systems, apps, or data sources, follow these steps. The underlying template specifies the connectors to use for this action and in the corresponding logic app workflow.
169
169
170
170
1. In the **Add Logic App action** wizard, under **Authenticate**, authenticate any connections that you need to create for the action.
171
171
@@ -189,7 +189,7 @@ Check that all the action information appears correct. If you selected a Microso
189
189
190
190
1. For a selected Microsoft authored action, complete the following steps:
191
191
192
-
1. Review the statement that you acknowledge and understand the following events that happen after you leave the **Resource** section by selecting **Next**:
192
+
1. Review the statement that you acknowledge and understand the following events after you leave the **Resource** section by selecting **Next**:
193
193
194
194
- You can't return to the previous steps.
195
195
@@ -245,7 +245,7 @@ To try the new agent action by using the **Agents playground**, follow these ste
245
245
246
246
## Optional: Review underlying logic app and workflow
247
247
248
-
After the action runs, you can view the underlying logic app resource and workflow in the Azure portal. You can review the workflow's run history, which you can use to debug or troubleshoot problems that the workflow might experience.
248
+
After the action runs, you can view the underlying logic app resource and workflow in the Azure portal. You can review the workflow's run historyto debug or troubleshoot problems that the workflow might encounter.
249
249
250
250
1. In the [Azure portal](https://portal.azure.com) title bar search box, enter the name for the action you created.
251
251
@@ -265,13 +265,13 @@ After the action runs, you can view the underlying logic app resource and workfl
265
265
266
266
:::image type="content" source="media/add-agent-action-create-run-workflow/view-inputs-outputs.png" alt-text="Screenshot shows Azure portal, monitoring view for workflow run, selected operation, and information pane with operation inputs and outputs." lightbox="media/add-agent-action-create-run-workflow/view-inputs-outputs.png":::
267
267
268
-
For more information about workflow run history, see [View workflow status and run history](/azure/logic-apps/view-workflow-status-run-history?tabs=consumption).
268
+
For more information, see [View workflow status and run history](/azure/logic-apps/view-workflow-status-run-history?tabs=consumption).
269
269
270
270
## Optional: Open workflow in the designer
271
271
272
272
To review the workflow definition and operations or to edit the workflow, open the designer.
273
273
274
-
1. On logic app sidebar, under **Development Tools**, select the designer. If you're still in monitoring view, on the monitoring view toolbar, select **Edit**.
274
+
1. On the logic app sidebar, under **Development Tools**, select the designer. If you're still in monitoring view, on the monitoring view toolbar, select **Edit**.
275
275
276
276
You can now review the workflow's operations, which include the trigger and actions, for example:
277
277
@@ -281,7 +281,7 @@ To review the workflow definition and operations or to edit the workflow, open t
281
281
282
282
:::image type="content" source="media/add-agent-action-create-run-workflow/view-parameters.png" alt-text="Screenshot shows Azure portal, workflow designer, selected operation, and information pane with operation parameters and other settings." lightbox="media/add-agent-action-create-run-workflow/view-parameters.png":::
283
283
284
-
1. To expand the workflow's behavior, you can add more actions.
284
+
1. To expand the workflow's behavior, add more actions.
285
285
286
286
For any workflow to appear through the agent's **Add a Logic app action** gallery in Foundry and to run as an agent tool, make sure any changes you make to the workflow still meet [specific requirements](#considerations-for-using-existing-workflows-as-agent-actions).
287
287
@@ -294,17 +294,17 @@ To review the workflow definition and operations or to edit the workflow, open t
294
294
> | Parameter | Description |
295
295
> |-----------|-------------|
296
296
> |**Name**| This name is part of the trigger's HTTPS URL. External callers, such as other services, outside the workflow send an HTTPS request to this URL, which fires the trigger and starts the workflow. The trigger is always the first step in a workflow and specifies the condition to meet for the trigger to run. |
297
-
> |**HTTPS URL**| When the workflow is saved for the first time, this URL is generated and used for calling an endpoint that the trigger creates for the workflow. |
297
+
> |**HTTPS URL**| When you save the workflow for the first time, this URL is generated and used for calling an endpoint that the trigger creates for the workflow. |
298
298
> |**Method**| This setting specifies whether the trigger accepts all or only specific HTTPS methods. |
299
-
> |**Request Body JSON Schema**| If you want to validate the input that the trigger expects to receive in the HTTPS request sent from external callers, this schema specifies the JSON schema to use for validating that input. |
299
+
> |**Request Body JSON Schema**| If you want to validate the input that the trigger expects to receive in the HTTPS request, include a JSON schema that specifies and validates the input that external callers include in their request. |
300
300
301
301
For more information, see [Build a workflow with a trigger or action](add-trigger-action-workflow.md?tabs=consumption#add-action).
302
302
303
-
1. To save any changes you make, on the designer toolbar, select **Save**.
303
+
1. To save any changes, on the designer toolbar, select **Save**.
304
304
305
-
## Test an updated workflow in the designer
305
+
## Optional: Test an updated workflow in the designer
306
306
307
-
If you made changes to the weather workflow or to test a different workflow, follow these steps:
307
+
If you made changes to the weather workflow or want to test a different workflow, follow these steps:
308
308
309
309
1. On the designer toolbar, select **Run** > **Run with payload**.
310
310
@@ -323,23 +323,23 @@ If you made changes to the weather workflow or to test a different workflow, fol
323
323
324
324
On the **Output** tab, the **Response Body** contains the results and response from the workflow.
325
325
326
-
1. If your workflow run produces errors or requires troubleshooting, open to the workflow's run history so that you can examine each operation's inputs and outputs by using the relevant steps in [Review underlying logic app and workflow](#review-underlying-logic-app-and-workflow).
326
+
1. If your workflow run produces errors or requires troubleshooting, open the workflow's run history. Examine each operation's inputs and outputs by using the relevant steps in [Review underlying logic app and workflow](#review-underlying-logic-app-and-workflow).
327
327
328
328
## Billing and pricing
329
329
330
-
Consumption logic app workflows incur charges based the "pay-for-use" billing model. For more information about this model, see the following resources:
330
+
You incur charges for Consumption logic app workflows based on the pay-for-use billing model. For more information, see:
331
331
332
332
-[Usage metering, billing, and pricing](/azure/logic-apps/logic-apps-pricing#consumption-multitenant)
333
333
-[Azure Logic Apps pricing (Consumption Plan - Multitenant)](https://azure.microsoft.com/pricing/details/logic-apps/)
334
334
335
335
For Foundry, see the following resources:
336
336
337
-
-[Plan and manage costs for Foundry](/azure/ai-foundry/how-to/costs-plan-manage)
If you don't need the resources that you created for this guide, delete the resources so that you don't continue getting charged. You can either follow these steps to delete the resource group that contains these resources, or you can delete each resource individually.
342
+
If you don't need the resources that you created for this guide, delete the resources so you don't continue getting charged. You can either follow these steps to delete the resource group that contains these resources, or you can delete each resource individually.
343
343
344
344
1. In the Foundry portal, to remove the action from the agent, next to the action name, select the ellipses (**...**) button, and then select **Remove**.
345
345
@@ -354,5 +354,5 @@ If you don't need the resources that you created for this guide, delete the reso
354
354
## Related content
355
355
356
356
-[What are connectors in Azure Logic Apps?](/azure/connectors/introduction)
357
-
-[What is Foundry?](/azure/ai-foundry/what-is-azure-ai-foundry)
357
+
-[What is Microsoft Foundry?](/azure/foundry/what-is-foundry)
358
358
-[What is Azure Logic Apps?](/azure/logic-apps/logic-apps-overview)
0 commit comments