Skip to content

Commit

Permalink
Fundraiser Information AI Builder prompt (#63)
Browse files Browse the repository at this point in the history
* init commit

* random-password-generator README.md

* sample.json for random-password-generator

* sample.json and README.md for merge-pdfs-and-send-outlook-email-message

* sample.json for merge-pdfs-and-send-outlook-email-message

* Updated sample.json for merge-pdfs-and-send-outlook-email-message and random-password-generator

* Added new image for merge-pdfs-and-send-outlook-email-message and updated sample.json for merge-pdfs-and-send-outlook-email-message and random-password-generator

* Updated sample.json for merge-pdfs-and-send-outlook-email-message with thumbnail URL value

* Added fundraiser-information prompt in powerplatform-prompts/prompts/ai-builder

* Updated README.md and sample.json
  • Loading branch information
elaizabenitez authored Sep 3, 2024
1 parent 83a1d56 commit 565ce7e
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 0 deletions.
53 changes: 53 additions & 0 deletions prompts/ai-builder/fundraiser-information/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Fundraiser Information

## Description

This prompt helps with providing information on fundraisers using an input variable and data from the Dataverse table, Fundraiser, in the sample Fundraiser Power Apps model-driven app.

## Prompt

Answer in English as bullet points in a professional tone. Provide details on {Fundraiser.Name} {Fundraiser.Category} {Fundraiser.Total Donations} {Fundraiser. Goal} and please mentioned the [user question] in the header of the response.

### Supported Language(s)

[English](./en-us/prompt.md)

## Authors

Solution|Author(s)
--------|---------
Fundraiser information | [Elaiza Benitez](https://github.com/elaizabenitez.png), Microsoft

## Pre-requisite
* This prompt is dependant on the sample Fundraiser Power Apps model-driven app. Refer to [Get sample apps](https://aka.ms/sample-model-driven-apps) for steps in installing sample apps and data.

## Minimal Path to Awesome

* In your custom copilot in Copilot Studio, create a new Topic with a minimum of 5 trigger phrases. The following are examples.
```
Please tell me information about my fundraisers
Summarize donations received for my fundraisers
I want to know information about donations for my fundraisers in different categories
I need to know information on donations received for my fundraisers
What donations have I received for my fundraisers
```
* Add the Call an action node and select **Create a prompt**
* The AI Builder prompt builder will appear within Copilot Studio. Enter a name for your prompt such as `Fundraiser information prompt`
* Select **Input** under Settings to the right of the screen and select **Add input**
* In the **Name** field enter `user question` and in the **Sample data** field, enter `What are my top 3 fundraisers by total donations?`
* Select **Data used (preview)** and select **+ Add data**
* Search for the *Fundraiser* table and select it.
* Copy the prompt and paste into the **Prompt** field.
* Replace all data variables in the prompt with curly braces by selecting **+ Insert**, then select **Fundraiser** and search for the columns **Name**, **Category**, **Total Donations** and **Fundraiser Goal**.
* Replace [user question] with the input variable created earlier by selecting **+ Insert**, then select **user question**
* Select **Test prompt**
* Once tested, select **Save custom prompt**
* In Copilot Studio, search for the _Fundraiser information prompt_ action and select it. The prompt action will now be added to the Topic of your custom copilot.

For a step-by-step walkthrough, watch [Build prompt actions for your copilot](aka.ms/ai-in-action/copilot-studio/ep3)

## Disclaimer

**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-prompts/samples/ai-builder/fundraiser-information" aria-hidden="true" />
51 changes: 51 additions & 0 deletions prompts/ai-builder/fundraiser-information/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
"name": "pnp-powerplatform-prompts-fundraiser-information",
"version": "1.0.0.0",
"source": "pnp",
"creationDateTime": "2024-09-02T00:00:00.000Z",
"updateDateTime": "2024-09-02T00:00:00.000Z",
"title": "Fundraiser information",
"shortDescription": "This prompt helps with providing information on fundraisers using an input variable and data from the Dataverse table, Fundraiser, in the sample Fundraiser Power Apps model-driven app.",
"longDescription": [
""
],
"url": "https://github.com/pnp/powerplatform-prompts/tree/main/prompts/ai-builder/fundraiser-information/",
"products": [
"AI Builder",
"AIBuilder",
"Power Platform",
"powerplatform-prompts",
"ai-builder-prompts"
],
"tags": [
"Content-generation"
],
"categories": [
"AI Builder",
"Copilot Studio"
],
"metadata": [
{
"key": "Prompt",
"value": "Answer in English as bullet points in a professional tone. Provide details on {Fundraiser.Name} {Fundraiser.Category} {Fundraiser.Total Donations} {Fundraiser. Goal} and please mentioned the [user question] in the header of the response."
}
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://raw.githubusercontent.com/pnp/powerplatform-prompts/main/templates/previewprompts.png",
"alt": "Preview GIF"
}
],
"authors": [
{
"gitHubAccount": "elaizabenitez",
"name": "Elaiza Benitez",
"pictureUrl": "https://github.com/elaizabenitez.png"
}
]
}
]
1 change: 1 addition & 0 deletions prompts/ai-builder/fundraiser-information/en-us/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Answer in English as bullet points in a professional tone. Provide details on {Fundraiser.Name} {Fundraiser.Category} {Fundraiser.Total Donations} {Fundraiser. Goal} and please mentioned the [user question] in the header of the response.

0 comments on commit 565ce7e

Please sign in to comment.