Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing is Caring Power Automate Sample #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions samples/ExtractDataFromPDFsAndImagesWithGPT/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
page_type: sample
languages:
- powerautomate-comma
products:
- powerautomate
name: Extract Data From PDFs And Images With GPT
description: Uses AI Builder's OCR for PDFs & Images to extract the text present in a file, replicates the file in a text (txt) format, then passes it off to a GPT prompt action for things like data extraction.
urlFragment: powerapps-calendar-component
ms.date: 08/30/2023
author: tylerkolota
ms.author: pnp
level: intermediate
ms.prod: power-automate
---

# Calendar Component

## Summary

Uses AI Builder's OCR for PDFs & Images to extract the text present in a file, replicates the file in a text (txt) format, then passes it off to a GPT prompt action for things like data extraction.

![Preview](./assets/GPTDataExtractionThumbnail.png)
![Preview](./assets/preview2.png)


## Applies to

* [Microsoft Power Automate](https://docs.microsoft.com/powerautomate/)

## Compatibility

![Power Apps Source File Pack and Unpack Utility 0.20](https://img.shields.io/badge/Packing%20Tool-0.20-green.svg)
![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-green.svg "Premium Power Automate license not required")
![Experimental Features](https://img.shields.io/badge/Experimental%20Features-No-green.svg "Does not rely on experimental features")
![On-Premises Connectors](https://img.shields.io/badge/On--Premises%20Connectors-No-green.svg "Does not use on-premise connectors")
![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-Not%20Required-green.svg "Does not use custom connectors")

## Authors

Solution|Author(s)
--------|---------
Extract Data From PDFs And Images With GPT | [Tyler Kolota](https://github.com/takolota) ([@tylerkolota](https://www.linkedin.com/in/kolota) )

## Version history

Version|Date|Comments
-------|----|--------
2.7|August 30, 2023|Initial release


## Features

## Prerequisites

AI Builder credits

### Setting Up The Flow

To set up the flow, you can follow the video guide at https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Extract-Data-From-PDFs-and-Images-With-GPT/td-p/2201345

## Data Sources

OneDrive, SharePoint, or any other file source.



## 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.**


## Support

For questions & feedback, please visit https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Extract-Data-From-PDFs-and-Images-With-GPT/td-p/2201345


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"shared_commondataserviceforapps_1":"046d0d3e-1564-4eab-b2bc-c1abf3361f02","shared_onedriveforbusiness_1":"6918a60c-aeef-4313-93dc-93a4628489df"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"shared_commondataserviceforapps_1":"60e38b69-b97e-462a-a1fe-21c0ca05795f","shared_onedriveforbusiness_1":"2e6ea997-827b-4116-af72-75bccd815198"}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"packageSchemaVersion":"1.0","flowAssets":{"assetPaths":["d02adafe-f0e6-40c5-9efd-1d6196af87e7"]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"schema":"1.0","details":{"displayName":"GPT Data Extraction - PDFs & Images V2.7","description":"","createdTime":"2023-08-30T18:54:23.7218933Z","packageTelemetryId":"348331b8-0755-4c65-8377-ebaa4232ed85","creator":"N/A","sourceEnvironment":""},"resources":{"d02adafe-f0e6-40c5-9efd-1d6196af87e7":{"type":"Microsoft.Flow/flows","suggestedCreationType":"New","creationType":"Existing, New, Update","details":{"displayName":"GPT Data Extraction - PDFs & Images V2.7"},"configurableBy":"User","hierarchy":"Root","dependsOn":["046d0d3e-1564-4eab-b2bc-c1abf3361f02","60e38b69-b97e-462a-a1fe-21c0ca05795f","6918a60c-aeef-4313-93dc-93a4628489df","2e6ea997-827b-4116-af72-75bccd815198"]},"046d0d3e-1564-4eab-b2bc-c1abf3361f02":{"id":"/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps","name":"shared_commondataserviceforapps","type":"Microsoft.PowerApps/apis","suggestedCreationType":"Existing","details":{"displayName":"Microsoft Dataverse","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1651/1.0.1651.3382/commondataserviceforapps/icon.png"},"configurableBy":"System","hierarchy":"Child","dependsOn":[]},"60e38b69-b97e-462a-a1fe-21c0ca05795f":{"type":"Microsoft.PowerApps/apis/connections","suggestedCreationType":"Existing","creationType":"Existing","details":{"displayName":"[email protected]","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1588/1.0.1588.2938/commondataserviceforapps/icon.png"},"configurableBy":"User","hierarchy":"Child","dependsOn":["046d0d3e-1564-4eab-b2bc-c1abf3361f02"]},"6918a60c-aeef-4313-93dc-93a4628489df":{"id":"/providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness","name":"shared_onedriveforbusiness","type":"Microsoft.PowerApps/apis","suggestedCreationType":"Existing","details":{"displayName":"OneDrive for Business","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1647/1.0.1647.3361/onedriveforbusiness/icon.png"},"configurableBy":"System","hierarchy":"Child","dependsOn":[]},"2e6ea997-827b-4116-af72-75bccd815198":{"type":"Microsoft.PowerApps/apis/connections","suggestedCreationType":"Existing","creationType":"Existing","details":{"displayName":"[email protected]","iconUri":"https://connectoricons-prod.azureedge.net/releases/v1.0.1546/1.0.1546.2665/onedriveforbusiness/icon.png"},"configurableBy":"User","hierarchy":"Child","dependsOn":["6918a60c-aeef-4313-93dc-93a4628489df"]}}}