Hello, I am attempting to use the Create Text with GPT to analyze and summarize some data from an Excel Sheet. I am having difficulty creating a prompt that uses data from an Excel Sheet in SharePoint. How can I create a prompt using an Excel Spreadsheet from PowerPoint?
Hi @CSilva ,
Hos is your Excel data organized? Do you have it as a table record, or it is just a populated cell in the Spreadsheet? If you are not sure about it, feel free to share an image from your Excel file (make sure to remove any sensitive content).
If the data is allocated into a table, you can use the 'Get row' or 'List rows present into a table' actions. If it is not, the easiest way to return this data is to use an Office Script, which is similar to a 'VBA', but for Excel Online and with integration with Power Automate Cloud.
It is in a table right now. My test table has the following headers: Name, Hours, Wage, and Total. My goal right now is to ask Chat GPT to fill in the Total column for each Name listed.
Hi @CSilva ,
I don't know exactly how did you structure your prompt, so I'm using here an exemplificative template that just provide some context and asks for the calculation for each of the table records. Feel free to share some details or even your prompt template.
In this answer, I'm providing only the steps to build the prompt, but not to write ChatGPT response to Excel. I'm assuming that you will ask ChatGPT to deliver the results in an specific format ("name1 - total1; name2 - total2; name3 - total3..."). If this is the case, please share the desired response format, as we will need it to build a text mining expression to isolate the names and totals.
Useful links
Here are some useful links related to the features used below in case of you want to explore it:
Integrating Power Automate and Excel tables - http://digitalmill.net/2023/07/17/integrating-power-automate-and-excel-tables/
Excel connector reference (official docs) - https://learn.microsoft.com/en-us/connectors/excelonlinebusiness/
Text mining in Power Automate - http://digitalmill.net/2023/08/12/how-to-extract-and-clean-texts-with-power-automate/
Line breaks in Power Automate - https://tomriha.com/how-to-replace-new-line-n-in-a-power-automate-expression/
Table overview
For this example, I created this table with the same structure that you described:
Step 1 - Initialize a string variable for Excel records:
As mentioned before, we will provide some context to Chat GPT connector, which will basically include "The Employee X worked Y hours and has a hourly rate of Z", where "XYZ" will be filled dynamically. This context will be stored in a variable with string data type (I'm calling it 'prompt_table'):
Step 2 - Access all table records:
Use a 'List rows present in a table' action and populate it with your Excel file and table details to return all of its records:
Step 3 - Map all table records:
Now you will access each table record and extract the name, the wage and the hours to build the dynamic part from your prompt. To achieve it, first add an 'Apply to each' loop, passing the property 'value' from the 'List rows present in a table' action as dynamic content:
Then include an 'Append to string variable' action (be careful here, as there is also another action to append values to array variables), set 'prompt_table' as variable and enter the template of the text that you want to populate with the dynamic content (in our case: "The Employee X worked Y hours and has a hourly rate of Z"):
Now you just need to replace the 'XYZ' for the dynamic contents of the properties to be included in the text. The dynamic contents will have the same name of your table columns:
Before move forward, we will need to include a line break at the end of the append action, so each of the context statements will be in different lines. In Power Automate, you need an expression to include a line break, which is decodeUriComponent('%0A'). Include it at the end of the text:
Step 4 - Integrate the context into your prompt:
Out of the 'Apply to each loop', initialize another string variable to store your prompt. Write your prompt template and in the 'context' part of your text, insert the dynamic content of 'prompt_table':
Output
The output will look like this:
Flow design
Let me know if it works for you or if you need any additional help!
-------------------------------------------------------------------------
If this is the answer for your question, please mark the post as Solved.
If this answer helps you in any way, please give it a like.
Hi, i need to bulk prompt CHAT-GPT using a excel file, in one row it will be the prompt and in the other row i want to receive the response (output). I see some tutorial video in youtube a guy doing that but he doesn't explain the technical way to do it. Someone can help me?
I record a video better explain the situation: https://www.loom.com/share/Screen-Shot-15-September-2023-8bba77e4719a42838e06401dd0ab527e?sid=d1def0...
The flow the guy uses, is something like that:
But i don't know what information i need to fill in each part of the flow to the process work fine, someone can help me with this question? I really need to know how to do it this for a job.
I record a second video two explain better my pain in solve this case and showing the flow the guy in youtube made: https://www.loom.com/share/With-each-information-i-need-to-fill-e3b8ca1dbc40405686457f2e634afb50?sid...
This is the video from the guy in youtube: https://www.youtube.com/watch?v=Kcehq7SWb4g
i'm using this sheet to test: PROMPT-GPT
What information i need to fill in each place? i'm forgeting something? thats why is not working? look:
(*I'dont know each information i need to fill in: table ; filter query ; order by ; top count ; skip count ; select query ; datime format)
In this other table, i don't know how to fill too, i'm following the guy tutorial but in "Messages content" don't appear to me the option to put requeriments like in his video:
and in the last part of the flow i don't know what i need to put like in "compose" and in the other parts of excel:
(* Table ; key collum ; key value ; data time format: i dont know with each information i need to put too)
Can you help me? 😄
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages