-: Let's explore Zapier a little further.
You go over to the Create Zap tab.
Now we're ready to start creating a chain of automation
between apps, or as they call it a zap.
There are over 5,000 apps
that you can use here in Zapier,
so depending on your business, on your workflow
and the apps that you like to use,
you will find some unique process
that works perfectly for you.
I'm just gonna give you some generic examples
that one might use.
Incorporating chatGPT, so you can start seeing
how you would use Zapier and AI in your workflow.
So let's go ahead and click on Gmail.
Now we need to choose an event.
So we're gonna say every time there's a new email
that is the action that triggers this chain.
So when a new email comes into my Gmail, the rest
of everything we're about to do will start to trigger.
So new email, hit continue.
We're actually gonna change this email here, so you'll have
to enter in your work email.
And something I learned the hard way is that I needed
to use my company email leapyearlearning.com
instead of my personal email, myname@gmail.com
because Google doesn't allow the Zapier integration
for just a standard email.
So once you have your work email connected, you hit allow.
We have now connected our work email, continue.
Here we have a wide range of possibilities depending on
what we are trying to accomplish,
but for the purposes
of having a draft email composed
by chatGPT ready to send,
by the time you open up your email,
we're gonna go ahead and click inbox.
Here, it'll test our trigger.
When we selected inbox, we hit continue.
Now we go into the test window.
Now for the test window, I wrote myself an email so
that I could see if Zapier is indeed picking up emails
from leapyearlearning.com.
So here I have the email that I composed.
I'm interested in learning more about AI.
Would you be able to explain some best practices
while using chatGPT?
Best, future customer.
So this is the email that I wrote myself
for the purpose of this example.
We're going to go and use this, so we hit continue.
Now it wants to know what is the second step here.
The first step, the trigger is an email coming into
the @leapyearlearning email address.
So a new email comes in to that specific email.
What do we want to happen?
Well, this is where you can get creative.
This is where you can really build a custom pathway
incorporating all of your different workflows.
If you need to send the information of the email to Slack,
to a Google Sheet, to Google Drive or Dropbox
or any of the over 5,000 different apps available,
Shopify, you name it.
This is the place where you choose what's next.
Zapier has its own built-in tools.
If you need to design a specific path, if you wanna filter,
only proceed when a certain condition is met,
you might use this filter.
Say if you have an intake form for a client
and they fill out the description of their project,
and you could say, if they don't fill out a description
of their project, then you will not go down this long chain
of events because maybe it's only relevant if they were
to give you that information.
So you can change the formatting.
You can choose a delay in case you only want new
announcements coming at a certain time of day,
and they have over 20 different tools that can be used in
between going app to app.
For the purpose of this relatively simple example,
I just want a new email to come in.
I want chatGPT to generate a potential response,
and I want that response waiting for me in the draft of
that email when I open up my email.
So let's go ahead and go to OpenAI.
Now you can select OpenAI like this,
or you can also go to chatGPT.
OpenAI obviously is also incorporating more than just
chatGPT while chatGPT is just chatGPT.
Right now I prefer the OpenAI option
because it has a little more customization to it.
So here we go, OpenAI.
We're gonna choose the event and we want to send a prompt.
Send a prompt to chatGPT.
We select send prompt.
Now I'm gonna hit continue.
The first time that I set up OpenAI with Zapier,
I needed to input openAI's API key into Zapier.
So I'm gonna show you how to do that now.
Here we are at platform.openai.com.
The layout will look like this,
and you can go over to personal and click on view API keys.
If you haven't created a secret key, you would click here
and you would name it, and then it'll give you a key.
I'm not gonna show you my key
because everybody's key is personal.
You wanna keep this information to yourself,
but what's important is once you've created a key, you want
to click on it so that it shows you the whole key.
You want to copy that
and you're gonna paste that into Zapier.
Once you've inputted your API key into Zapier,
you can hit continue.
Here we're gonna dive into the details
of the prompt we're sending to chatGPT.
So as you can see, under model, it says,
we recommend text DaVinci 003 for most tasks.
So let's go ahead with the default on text DaVinci.
Now we get to the prompt.
Now this is the prompt that we're going to give ChatGPT.
So you could say, please write a response to this email,
and we're gonna see these different aspects of the email
that we selected.
So we can see the body.
This is the text of the email.
We can see the subject HTML, the date, the who is it from,
the email, who's it from,
and we can select any of these different options.
For the purpose of this, let's select the text
of the email, the body.
Now you could alter this prompt
to be whatever is most beneficial for you.
You could have chatGPT write three
or five responses to an email
or a response of a certain length in a certain tone
or whatever it is that you're looking for.
But for the sake of this example,
let's just keep it at this.
We go into temperature next,
which I usually just leave alone.
We have our little descriptor here, which you can hit more
to expand, you would click 0.9
for more creative applications, so on and so forth.
I'm leaving this as 0.7.
You can input a maximum length if you want.
If you don't want your answer to exceed a certain length,
you can initiate some stop sequences if you want.
This top P is an alternative to sampling with temperature.
You can read about that here.
I just leave this at one zero and zero hit continue.
Now we can test if the body
of the email is making its way to chatGPT.
Here you can see chatGPT responded to the prompt.
So this was a success we got from the email into chatGPT.
Now we can publish
or we can create another action.
The trigger is an email comes in, the next action is it goes
to chatGPT, and now the final action will be
that I want chatGPT's response to be sitting
as a draft in my email.
So let's go ahead and select Create Draft.
You could have chatGPT, reply automatically.
So an email could come in, it could go to chatGPT,
and it could just send, you could select any
of these different options.
But for our use case, let's hit create, draft, continue.
Yes, I want the same one @leapyearlearning, continue.
Now, what do we want the subject of our email to be?
Well, let's take that subject from the original email
and let's just have it be the same.
So the subject is going to be the same
as our original email, AI learning.
Who is it to?
Who do we wanna send the email to?
Well, let's click the original email
and let's find the email of the person
who sent the original email.
So sent emailing it here.
You could CC, BCC.
Now we choose from.
Who is the email from?
Well, yes, hello@leapyearlearning.com.
So if we hop up to from name
to tweak this just a little bit, we're gonna go ahead
and select from name from the original email here,
and it will populate with the from name
that was included in the original email.
Now, let's decide on the type of body we want
and we just want plain, we don't want HTML.
Now we have to decide on what the body is.
So here we're gonna go to ChatGPT
and we're going to find ChatGPT's response.
We select the response, which is here,
choices Text when using chatGPT, et cetera.
This was the response.
It's pretty obvious because all
of these are very short answers, and this one is the prompt.
Now for signature, you can click in this top bar here.
We go over to custom and insert some text.
We'll say best, Leap Year Learning team.
Now we go down here, you wanna choose Inbox,
and you could decide if you want
to include any attachments or not.
But for the purposes of this, I do not.
Now we're gonna test the action.
So in order to test this, let's hop over to that email.
So sure enough, we have a draft already in our email.
So you click AI Learning and you can see
ChatGPT's response is already waiting in this draft.
So now we hop over to Zapier
and you can publish your Zap.
Now we can see this Zap is on.
If you wanted to rename it, you would click the three dots
and say, email draft Zap,
and now the email draft Zap is ready to go.
It's on, which means every email that comes into
that email address will automatically generate a draft
that is prompted by chatGPT.
If you don't want to enable this quite yet,
you can turn off your Zaps.
That's just one relatively simple,
but extremely useful example about
how you can integrate Zapier with AI,
with chatGPT to create a workflow
that just saves you an enormous amount of time.
Obviously, the trigger action can be anything
you can think of.
You could say anytime you star an email
that it'll send to chatGPT, and then it'll create a draft
or something that might be a little bit more useful for you.
And you don't have to stop there.
You could send something to chatGPT.
You could also have a draft appear,
and you could have chatGPT populate a Google sheet.
So suddenly you have this draft that's ready to go,
and you have a Google sheet that will keep filling out
with all the different outputs that chatGPT is creating.
So there is a near unlimited workflow here, depending on
however you want to customize these tools.