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/create-chat-assistant-prompt-template-standard-workflow.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Create AI chat assistants with prompt templates
3
-
description: Build an AI chat assistant that answers questions using your own data with Standard workflows in Azure Logic Apps and Azure OpenAI prompt templates.
3
+
description: Build an AI chat assistant that answers questions by using Standard workflows in Azure Logic Apps and Azure OpenAI prompt templates.
4
4
services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewers: estfan, shahparth, azla
@@ -73,7 +73,7 @@ The example workflow uses the following operations:
73
73
74
74
This example creates and uses a prompt template that lets your workflow complete the following tasks:
75
75
76
-
- Define a prompt with placeholders such as **`{{ customer.orders }}`**.
76
+
- Define a prompt with placeholders such as **`{{ Employee.orders }}`**.
77
77
- Automatically populate the template with outputs from earlier actions in the workflow.
78
78
- Generate consistent and structured prompts with minimal effort.
79
79
@@ -101,7 +101,7 @@ To follow the example, download the [sample prompt template and inputs](https://
101
101
|---------------------|-------------------------|
102
102
|**URL and key-based authentication**| 1. Go to your **Azure OpenAI Service** resource. <br><br>2. On the resource menu, under **Resource Management**, select **Keys and Endpoint**. <br><br>3. Copy the **Endpoint** URL and either **Key** value. Store these values somewhere safe. |
103
103
|**Active Directory OAuth**| 1. Set up your logic app resource for [OAuth 2.0 with Microsoft Entra ID authentication](/entra/architecture/auth-oauth2). <br><br>2. Go to your **Azure OpenAI Service** resource. <br><br>3. On the resource menu, under **Resource Management**, select **Keys and Endpoint**. <br><br>4. Copy the **Endpoint** URL. Store this value somewhere safe. |
104
-
|**Managed identity** <br>(Recommended) | 1. Follow [these steps to set up the managed identity with Microsoft Entra ID for your logic app](/azure/logic-apps/authenticate-with-managed-identity?tabs=standard). <br><br>2. Go to your **Azure OpenAI Service** resource. <br><br>3. On the resource menu, under **Resource Management**, select **Keys and Endpoint**. <br><br>4. Copy the **Endpoint** URL. Store this value somewhere safe. |
104
+
|**Managed identity** <br>(Recommended) | 1. Follow the [general steps to set up the managed identity with Microsoft Entra ID for your logic app](/azure/logic-apps/authenticate-with-managed-identity?tabs=standard). <br><br>2. Go to your **Azure OpenAI Service** resource. <br><br>3. On the resource menu, under **Resource Management**, select **Keys and Endpoint**. <br><br>4. Copy the **Endpoint** URL. Store this value somewhere safe. |
@@ -115,7 +115,7 @@ To add the operation that starts your workflow when an event happens or a condit
115
115
116
116
1. Open your Standard logic app resource and blank workflow in the designer.
117
117
118
-
1. Follow [these steps to add the trigger you want](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-trigger).
118
+
1. Follow the [general steps to add the trigger you want](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-trigger).
119
119
120
120
This example uses the built-in ("in app") trigger named **When an HTTP request is available**.
121
121
@@ -139,16 +139,16 @@ When you're done, your workflow looks like the following example:
139
139
140
140
To add operations that store the trigger outputs for subsequent actions to use as inputs, follow these steps:
141
141
142
-
1. Under the trigger, follow [these steps to add the data operation named **Compose** action](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-action).
142
+
1. Under the trigger, follow the [general steps to add the data operation named **Compose** action](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-action).
143
143
144
144
The example adds three **Compose** actions and uses the following test data as inputs:
145
145
146
146
1. Rename the first **Compose** action as **Employee**, and enter the following data in the **Inputs** box:
147
147
148
148
```json
149
149
{
150
-
"firstName": "Sophie",
151
-
"lastName": "Owen",
150
+
"firstName": "Alex",
151
+
"lastName": "Taylor",
152
152
"department": "IT",
153
153
"employeeId": "E12345",
154
154
"orders": [
@@ -202,7 +202,7 @@ Now, add the Azure OpenAI action to the workflow.
202
202
203
203
## Add the Azure OpenAI action
204
204
205
-
1. Under the last **Compose** action, follow [these steps to add the **Azure OpenAI** action named **Get chat completions using Prompt Template**](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-action).
205
+
1. Under the last **Compose** action, follow the [general steps to add the **Azure OpenAI** action named **Get chat completions using Prompt Template**](/azure/logic-apps/create-workfklow-with-trigger-or-action?tabs=standard#add-action).
206
206
207
207
1. After the action appears on the designer surface, the connection pane opens so that you can provide the following information:
208
208
@@ -229,9 +229,9 @@ Now, add the Azure OpenAI action to the workflow.
229
229
You are an AI assistant for Contoso's internal procurement team. You help employees get quick answers about previous orders and product catalog details. Be brief, professional, and use markdown formatting when appropriate. Include the employee’s name in your response for a personal touch.
@@ -244,7 +244,7 @@ Now, add the Azure OpenAI action to the workflow.
244
244
# Product catalog
245
245
Use this documentation to guide your response. Include specific item names and any relevant descriptions.
246
246
247
-
{% for item in documents %}
247
+
{% for item in Products %}
248
248
Catalog item ID: {{item.id}}
249
249
Name: {{item.title}}
250
250
Description: {{item.content}}
@@ -253,12 +253,12 @@ Now, add the Azure OpenAI action to the workflow.
253
253
# Order history
254
254
Here is the employee's procurement history to use as context when answering their question.
255
255
256
-
{% for item in customer.orders %}
256
+
{% for item in Employee.orders %}
257
257
Order Item: {{item.name}}
258
258
Details: {{item.description}} — Ordered on {{item.date}}
259
259
{% endfor %}
260
260
261
-
Based on the product documentation and order history above, please provide a concise and helpful answer to their question. Do not fabricate information beyond the provided inputs.
261
+
Based on the product documentation and order history above, provide a concise and helpful answer to their question. Don't fabricate information beyond the provided inputs.
262
262
```
263
263
264
264
The following table describes how the example template works:
@@ -329,7 +329,7 @@ When you're done, your workflow looks like the following example:
329
329
330
330
## Clean up resources
331
331
332
-
If you don't need the resources that you created for this guide, make sure to delete these resources so that you don't continue to get charged. You can either follow these steps to delete the resource group that contains these resources, or you can delete each resource individually.
332
+
If you don't need the resources that you created for this guide, make sure to delete the resources so that you don't continue to get charged. You can either follow these steps to delete the resource group that contains these resources, or you can delete each resource individually.
333
333
334
334
1. In the Azure search box, enter **resource groups**, and select **Resource groups**.
0 commit comments