|
| 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 | +>  |
| 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 | + >  |
| 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 | + >  |
| 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 | + >  |
| 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)] |
0 commit comments