This video demonstrates how to build a fully automated email system using GPT, Notion, and Make.com by creating a backend database in Notion to collect emails, setting up Make.com automations to watch your inbox and pull emails into Notion, creating a webhook to communicate with your GPT, and configuring Zapier to send post requests and update your database when you reply to emails, allowing you to fetch emails, draft responses, and send them all within ChatGPT without leaving the interface.
Automated Email Management in GPT with Customized Actions Workflow
Added:in this video I'm going to show you how to build a GPT that allows you to pull real emails from your inbox draft replies and send them without leaving chat GPT this can be accomplished by using the actions feature and I'm going to show you step by step how to get it done in this video first I just want to show you how it works and that you don't even have to leave chat gbt in order to accomplish this so I have this big button in my GPT that I added called Fetch daily report once I hit fetch Daily Report what it's going to do is scour my inbox and it's going to connect to make.com to go to my email collection system and then it's going to actually pull real emails from my inbox this is not information I put in the custom instructions this is live data that is coming in and as you can see I have six new emails in my inbox and chat gbt asks me which one do you want to tackle first all I have to do in order to respond as given a number so I could just say five for instance and what I have chat gbt do is draft me up a couple of different responses it gives me the entire email details from the subject the sender name the sender email and the email body and then it gives me those suggested responses uh showcasing different interest or maybe politely declining whatever that email has so as you can see it says option one express interest and request more details option two suggest a call option three decline politely and then all you have to do is type in which option you want of course you can revise these options but I could just say for instance option two and when I say option two what it will do is actually send that email for me and create a draft reply in the exact same thread so all I have to do is hit confirm and without leaving chat gbt it says your response has been sent to Jamie regarding the sponsorship opportunity for the AI webinar series and then we just go on and tackle the other emails so now I can just say partnership opportunity and this just speeds up the flow of emails so much you can really customize this thing to make it respond like you as well but I just really love the speed because you can absolutely rip through emails when all you have to do is type in numbers and let chat gbt do the work of sending them for you and drafting up good responses every single time so I'll hit confirm and in a matter of 15 to 20 seconds I've got two emails sent with the help of this GPT and as you can see this is a real email inbox I can have these emails send automatically or I can make them as draft replies so what I did is made them drafts so anytime I send off an email from here it will create a draft in that same thread responding to this specific email this is what we're going to be building today that's what this video is going to be about and I am going to show you literally everything how it's working behind the scenes how to build it and how to get this up and running for your work life or your personal life now if you're someone who wants to FASTT track this process and you don't want to just sit down and build out the entire thing alone then I recommend joining my AI foundations Community where I have all of the resources for this template if you go to the classroom and head down to the GPT automations as you can see there are many more different automations I'm going to be adding in this community as well and probably not posting on YouTube but what I have here is a 8 module process of me building this thing out and I don't only build it out with you and really Hold Your Hand step by step but I also give you a bunch of instructions to copy I give you all of the schema that you're going to need to use in order to get this up and running and I also give you the notion template that you can just download rather than having to build here and all the make blueprints that come along with this so you don't have to build out these automations alone and from scratch I'll leave a link in the description that will look something like this and the top pinned comment that will look something like that if you want to join I highly recommend it it's much more than just building out this automation I mean the community has an entire classroom of 75 modules a community that posts about news every day AI techniques and so much more and we also have live calls so definitely check that out if you want to speed up this video and also if you want to stay in tuned for future automations let me show you the back end of how everything is running so what we have here is the first automation that we're going to build this watches your email inbox and creates a page in a notion database we're essentially creating a new inbox in our notion that way we can pull in all of our email and all of its contents to our GPT it's much easier doing it this way rather than trying to pull directly from your inbox so I'm going to show you how to build this automation I'm going to show you how to set up your inbox on notion and then we have this automation that we're also going to be building out and make and this is how we're actually contacting our GPT in order to pull information from our notion database and it will bring it back into the GPT for us again if you don't really want to build this we have all of these blueprints in our school community so you can just come down here import blueprint choose file upload it open and then it's pretty much built for you all you have to do is make the connections as I show you in the tutorials and the last thing we're going to be doing is connecting to zapier in order to send a post request to our Gmail and reply to it and then update our notion database item from not reviewed to replied so that it moves into the replied section here we're also going to be building a GPT I'm going to show you how to easily come up with a name profile picture description instructions and I'm also going to show you some techniques for uploading knowledge that way you can really get these emails custom also we're going to be adding in two sets of actions once receive our emails and ones to post our emails now the very first thing that you want to do is create a notion account you can do this for free and you want to create a page for notion an inbox in order to collect your emails I'll show you how to do that now make sure you get to an empty notion page and you can name this whatever I'll just name it the inbox of Drake and then I can make this page full width and then what I want to do is create a backend database so I'll just type SL page at the bottom I'm going to go make this a table and then you can name your database this is where all of our emails are going to be stored and each row is a page I'm just going to name this the mail room I can give it a nice icon of some mail right here maybe I'll do that little paper airplane that looks good and now we need to create some properties for our database these are going to be all the items that we're pulling into our GPT so first we obviously want a subject so I can just rename this text field to subject and that will also be the title of our notion page next I'm going to click on this property that says tags hit edit property and make sure that type is on select here I can just name this status and then I can add some properties for that status of not reviewed and then I can add one for replied and we can just go those two statuses right now and we'll just keep it simple you can even change the color of them if you'd like red not reviewed we can make replied green I'm going to hit this plus button and create a new property and I'm just going to type in text on the side here and I'm going to name this property sender email that way we know who sent the email and we can also just duplicate this property right here and have sender name that's important and then another property we want we can actually just duplicate the sender name property and then just name this thread ID this is where we're going to store the thread ID for our Gmail account beautiful those are all the properties we need now let's get a nice front-end view of this backend database I'm just going to go back to my homepage here on the inbox of Drake I'm going to type in SL2 columns create two columns here and I'm going to type in slash callout and on the other side I'm also going to type SL callout here are going to be my backend databases if I ever have multiple databases I will store them here and actually what I want to do is just drag this all the way over and now we can create a linked view of our backend database so I'm going to type in slash create and linked view of database will pop up and make sure you map it to the database you just created so I'm just going to type in mail room and select mail room now it's pulling this database to the front I can hide the database title I can rename this view to not reviewed these are going to be the emails that I see that I haven't reviewed yet and I can give it a little Emoji maybe an X in the cloud beautiful and I don't need to see the thread ID here so I can just hide that by right clicking it and hit hide and View and then you can drag these properties around and position them really however you want to position them that will be good for now and I want to add a filter on this view so I only see the emails that have a status of not reviewed so what I'm going to do is filter that out for status and then select not reviewed and now I am going to duplicate this view of not reviewed by right clicking and hitting duplicate and then I'm going to change this to replied so I know that I've actually replied to those emails and when our database is filtering itself it doesn't pull in the same email to our GPT twice going to have a little check mark for replied and I'm going to change the filter up here by hitting those three lines from not reviewed to replied beautiful so now we have a not reviewed and a replied category and what we can do now is we can actually pull emails into this database from make.com so what we can do is we can go to make.com now that our database is set up and we can hit create a new scenario here what you want to do is you want to connect your Gmail account so type in Gmail where the modules are and then select Gmail and we want to watch email so that whenever a new email is in our inbox we can pull it to that notion database we just created so you probably will not have a connection so what you want to do here is hit add and then you can name it whatever you want I'm going to name this tutorial Gmail and I'm going to spell everything wrong going to rename that and then hit sign in with Google make sure you're doing this on a non Gmail account unless you want to go through a lot more of a process and connect to the Google Cloud API which is a pain I recommend just doing this on a work email or an email that isn't connected to Gmail so I'm going to do it on one of my work emails here and then I'm going to hit continue and allow and this is going to connect your Gmail and your entire inbox to make.com so you can manipulate it here the next thing you want to do is select a folder for all of your emails so what folder do you want this automation to watch and pull emails from well I like doing all mail but if you have labels or different things you organize your inbox with then you can select those but what I want to do is just select all mail and we can just have a simple filter with the criteria being only unread emails so that you're not pulling in any red emails as well so I'm going to make that only unread we can leave this as no and I'll make maximum number of results 20 this is how many emails are going to be pulled in I am just going to hit okay and okay again this module is set up now we need to connect it to our notion database so we can pull in those emails so I will select add another module here and then I'm going to hit notion and what we want to do with notion is we want to create a database item so I'm going to select to create a database item and then here you're going to want to add a notion connection so you can hit add connection type notion public and you can name your connection here so I'm just going to name my connection and hit save and then you need to connect to your notion database that we just created you need to give make access so I'm going to hit select pages and I want to give access to the inbox of Drake so that it can manipulate and add pages and pull content from that database and I'm going to hit allow access this is going to give make.com the reins to your notion page then what we want to do for database ID is go grab our database name exactly how it's spelled and we can just do a query search here and paste in our database name and it will autofill our database ID if we have our page properly connected here we can add in things from the Gmail that will be automatically filled in once a page is created and we can use makes Dynamic field function in order to do this so for subject what you want to do is Select in here and you want to hit the subject of that Gmail for sender name same thing you just want to select sender name as you can see that make module over there for Gmail is blinking that means you're pulling information from that sender email you want to type in email address you don't want to type it in you actually want to click it For Thread ID make sure you pull in that thread ID all of these things are labeled in here once you actually click in the field you can see that this automatically has all of this stuff so down here at the bottom it says thread ID you want to select that that way you can actually reply in the thread and send rather than sending a separate email for status we just want to put that on not reviewed and then we can hit okay and you might be wondering what are we going to do with the body content of the email we've only pulled in subject sender name email and thread ID well that's what we're going to do in The Next Step so we want to create another notion module actually so you can hit that plus button and hit notion and what you want to do is append page content so you can type that in append a page content that's is the module you want and this is going to actually append the body content of the email to the body content of the notion page down here because in these properties they don't have enough character room in order to fulfill that email request so up here what we want to do is we want to pull our page ID from the last notion module right here and that's the database item id database item ID and Page ID are the same thing so we can pull that and then we want to add a Content object so you can hit add item for the type we want it to be paragraph text we don't want heading ones or heading twos let's just make it paragraph text and from there it's going to have you add another item for this paragraph text so now that we've selected the type that we want we want it to be typed in paragraph form so if I come in here and type this is paragraph form we don't want it to be typed in heading form like this so we're just selecting the type but now we have to pull in the content right here that we actually want in that paragraph form so I can collapse this notion module and we want to pull the body content of this email so we can either pull the HTML if you want to get into it or we can just pull the text content for now I'm just going to pull the text content and that's all we need to do there we can hit okay and you can rename these modules if you want in order to stay organized so I can to say watches emails here I can put creates page for emails and here I can put adds email body to page if you just want to stay organized and now you can hit save I would make sure to definitely hit save as you're going so you don't lose your progress and here you can actually turn on scheduling and set schedules at certain intervals if you want so that it's pulling from your email box every 15 minutes every 10 minutes whatever it is in order to add it to your database for this tutorial I'm just going to make sure that I just hit run once and I can pull in emails whenever ever I'd like I'm not going to schedule it out since this is my example page but what you want to do now is go send yourself a couple of test emails to the email that you have connected here maybe just two or three that way you have some information to pull in once you're done with that come back to the tutorial and we can begin actually sending data to our database on notion here so hope you've sent those emails if you did now make sure you save your automation here and then just refresh the page so we can get a clean start and you can actually pull in those emails that you just sent yourself I'm going to click in here and then I'm going to rightclick this Gmail module and hit choose where to start we're going to run a test automation to see if our progress has paid off I'm going to hit choose where to start and select the first email here you're going to be able to select the emails you just sent yourself and let's just say since these are all of my emails it's okay but I can select this email and if I select the third one down then it will pull in everything above it so if I select eight down it'll pull in eight emails but since I'm selecting three down it's going to pull in three only if the limit that you put in this module is greater than the amount that you're selecting so I'm going to go three down and then I'm going to hit okay and now you can run this once to see if it's pulling the content to your notion Pages as you can see it's going to run three times since I had three emails lined up and when I go to my inbox of Drake as you can see all of these emails once I refresh are pulling in just fine and keep in mind they're not in the replied cat category because we set up that filter to only have replied emails in here they're only showing up in the not reviewed section and when we hit open the body of the email is down here on the page beautiful next what we need to do is for one you can rename this if you'd like for watches emails or whatever you want to name your make automation just to keep yourself organized I'll just name that watching emails or watches emails rather and then what we need to do is we actually need to create another scenario and this is going to be a scenario that communicates with our PPT via a web hook and then searches our notion databases for all the items that we have within and all the only and only the ones that are on not reviewed so hit create a new scenario in the upper right hand corner and then what you want to type in is web hooks once you select web hooks what you want to click is custom web hook so I'm going to select that now and here what you want to do is hit add and then you can just name this really whatever my tutorial web hook and then I'll name it ECS for email collection system system hit show advaned settings turn on get request headers and get request HTTP method and then select save right now it's listening for data but we do not have a data structure for our web hook yet so we will just ignore this for now by hitting stop and we're going to redetermined so I'm going to hit add add and then select notion and we want to search objects so type in Search and then object should come up you want to select that and you can connect it to the web hooks if you want uh actually right now what we'll do is we will unlink these and drag the lightning bolt onto notion so we can just mess around and pull in objects from our notion database click into this module and let's get it set up you want to find your connection you set up in the beginning the one that watched the emails and threw it into the notion database so I believe mine was tutorial Drake ESC so I'm going to select that connection and then for the database ID you want to do the same thing that we did you want to go back to whatever you named your database I named mine mail room and you can just do a query search here of mail room when you have your connection all loaded up and we have another limit down here at the bottom this is how many times or how many objects it's actually going to search so if you want to search 20 emails and pull in 20 to your GPT or whatever the number is and I recommend you do that or just put your maximum limit for how many times you want this thing to run and for filter we want to select the filter of status and this drop- down beneath it we can put equals and we want it to say not reviewed because that's what our Select Property is and we only want the not reviewed emails coming in through these objects so make sure you type it in the exact way your status property is typed in and next after that status what you want to do is add a sort so I'm going to hit add sort and then I'm going to go timestamp created time ascending and then I'm going to hit okay and now we can run once to check if our objects are pulling in here so I'm going to hit run once and as you can see we have all of our Pages we have three bundles in here which means it pulled in three different emails because each email is considered its own bundle in our inbox so that's working good we can move on to creating the next notion module the next notion module we want to create is a list page contents because list page contents is going to actually pull the body of that page and the body of the page if you remember right when we open contains the actual email itself so we need to pull that in right now I'm going to select on this module right here and make and what I want to do is actually map the page ID so we can map it dynamically to the pages that are coming in from this module so where it says page ID I'm just going to select that and we can set our limit once again to 20 if that's what we're doing or however many max number of results you want to come in and then we can hit okay after we have list page contents what we want to do is one more time just run through this so we can pull some content to that list page contents that way we have some information to pull for our next tool which is going to be a text aggregator so go down to your tools section and type in text aggregator this is going to aggregate multiple strings of information into one text we can click into this tool and make sure the source module is on search objects we can hit show advance settings for row separator we want new row and we want to group by bundle order position from list page page contents after this we can go down and we can label everything so here we want to label all of the information we want to pull into our GPT starting with subject so we can type in subject put a colon and then enter down and then we want to find subject under the search objects module and that will be under properties value subject text and then we want to select content we just want to do that with pretty much every single one of our properties here so next I could put sender name enter that down and then just pull in the sender name from the search objects module text and content next we want to pull in sender email enter and then we want to do the exact same thing it's really just rinse and repeat here with all of our properties next we can do the email body this one's going to be a little bit different since we have to pull from the list page contents module instead of the search objects module so I'm going to open up the list page contents module go under the paragraph text select down Rich text text and then content that's our email body I can now close that since we're done with it open up search objects and now we need a couple more things for maintenance so I'm going to enter down type in page ID and then I'm going to enter then I'm going to find this page ID which is right here up top next thing we need is a database ID so I'm going to type in database ID call in enter I'm going to go under the parent section and find database ID here the last thing we need is the thread ID so I'm going to type in thread ID and this is the thread ID from the Gmail that we pulled in from a couple of automations ago our very first watch email automation that's going to be find found under search objects uh properties value and then it's going to be under the thread ID section right here because this is a property we have in notion going to drop down text and hit content and now all of our data should be pulling in dynamically here I'm going to hit okay and it should connect to everything we need one more tool here in the flow control and that is an array aggregator you can find array aggregator just by typing in Array and once you type in Array just hit flow control and it will pop up as an array aggregator and what we need to do is make sure the source module is on text aggregator and select key and text for our aggregated Fields I can hit okay and now this thing is pretty much ready to go but we need to determine our data structure of this automation so that the web hook knows what information to give to the GPT so we can do that by clicking into our web hook and make sure we hit redetermined data structure then I'm going to the part in my classroom where I have my URL data structure for web hook and all I have to do is replace the path you can copy this if you want and where it says your path here for me I'm going to copy my URL path which is this right here and I don't need the back slash included because that is already included for us in this address but make is essentially listening for us right now to send off this request with our unique database ID in here and what we have here is just defined properties that we want to send our GPT percent 20s equal spaces and we just have key value pairs right here so sub equals your space subject space here and we separate those parameters with an Amper sand but that should be good and when your query parameter URL is ready make sure that you just hit enter make sure you define all your properties similar to how I have and this is the structure you want now when I hit enter and send it off as you can see we get a message that says accepted so when we head back to our make automation you can see that the web hook has been successfully determined so I can hit okay move the watch icon onto my web hook and then I can connect the notion module to that web hook beautiful now we need one more thing and that is a web hook response we can do the web hook response by selecting the web hooks module down here and going to actions and selecting web hook response this is the information that's going to be pulled into our GPT via this web hook response so what we want to do is we want to pull information from the array aggregator since that was the last module in this sequence we can leave status on 200 and now as you can see once we determined our data structure when I click in here we now have all of these unique properties that we can pull from and use what we want to do in the body though is we want to head under the flow control array and we want the text and each array text is going to be one email so if we want 20 emails ported in here then we're going to need to do this 20 times and just replace your numbers with what email number it is so I can go text three and you can see it's a very similar process so I could just essentially copy and paste this and I could just keep going down the list all I want is a number in between each one signifying which bundle it is and I'm just going to literally go until I hit 20 array text and I'm going to have them labeled with that number in between just like that so now we have 20 of these in here that means it will give me 20 Max responses just depends on how many emails you want make sure you change it accordingly and that's all good to go so now I can hit okay and in order to test our web hook what we need to do to see if it's pulling in data is just to send it off again and we can send it off again just literally by copying it going to a new tab and sending it off this time we're not hitting red DET data structure we determine the data structure with that first sendoff and we can see if it works with a second sendoff and as you can see it says there is no scenario listening for this web hook simple fix all you have to do is go back to your make and make sure you turn scheduling on and then hit save once you do that now immediately as data arrives this web hook will trigger so let's send data to it manually right now us manually sending this long URL with the query parameters is actually us triggering the web hook but instead of triggering it with the GPT we're just triggering it ourselves so I'll send this off again and it should reply back with in information from our notion database so as you can see it's replying back with subject sender name sender email email body regards and you're replying back with all the emails in our notion database beautiful so we know that the web Hook and the web hook response is working so now that we have this done we can save this Automation and that's beautiful we can rename this if we want to call it maybe web hook to GPT and now we need to connect this to a GPT so this is the part where we're actually getting in our chat GPT space and setting up our fairy fun GPT we're going to take a break from all of the data and all of this stuff and we're going to go to the GPT here so I'm going to go to chat GPT and I'm going to in the upper right hand corner select my gpts and from there what I can do is I can hit create a GPT here we get the name our GPT descriptions instructions conversation starters and all the fun stuff that's going to make this email inbox come to life what I like to do is I like to open up another tab of chat GPT and instead of being in the gpts I like to start a new chat and then I like to tell chat GPT to give me 10 witty names for an email virtual assistant and I can send that off and it's going to give me those 10 witty names for a virtual email assistant so we can just call this the reply wizard beautiful and I can hit the quotes on this and say give me a on sentence description talking about how cool this is and I can send that off so now we have our description and our name just like that so I can paste in the description real quick to our GPT and I can make sure that's capitalized beautiful and now I can copy in the name as well so now we have a name and a description and what I like doing for the profile picture is just copying the name and the description and going to grock and I love using the flux one model on here so I'm just going to say generate me a minimalistic logo for my brand and then I'll just paste in whatever it is uh that I have for my name and my description here and it will generate me a pretty solid logo usually on the first try just like that we have reply wizard so now I can save this image and I can actually use it in my GPT and now I'm going to upload that reply wizard photo and just like that we have a beautiful logo description and title without even thinking about it for instructions right now we can just skip that for a conversation starter though we can say something like fetch emails and this will be the sendoff command for chat GPT to fetch emails for us then we want to add in schema so I'm going to go back to my uh resources that I have here these help me out a lot the schema is going to allow us to connect to make.com and actually call our web hook with this GPT so if you remember how we pasted in the web hook to a URL that's essentially what all of this is doing except it's aggregating that data from the URL and allowing us to contact and Trigger that web hook in chat GPT so I'm going to copy that and then I'm going to go to our GPT that we just created and I'm going to hit create new action and then I'm going to paste in that schema and here what we want to do is we get an ER but that's just because we need to put our proper path in here for our web hook and we can do that by going back to the integration that we made into notion from web hook to GPT and we can click on our web hook and grab our unique path in the back half of our web hook after the backslash here and we actually want to add in the backs slash so I'm going to hit contrl C and then I'm going to go to our GPT and under pass where it says your web hook here I'll put this schema down in the description what you can do is you can paste it in just like that boom now we have the ability to actually test to see if it can fetch those emails and we don't even have to have any instructions in here right now so I can hit test and what we're going to have to do is hit always allow on this or just allow whatever one you want and it's going to call that HTTP endpoint and talk to make in order to pull in all of our emails so the API call returned three email entries with the following details and then it lists out all three of those email entries just like that straight from our notion database so if I were to add in another property here and say hello and then I were to put example example.com actually that's for the sender email so I'll put that there and then this person's name can be example and then I were to put some body content in here like yo what it would do now if I tested this out it was it would is that it would actually pull that in so if I hit test again what it's going to do is pull in not three emails but four since we added it to our notion inbox and remember our notion inbox can be updating every 10 minutes with new emails that are arriving if we set it up that way in the schedule section so let's take a look at our GPT see if it pulls it in as you can see it's pulling in now our hello with our body that simple beautiful so now that we have that let's actually set up some instructions to make this GPT a little bit more custom you you can really make these instructions however you want I just have simple instructions in my classroom so in my instructions I'm going to paste them in and now it knows when I hit fetch emails to respond in a certain way so beforehand it just responded in code blocks and kind of talked in this weird way and didn't really have a fun way of walking through my emails but now I don't even have to go hit test right I used to have to go in here and hit test to fetch my emails but now I have this custom button Buton with functionality that says fetch emails and it will work based on my instructions so as you can see that's all I have to do now when I publish this GPT I can hit fetch emails and it's going to fetch all my emails and give me a snippet of what the email says who it's from in the subject line as well and it asks me this custom line which email do you want to tackle first the system is simple I type in a number and then it gives me the full email and suggestions on how to respond that's just something I like setting up suggestions on how to respond in the instructions and also just the full body of the email once I give it a number in which I want to respond to now we have to go to zappier and set up the zappier Automation and that's going to be another web hook that we can create in our GPT to actually send a post request what we just created was a get request and this get request gets information from another source we want to post the information somewhere so we're going to use another HTTP method with another web hook called a post request so let's do that right now head over to zapier.com then select create in the upper left hand corner and then you can select zaps and here it's going to try to have you work with AI but you can work with me since I'm AI foundations and we can select the first event what we want to select here is web hooks by zappier and this is going to be an event that gets triggered from our GPT for app an event we want to go down to event and select catch hook and when we catch hook the trigger we can leave empty test we can just leave that open right now and now that we have our web hook set up in zapier before we hit test trigger let's send some information to this web hook URL so that we can pull it for the other steps what I'm going to do is go back to my school community and copy my schema for zappier web hook I'm going to Triple click hit contrl C and then I'm going to take that schema and then I want to add another action I'm going to hit create new action I'm going to paste in the schema and what you're going to notice is we have another red error and that's because we need to add in our web hook path right here where it says your hook here and so I'm going to go back to my zapier and after zapier.com I'm going to copy from the back slash all the way to the back slash hooks catch numbers and then numbers and letters I'm going to hit contrl C head back here and where it says your hook here I'm going to paste in my zapier web hook now I have a method of post what I can do is this post is going to be able to send all of our properties that we have to our zappier account so I'm just going to test that so we can get a response to that zap because right now it's listening and it's connecting request so as you can see when I hit test trigger it says no request found but when we go back to our GPT and hit confirm on this post method after hitting test here it says that it's successfully been sent to zappier here with the following information beautiful so now we can go to our Untitled zap and if we refresh this page right right here by hitting test trigger one more time we now have a new request in here and it has email address subject body thread ID page ID database ID it gives us everything we need to dynamically pull in for the next step when we're creating Gils and updating notion databases so I can hit continue with selected record where I'm searching I'm going to search for Gmail do not select Legacy just select the regular Gmail and for your Gmail event what you want to do is Select that and hit create a draft reply here is where you can kind of choose your path into what you want to do so you could create labels reply to emails send an email but I like creating draft replies so that I can reply to the actual thread and then I can send it when I'm ready and under account what I want to do is hit choose and I can just connect a new account and connect the same account you connected in the very first scenario connect the account that's actually being watched for those emails so you can reply back with your same email then I'm going to hit continue and allow and after that I can get into the action so I'm going to hit continue once again and for thread we now can go to custom and pull in the information that we just tested with our web hook so For Thread ID obviously I just want my thread ID and for the two this is who we're going to send it to we want the sender name right so we want that email address beautiful lastly we just want the body in here so I can enter in and select body so these fields will be dynamically updating as new information comes in from GPT responses and as we send off these drafts next I can hit continue I don't have to test this I can just skip the test and then I need one more thing before we hit publish and that's updating a notion database so I'm going to hit add step one more time and type in notion I'm going to spell it right though that would be a good start when I select notion we can choose an event and we just can type in update and we want to select update database item after we select that we can hit continue now we need to choose our account just like we did for the connections in make I'm going to hit choose connect a new account I'm going to go to my workspace hit select pages and then scroll down to the page that I want connected which is the inbox of Drake and then I can hit allow access from there I can hit continue once again and for Action where it says database I can now pull in my mail room database just fine and hit mail room and we can just choose a value from our mail room and remember the values in our mail room the pages are the emails that we get pulled in so we can just choose one just for the time being we're going to change this back to those custom properties but first we want to go down to status and then change that to replied and now we can go up and change this to custom catch hook database ID and then we can do the same for page ID custom catch hook page ID so now when we do run this that field will be edited just fine we can hit continue and then we can skip the test now we can finally hit publish and this thing should be up and running all good to go so that's very very exciting stuff and of course you can add a filter in between here to make sure that the draft reply goes through before updating the database item but I'm going to leave that alone for now what we need to do next is we need to add in some instructions for our GPT in order to have these actions be run properly and in order for them to go through on an input output basis I can hit back now and then when I open up the instructions what I want to do is I want to add a few more things I'm going to go to my adding make schema and I just want to add in some instructions for fetching emails and for getting and for posting emails in zapier so I'm going to copy these instructions down here and I'm going to paste them in to my GPT make sure that when you're pasting or typing in action instructions that you don't put any of your custom instructions beneath them these should be the last things in your thread in order for it to work best so I'm going to go back and then go to my adding schema to zapier property and then what we're going to do is take all of these instructions including the note I'm going to copy it in underneath the fetch emails for notion and just like that we now have a working emailing system in notion now that all of these properties are up to date I can hit close and then I can hit fetch emails and we can test this out so remember from our first automation we made in make right over here that watches the emails you can set this up on a schedule so it's automatically watching and pulling emails into your notion database at all times that email is just going to run on a schedule you can have it pull in every time an email hits your inbox every 1 minute every 2 minutes every 3 hours maybe every morning at 8:00 right before you check your email and it will pull them all into your notion database and then from there this automation web hook to GPT is running at all times you just have it on and immediately as data arrives which is us saying fetch emails it's going to run through this and give us this nice response from there everything takes place in the GPT so once I hit always allow to this make automation here it's going to run through this automation so I'm going to hit always allow and it's going to pull in all of the emails from our inbox in notion so as you can see it says here's a list of your recent emails it's going to give me all of those emails here beautiful nice custom message which email do you want to tackle first I can just Ty I can just type off a number three and send it off beautiful now we have subject sender name sender email email body and we get suggested responses so we're really just typing in numbers and responding in a very quick format in a very cander way so I can just type in option two send it off and keep in mind the only reason it's doing this with the three options and typing in a nice tone and kind of sounding like me is because my custom instructions that I gave it here now it's not necessarily going to sound like me yet but when you start adding in knowledge files and start uploading information like FAQs to your GPT that's when it really becomes powerful because you can have templated responses to certain emails that come in your inbox and you can have things really just set up in an in an easy fun way in order to get through your inbox in the morning much quicker than ever before so now I can hit confirm on this because I selected option two so now it's going to create a draft reply for option two and remember what email are we responding to right now collaboration on an AI research paper and as you can see it says your email has successfully been sent to Morgan expressing your interest on ethics research paper and suggesting a meeting to discuss it further awesome and it says would you like to handle another email if so which one you can have this message be custom to by adding in some more custom instructions here but I can just say any of them bring me one and I can send it off and while it's finding me this email I can go back to my inbox and as you can see I only have three in the not reviewed section now and one in the replied section because we replied to it and if I even go to my Gmail as you can see collaborating on an AI research papers up top and it says draft it has my entire email in here to Morgan that I wrote on chat GPT I can then just send it off very simple very beautiful and then you can just keep going through your entire email inbox like that it makes things so quick and so custom to your workflow so that's all I have for this video I've been in the process of doing multiple more GPT automations and the first place I'm going to post them is going to be in my AI foundations Community once again so if you do want to join this community if you go to the classroom here you get access to this custom GPT Workforce right when you join and it's going to be having all of my automations in here so I'm making a GPT response go into anything so I'm going to have your GPT pull into notion pull into Google Sheets pull into Google Docs and I'm also taking a bunch of requests from the community we have a presentations expert an actions Master Class coming up it's really the spot to be for artificial intelligence so if that interests you again I'll leave it in the description or the top pin comment but I hope this has helped re uiz the way that you think about gpts because nobody is really teaching this stuff on how to get information in and out of your GPT so I want to be the person that could bring that to you and show you that it's possible in a couple of steps I hope that this video was helpful for you I hope you can take it and apply what you've learned for more automations with your gpts and with that being said I will see you in the next video
Up Next

Automating Client Management: An AI CRM System with Zapier
@Adaeze-Automates
587 views•2025-01-31

Building Real-Time ML Pipelines with Feature Stores and MLOps Frameworks
@ODSCAI
5.1K views•2022-02-20

Bypassing Tor Censorship: Bridges and Pluggable Transport Guide
@Coding_ForEveryone
397 views•2024-06-11

Neural Networks Explained: Math, Layers, and Learning Fundamentals
@3blue1brown
21.9M views•2017-10-05
Related Study Plans & Knowledge Roadmaps
Structured learning paths in Artificial Intelligence














![สอนใช้ Make.com สร้าง Automation ลดงาน [ 2025 ]](https://i.ytimg.com/vi/iNynj54-lLw/maxresdefault.jpg)























