Skip to content

Commit b80feb0

Browse files
authored
Merge pull request #7856 from MicrosoftDocs/ai-features
AI features in Power Apps [DO NOT MERGE]
2 parents b585379 + fac38a5 commit b80feb0

19 files changed

+405
-6
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
href: ./canvas-apps/help-desk-install.md
246246
- name: Create your first app
247247
items:
248-
- name: 1 - Create an app from a design or a template
248+
- name: Create an app from a design or a template
249249
items:
250250
- name: Create an app from a template
251251
href: ./canvas-apps/get-started-test-drive.md
@@ -268,7 +268,13 @@
268268
- name: Troubleshoot common errors
269269
href: ./canvas-apps/figma/common-errors.md
270270
displayName: Troubleshoot common errors when creating app from Figma
271-
- name: 2 - Create an app using data
271+
- name: Create an app using AI Copilot (preview)
272+
items:
273+
- name: Overview
274+
href: ./canvas-apps/ai-overview.md
275+
- name: Create an app from conversations
276+
href: ./canvas-apps/ai-conversations-create-app.md
277+
- name: Create an app using data
272278
items:
273279
- name: From Microsoft Dataverse
274280
href: ./canvas-apps/data-platform-create-app.md
@@ -278,13 +284,13 @@
278284
href: ./canvas-apps/get-started-create-from-data.md
279285
- name: From Azure SQL Database
280286
href: ./canvas-apps/app-from-azure-sql-database.md
281-
- name: 3 - Make basic customizations
287+
- name: Make basic customizations
282288
items:
283-
- name: 1 - Galleries
289+
- name: Galleries
284290
href: ./canvas-apps/customize-layout-sharepoint.md
285-
- name: 2 - Forms
291+
- name: Forms
286292
href: ./canvas-apps/customize-forms-sharepoint.md
287-
- name: 3 - Cards
293+
- name: Cards
288294
href: ./canvas-apps/customize-card.md
289295
- name: Create an app from scratch
290296
items:
@@ -378,6 +384,10 @@
378384
href: ./canvas-apps/add-screen-context-variables.md
379385
- name: Add a scrolling screen
380386
href: ./canvas-apps/add-scrolling-screen.md
387+
- name: Add a chatbot (preview)
388+
href: ./canvas-apps/add-ai-chatbot.md
389+
- name: Add a copilot (preview)
390+
href: ./canvas-apps/add-ai-copilot.md
381391
- name: Configure Office 365 screens
382392
items:
383393
- name: Calendar-screen overview
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
title: Add Chatbot control to your canvas app
3+
description: A control that enables embedding of any published Power Virtual Agent (PVA) bot into Power Apps for end-user.
4+
author: mduelae
5+
ms.topic: conceptual
6+
ms.custom:
7+
- canvas
8+
- intro-internal
9+
ms.reviewer:
10+
ms.date: 3/13/2023
11+
ms.subservice: canvas-maker
12+
ms.author: tapanm
13+
search.audienceType:
14+
- maker
15+
search.app:
16+
- PowerApps
17+
contributors:
18+
- mduelae
19+
---
20+
21+
# Add Chatbot control to a canvas app (preview)
22+
23+
[This article is prerelease documentation and is subject to change.]
24+
25+
Add Chatbot control to your canvas apps and embed a published [Power Virtual Agents](/power-virtual-agents/fundamentals-what-is-power-virtual-agents) chatbot to assist your end-users with a variety of requests—from providing simple answers to common questions to resolving issues requiring complex conversations.
26+
27+
You can use an AI bot or AI boosted conversations bot:
28+
29+
- With AI chatbots, you can create an extended tree of answers to support your users. More information: [Power Virtual Agents preview quickstart (preview)](/power-virtual-agents/preview/quickstart)
30+
31+
- With AI boosted conversations Power Virtual Agents bot your bot can have a higher ability to respond to the user by using a number of prompts or generating a response based on provided "fallback" website which you set. The "fallback" website can include internal documents or publicly available websites. More information: [AI-based boosted conversations overview (preview)](/power-virtual-agents/nlu-gpt-overview)
32+
33+
34+
You can design the Chabot control by giving it a name, change the size of the control window, and position it anywhere on the screen.
35+
36+
> [!div class="mx-imgBorder"]
37+
> ![Sample Chabot control in a canvas app.](media/chatbot-control/ai-chatbot-control-1.png)
38+
39+
40+
> [!IMPORTANT]
41+
> - This capability is in gated preview, and you'll need to apply for consideration to take part in the trial. To apply, go to [Limited preview request](https://go.microsoft.com/fwlink/?linkid=2227838).
42+
> - Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
43+
> - For more information, go to our [preview terms](https://go.microsoft.com/fwlink/?linkid=2189520).
44+
> - This capability is powered by [ Azure OpenAI Service](/azure/cognitive-services/openai/overview).
45+
> - This capability is in process of rolling out, and may not be available in your region yet.
46+
> - This capability may be subject to usage limits or capacity throttling.
47+
48+
49+
## Prerequisites
50+
51+
- Follow the prerequisites for AI features: [AI Copilot overview (preview)](ai-overview.md)
52+
- To add the Chatbot control, you need to create and publish a bot on the [Power Virtual Agents web app](/power-virtual-agents/fundamentals-what-is-power-virtual-agents-portal). You can create any bot such as an AI bot or a new generative AI enriched Power Virtual Agents bot.
53+
54+
55+
## Bot schema name
56+
57+
You need the bot schema name to add it to the Chatbot control properties in Power Apps Studio. Following these steps to get the schema name.
58+
59+
1. In Power Virtual Agents, open the bot you want to use.
60+
2. In the navigation menu, go to **Settings** > **Details**.
61+
3. Select the **Advanced** tab and note the **Schema name**.
62+
63+
64+
## Turn on the Chatbot control
65+
66+
With your [canvas app open for editing](edit-app.md):
67+
68+
1. On the command bar, select **Settings** > **Upcoming features**.
69+
2. From the **Preview** tab, set the toggle for **Chatbot component** to **On**.
70+
71+
> [!div class="mx-imgBorder"]
72+
> ![Turn on Chatbot control.](media/chatbot-control/ai-chatbot-control-2.png)
73+
74+
## Add a control with a bot
75+
76+
With your [canvas app open for editing](edit-app.md):
77+
78+
1. On the app authoring menu, select **Insert**.
79+
2. Expand the **Input** menu and then select **Chatbot (preview)**). Place the chatbot control where you want to add it on the screen.
80+
81+
> [!div class="mx-imgBorder"]
82+
> ![Add the Chatbot control.](media/chatbot-control/ai-chatbot-control-3.png)
83+
84+
2. In the Chatbot properties pane, enter the Power Virtual Agents bot schema name in the **Schema Name** field.
85+
86+
You can change the name, the position, and size of the control.
87+
88+
### Key properties
89+
90+
The following are the main properties for Chatbot control:
91+
92+
- **Schema name**: The schema name property must be entered to connect your published Power Virtual Agents bot to your canvas app. For more information on how to get the Schema name, see [Prerequisites](add-ai-chatbot.md#prerequisites) section in this article.
93+
94+
- **Header label**: This is the name of the bot that your end-user will see. If don't enter a header label, it will be **Chatbot**.
95+
96+
> [!div class="mx-imgBorder"]
97+
> ![Add schema name.](media/chatbot-control/ai-chatbot-control-4.png)
98+
99+
Use the other properties or move the control on the screen to set position and size of the control on the screen.
100+
101+
## Limitations
102+
103+
- You can only embed a bot with no user authentication.
104+
105+
## See also
106+
107+
[Power Virtual Agents preview quickstart (preview)](/power-virtual-agents/preview/quickstart)
108+
109+
[AI-based boosted conversations overview (preview)](/power-virtual-agents/nlu-gpt-overview)
110+
111+
[Use the Copilot control](add-ai-copilot.md)
112+
113+
114+
[!INCLUDE[footer-include](../../includes/footer-banner.md)]
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
title: Add Copilot control to a canvas app
3+
description: Add copilot AI control to your canvas app.
4+
author: mduelae
5+
ms.topic: conceptual
6+
ms.custom:
7+
- canvas
8+
- intro-internal
9+
ms.reviewer:
10+
ms.date: 3/13/2023
11+
ms.subservice: canvas-maker
12+
ms.author: tapanm
13+
search.audienceType:
14+
- maker
15+
search.app:
16+
- PowerApps
17+
contributors:
18+
- mduelae
19+
---
20+
21+
# Add the Copilot control to a canvas app (preview)
22+
23+
[This article is prerelease documentation and is subject to change.]
24+
25+
The Copilot control is a next-generation AI assistant that makers can add to their apps for end-users. This is an AI-powered experience for app users to get insights about the data in their apps through conversation in natural language. Makers can add this control to any app and choose what data it can answer questions about.
26+
27+
> [!IMPORTANT]
28+
> - This capability is in gated preview, and you'll need to apply for consideration to take part in the trial. To apply, go to [Limited preview request](https://go.microsoft.com/fwlink/?linkid=2227838).
29+
> - Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
30+
> - For more information, go to our [preview terms](https://go.microsoft.com/fwlink/?linkid=2189520).
31+
> - This capability is powered by [ Azure OpenAI Service](/azure/cognitive-services/openai/overview).
32+
> - This capability is in process of rolling out, and may not be available in your region yet.
33+
> - This capability may be subject to usage limits or capacity throttling.
34+
35+
36+
## Prerequisites
37+
38+
- Follow the prerequisites for AI features: [AI Copilot overview (preview)](ai-overview.md).
39+
40+
41+
## Enable Copilot control for your app:
42+
43+
With your [canvas app open for editing](edit-app.md):
44+
45+
1. On the command bar, select **Settings** > **Upcoming features**.
46+
2. From the **Preview** tab, set the toggle for **Copilot component** to **On**.
47+
48+
> [!div class="mx-imgBorder"]
49+
> ![Turn on Copilot control.](media/copilot/copilot-1.png)
50+
51+
## Add the Copilot control
52+
53+
With your [canvas app open for editing](edit-app.md):
54+
55+
1. On the app authoring menu, select **Insert**.
56+
2. Expand the **Input** menu and select **Copilot (preview)** to add this control.
57+
58+
> [!div class="mx-imgBorder"]
59+
> ![Add teh copilot control.](media/copilot/copilot-2.png)
60+
61+
## Choose data
62+
63+
1. When the Copilot control is added, select a data source from the pane. Note that at this time, only a single Dataverse table can be selected for the Copilot control.
64+
65+
> [!div class="mx-imgBorder"]
66+
> ![Select a data source.](media/copilot/copilot-3.png)
67+
68+
2. Alternatively, on the **Properties** tab of the right-hand pane, set **Data source (Items)** to the desired Dataverse table as your source of data.
69+
70+
3. Select the specific **Fields** and/or **View** over which the Copilot control answer questions.
71+
72+
> [!div class="mx-imgBorder"]
73+
> ![Select fields or views.](media/copilot/copilot-4.png)
74+
75+
Due to current limitations, the Copilot control can answer questions over Dataverse tables that are smaller in size.
76+
77+
## Configure the control (optional)
78+
79+
In addition to choosing the data source, you can also configure the following properties:
80+
81+
- **Title**: Replaces the control's default title of **Copilot**, and can be updated to something more descriptive of what this Copilot control can help app users with.
82+
83+
- **Data summary**: Helps Copilot control give better responses to questions from app users. We recommend a brief 2-3 lines describing what the app is and what sort of questions this Copilot control will answer. This property does not impact the control's UI.
84+
85+
- **Placeholder text**: Replaces the control's default placeholder text in the text input box **Ask a question about the data**. We recommend updating this to a short line sharing guidance to app users about what type of questions this Copilot control can answer.
86+
87+
> [!div class="mx-imgBorder"]
88+
> ![Configure the control.](media/copilot/copilot-5.png)
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
[!INCLUDE[footer-include](../../includes/footer-banner.md)]
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Build apps through conversation
3+
description: Build apps through conversation with AI.
4+
author: mduelae
5+
ms.topic: conceptual
6+
ms.custom:
7+
- canvas
8+
- intro-internal
9+
ms.reviewer:
10+
ms.date: 3/13/2022
11+
ms.subservice: canvas-maker
12+
ms.author: tapanm
13+
search.audienceType:
14+
- maker
15+
search.app:
16+
- PowerApps
17+
contributors:
18+
- mduelae
19+
---
20+
21+
# Build apps through conversation (preview)
22+
23+
[This article is prerelease documentation and is subject to change.]
24+
25+
Create Power Apps with the help of AI. Simply describe the app that you want to build, and AI will design it for you.
26+
27+
With the **Copilot** feature in Power Apps you'll get in-app guidance using natural language processing to help you build your app.
28+
29+
The AI assistant is available from the Power Apps Home screen. You can tell the AI assistant what kind of information you want to collect, track, or show and the assistant will generate a Dataverse table and use it to build your canvas app.
30+
31+
> [!div class="mx-imgBorder"]
32+
> ![Tell the AI assistant the information you want to track in your app.](media/artificial-intelligence/create-app-using-ai-1.png)
33+
34+
> [!IMPORTANT]
35+
> - This capability is in gated preview, and you'll need to apply for consideration to take part in the trial. To apply, go to [Limited preview request](https://go.microsoft.com/fwlink/?linkid=2227838).
36+
> - Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
37+
> - For more information, go to our [preview terms](https://go.microsoft.com/fwlink/?linkid=2189520).
38+
> - This capability is powered by [ Azure OpenAI Service](/azure/cognitive-services/openai/overview).
39+
> - This capability is in process of rolling out, and may not be available in your region yet.
40+
> - This capability may be subject to usage limits or capacity throttling.
41+
42+
43+
## Prerequisites
44+
45+
Prerequisites for AI features: [AI Copilot overview (preview)](ai-overview.md)
46+
47+
48+
## Step 1: Create an app with the help of AI
49+
50+
To help you get started, let's build an app to track housekeeping tasks for a hotel.
51+
52+
1. Sign in to [Power Apps](https://make.powerapps.com).
53+
54+
2. In the text box enter **hotel housekeeping**.
55+
56+
> [!div class="mx-imgBorder"]
57+
> ![Describle your app.](media/artificial-intelligence/describe-your-app.png)
58+
59+
3. A Dataverse table with data that includes typical hotel housekeeping tasks is created for you.
60+
61+
## Step 2: Review the table for your app
62+
63+
Based on what you described, AI will generate a table for your app. The following are actions you can take:
64+
65+
1. **Suggestions**: These are suggested actions that you can ask the AI assistant to take to help you finalize the table.
66+
67+
2. **View column**: Select to view the column name.
68+
69+
3. **Edit table name**: View the table name and its properties.
70+
71+
4. **Copilot**: Enter text to instruct the AI assistant on how to modify the table, such as remove room type column.
72+
73+
5. **Create app or Cancel**: Select **Create app** to create an app based on the table or select **Cancel** to start over.
74+
75+
> [!div class="mx-imgBorder"]
76+
> ![Review table for your app.](media/artificial-intelligence/table-created.png)
77+
78+
## Step 3: Make edits
79+
80+
If you want to make changes, use the **Copilot** panel to describe what you want to do, and it will make the change for you. Let's ask **Copilot** to add a column to track cleaning start and end time.
81+
82+
1. In the **Copilot** text box enter, **Add columns to track start and end time**.
83+
84+
> [!div class="mx-imgBorder"]
85+
> ![Enter text to tell Copilot how you want to edit the table.](media/artificial-intelligence/add-column.png)
86+
87+
2. **Copilot** has added two new columns called, **Start Time** and **End Time**.
88+
89+
> [!div class="mx-imgBorder"]
90+
> ![Example of columns that Copilot created.](media/artificial-intelligence/column-created.png)
91+
92+
93+
3. You can continue editing the table by adding features such as room status, change rooms, or set priority levels for each room. When you're ready to create your app, select **Create app**.
94+
95+
96+
97+
[!INCLUDE[footer-include](../../includes/footer-banner.md)]

0 commit comments

Comments
 (0)