The Power Platform empowers makers with prebuilt prompts for common business scenarios such as summarizing, classifying, extracting entities, translating, assessing sentiment, or drafting a reply.
These prompts allow you to generate AI-driven responses without the need to manually create a prompt.
In this article, I will provide an introduction to ‘Dataverse AI functions’ and show an example of how they can be utilized in a Canvas App.
What are Dataverse AI functions:
- Trained and ready to use prebuilt Al functions.
- Add intelligence in your apps and workflows without the need to collect data, build
and train. - Can be used in Al Builder, Power Automate, Power Apps, Canvas Apps, and low-code plugins.
Here are some examples of how you can use these ready-made prebuilt prompts today:
- AI Summarize: Summarize text from an email or document and add the summary to a Microsoft Dataverse table record. Your application end users would benefit from the summary and can quickly evaluate the next steps.
- AI Classify: Quickly classify customer inquiries into your own categories to ensure the inquiry is assigned to the correct team. You could use this from your custom copilot to route the inquiry and reduce customer frustration from being redirected multiple times.
- AI Reply: Help staff move past writer’s block by drafting a reply message. For example, draft a reply to a customer’s review of a product.
- AI Extract: Automate data augmentation by extracting data like phone numbers or names of people from incoming correspondence. This saves time and improves data quality by prepopulating the data.
- AI Sentiment: Build in the ability to your apps or automations to quickly check if text is positive, negative, or neutral. For example, for the staff reviewing customer feedback, you could provide an indicator in the application of the sentiment.
Utilizing ‘Dataverse AI Functions’ in a Canvas App:
- Create a new Canvas App and add ‘Environment’ Datasource as shown below.

- All the ‘Dataverse AI functions’ can be accessed by ‘Environment.‘ as shown below.

- Lets try the ‘AIReply‘ function. Add a textbox and a button control. On the ‘OnSelect’ event of the button, use the following formula to store the response in the ‘AIReplyResponse’ context variable.
UpdateContext({AIReplyResponse: Environment.AIReply({Text: tbAIReplyResponse.Text})})

- Add another text control to display the AIReplyResponse. Add following formula to the ‘Default’ property of text control.
AIReplyResponse.PreparedResponse

- Play the App and you will get the AI reply response.

Please watch this video for detailed walkthrough. You can also refer this link on Prompt Engineering.
🙂


![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)
Leave a comment