Skip to content

Commit f79b52b

Browse files
author
ecfan
committed
Consistency edits
1 parent 2e5c3b3 commit f79b52b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/logic-apps/create-chat-assistant-prompt-template-standard-workflow.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
services: logic-apps
55
ms.suite: integration
66
ms.reviewers: estfan, shahparth, azla
@@ -73,7 +73,7 @@ The example workflow uses the following operations:
7373
7474
This example creates and uses a prompt template that lets your workflow complete the following tasks:
7575

76-
- Define a prompt with placeholders such as **`{{ customer.orders }}`**.
76+
- Define a prompt with placeholders such as **`{{ Employee.orders }}`**.
7777
- Automatically populate the template with outputs from earlier actions in the workflow.
7878
- Generate consistent and structured prompts with minimal effort.
7979

@@ -101,7 +101,7 @@ To follow the example, download the [sample prompt template and inputs](https://
101101
|---------------------|-------------------------|
102102
| **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. |
103103
| **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. |
105105

106106
[!INCLUDE [highest-security-level-guidance](includes/highest-security-level-guidance.md)]
107107

@@ -115,7 +115,7 @@ To add the operation that starts your workflow when an event happens or a condit
115115

116116
1. Open your Standard logic app resource and blank workflow in the designer.
117117

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).
119119

120120
This example uses the built-in ("in app") trigger named **When an HTTP request is available**.
121121

@@ -139,16 +139,16 @@ When you're done, your workflow looks like the following example:
139139

140140
To add operations that store the trigger outputs for subsequent actions to use as inputs, follow these steps:
141141

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).
143143

144144
The example adds three **Compose** actions and uses the following test data as inputs:
145145

146146
1. Rename the first **Compose** action as **Employee**, and enter the following data in the **Inputs** box:
147147

148148
```json
149149
{
150-
"firstName": "Sophie",
151-
"lastName": "Owen",
150+
"firstName": "Alex",
151+
"lastName": "Taylor",
152152
"department": "IT",
153153
"employeeId": "E12345",
154154
"orders": [
@@ -202,7 +202,7 @@ Now, add the Azure OpenAI action to the workflow.
202202

203203
## Add the Azure OpenAI action
204204

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).
206206

207207
1. After the action appears on the designer surface, the connection pane opens so that you can provide the following information:
208208

@@ -229,9 +229,9 @@ Now, add the Azure OpenAI action to the workflow.
229229
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.
230230

231231
# Employee info
232-
Name: {{customer.firstName}} {{customer.lastName}}
233-
Department: {{customer.department}}
234-
Employee ID: {{customer.employeeId}}
232+
Name: {{Employee.firstName}} {{Employee.lastName}}
233+
Department: {{Employee.department}}
234+
Employee ID: {{Employee.employeeId}}
235235

236236
# Question
237237
The employee asked the following:
@@ -244,7 +244,7 @@ Now, add the Azure OpenAI action to the workflow.
244244
# Product catalog
245245
Use this documentation to guide your response. Include specific item names and any relevant descriptions.
246246

247-
{% for item in documents %}
247+
{% for item in Products %}
248248
Catalog item ID: {{item.id}}
249249
Name: {{item.title}}
250250
Description: {{item.content}}
@@ -253,12 +253,12 @@ Now, add the Azure OpenAI action to the workflow.
253253
# Order history
254254
Here is the employee's procurement history to use as context when answering their question.
255255

256-
{% for item in customer.orders %}
256+
{% for item in Employee.orders %}
257257
Order Item: {{item.name}}
258258
Details: {{item.description}} — Ordered on {{item.date}}
259259
{% endfor %}
260260

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.
262262
```
263263
264264
The following table describes how the example template works:
@@ -329,7 +329,7 @@ When you're done, your workflow looks like the following example:
329329
330330
## Clean up resources
331331
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.
333333
334334
1. In the Azure search box, enter **resource groups**, and select **Resource groups**.
335335

0 commit comments

Comments
 (0)