Langchain
April 18, 2023

How I automated my workflow with GPT-4 & Zapier

Published By
Dean Majidy
Clock
Reading Time
8 Min

Allow your LLMs to access over 5,000 applications & 50,000 different actions

I want to introduce you to an exciting way to automate your workflow by connecting a GPT model to a tool like Zapier.

We'll be using a framework called LangChain to help us achieve this. LangChain helps solve many of the limitations that current large language models (LLMs) like GPT-3 and GPT-4 have, making it easier for developers to connect different components of the system.Applications are like the lifeblood of mobile phones and tablets today. The true potential of your mobile phone is harnessed by applications that can provide utility. Apps come under various segments.

Here's a quick overview of a simple use case I've developed:

  1. The agent retrieves an invoice from an email (fake invoice I created for the sake of this demonstration)
  2. Once it finds it, it then summarizes it
  3. Then sends it in the #leads slack channel that I created.

Here was the invoice that I grabbed.

This was the output after I ran my script from a simple text Input:


I was able to achieve this utilizing Zapier's new NLA with langchain's agent provider just from the following text input... Yes that's it, no complex API calls or anything. crazy isn't it??


Although this may seem like a simple implementation (and it very well was). This open's up the possibilities of much more complex workflows that can be situated for your exact business & industry

This is done using just 20 lines of code and a text input that specifies the desired outcome. The GPT model communicates with both Gmail and Slack, automating the process based on the input.

To access this functionality, you'll need to sign up for the Zapier beta. Once you have an account, you can use the provided API keys to connect Langchain & openAI to Zapier.

We encourage you to clone our GitHub repo, experiment with adding different integrations, and share your creations with us. We'd love to see what you build!