LLM Agents + Spreadsheets = Superpower
Chris Weidemann
CTO & Co-Founder Advisor Labs | My team of AI and ML experts help clients leverage their own data to improve business outcomes through custom AI solutions.
While I believe custom, task driven, AI solutions are what will drive holistic business value in the future (because a general use LLM is very expense to operate in comparison), I am convinced that AI agents in a spreadsheet are one of the most powerful generative AI tools available today.
I have a lot of high hopes for Microsoft’s Copilot in Office 365, but currently it is limited. In Excel I get “I'm sorry, but I don't have the capability to…” far too frequently. Therefore, I built a POC for my most common desired use case, LLM prompting as a custom Excel function.
Imagine taking an Excel sheet and sending a series of ChatGPT-like agents out to discover additional information, perform analysis, and then produce information based on those inputs and prompts, all within an Excel sheet and with complete control of the context window. We are now doing this at Advisor Labs and each day we find new ways to leverage it further.
With the POC, you engage the LLM as a function. The function takes input text, input fields, and an LLM prompt that uses those inputs. You can have one input or a series of inputs. The product is the LLM’s response, which is placed in the field of the function. Once the function is working as desired, use Excel’s Autofill feature to drag it across all the rows you want the same prompt applied to in the sheet. Here is simple everyday example, but there are plenty of role specific business use cases:
=AdvisorAI(“The name of a person that gave me a wedding gift”, A2, “The name of the gift”, B2, “Write a short thank you note for the wedding gift. Include their name and reference the gift by name.”) ….
There are many reasons why I think this will be useful as either Copilot catches up or the plugin community capitalizes. The two most noteworthy reasons are:
领英推荐
Before building the POC, I did find that there are a few plugins out there already that are doing something similar. I couldn’t find any that formally stated what they are or are not doing with customer data, so I decided to make my own (if anyone doesn’t understand why this is important, read my other post on why businesses need a private LLM and shouldn’t use private or confidential data in ChatGPT).
If anyone wants to put something similar together, I recommend using Azure AI Studio for prototyping. It is straightforward. If you haven’t used it before, below is a tutorial that will give you a lot of hands-on confidence. Then you’ll just need to pick how you want to integrate with Excel/Google Sheets:
Azure AI Studio Tutorial-
Excel Custom Functions-
If you run into any problems or want to talk through the potential, feel free to reach out to me on LinkedIn.
Financial Analyst at CityFALCON
7 个月This is really cool. I have been thinking of this a lot. I don't know coding, but I asked ChatGPT to write soemething and I could have excel functions calling the LLM. Hoever, the excel was freezing until completion. I believe such a plugin would be extremely productive.
Senior Managing Director
8 个月Chris Weidemann Very interesting. Thank you for sharing