How to Add Custom GPTs to Whatsapp (OpenAI GPTs Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video I'll be showing you step by step how to connect your custom gpts to Whatsapp this has been a highly requested video because many of you have created awesome gpts and want to break them out of the chat GPT site and start using them in the real world via things like WhatsApp and get access to its over 2 billion monthly active users by connecting your gpts to Whatsapp you can tap into this massive user base and completely automate key tasks within a business like customer support or lead generation or even appointment setting for your business or for the businesses of your clients the issue with all this is that connecting AI assistants to Whatsapp can be an extremely painful process so I wanted to create this video to walk you through the easiest method that I've found so that you can get things set up and avoid the mistakes that I've made in my own experiences to show how this integration works I will be setting up a WhatsApp lead generation chatport for my own education business from start to finish and as always I will be giving away the templates the code everything that you see in this video at the end so that you can steal this build and start to use it in your own business or sell it to others if you're new to the channel and don't know who I am my name is Li otley and I run my own AI development company called Morningside Ai and I also run the largest community of AI agency owners in the world where my students learn how to make money by selling AI solutions to businesses just like the lead generation chatbot that you're going to build in this video let's get into it so what are we actually going to be building in this video we are creating a lead generation chatbot for my AAA accelerator program which allows people to ask questions via WhatsApp to my assistant which is how helping them to learn more about the program and then eventually go for a lead capture once they're ready to purchase which is going to grab their phone number and their full name and we're going to log that to a CRM using air table then we have the system set up that allows them to learn more about the product from a knowledge base I'm going to give it a document that you guys will get access to as well a document that has a ton of information from my website and elsewhere that tells the the AI essentially everything it needs to know about the program and allows people to ask questions about that before capturing their lead and allowing our sales te to follow up from there in order to create this functionality we need a few few things firstly we'll be using the assistant API writing that within repet and then connecting repet to mini chat and mini chat is going to send a messages automatically to WhatsApp I know that might sound like a lot but I've done 99% of the work for you you just need to download the templates and connect them up on your end and then you're ready to go it is worth mentioning for those that are new to the channel that what we are building today is different from the gpts that you've probably built in chat GPT on your own and go through the chat gbt Builder and creating them there what we are building today is different from that and that we are able to take this functionality that we create and then connect it to different applications in this case we are doing WhatsApp I've also got a video on Instagram I've also got a video on putting it on websites so what we are building allows us to create a GPT and then connect that functionality to wherever we want to put it now with the gpts you create on the chat gbt site it's locked within chat gbt and you can't start to use that functionality elsewhere so we are building with the assistant API to allow us to deploy to different channels like WhatsApp Instagram Etc and that's why I'm so big on teaching this assistant API side because it allows you to do so much more and create so much more value for your business and for other businesses as well when you know how to use it properly to start this build off you need to clone my replit which is going to be available in the first link in the description you can sign up to my resource Hub or log in if you already have an account once you sign up there then you can click on the replit which would be one of the links you should be greeted with this page you'll need to sign up to riplet and create an account it is free and on the top right you can click on this Fork button which is going to clone or copy my entire code base so that you can use it yourself and make a couple edits as needed so I'm just going to put Fork at the end of this I'm going to Fork the rapple give it a second to boot up and you'll see something like this which might look familiar to many of you by now I don't want to get stuck in the weeds trying to explain this because there's not much you actually need to modify but I will say if you hit to the functions. P file if you do want to change the document here's the knowledge based document as I mentioned this chatbot this lead generation chatbot has a couple of components if you go back to my three ingredients idea or concept for these uh gpts we have knowledge prompting and actions in this case I have given the prompting which is available in this prompt P file so if you want to change the prompting for your WhatsApp assistant you can come to the prompts file modify this and these changes will be reflected in the new assistant you can create so here's how you can change the prompting if you want to change the knowledge I have a document here on the left panel called knowledge. dox This is referenced down here in the create assistant function if you want to change the document you need to delete it on the left panel you need to upload a new one and then in the functions. P you need to change this document name to be the same as the one on the left panel so that's going to allow you to change the document and the knowledge component then we have the tools component we have the retrieval tool which is necessary to add the knowledge base so you have to have this if you want to have custom knowledge then we have the tools this is the lead capture tool as I mentioned this chatbot has a lead capture functionality this is the only thing I've put in it just to keep it as simple as possible so if you want to change your functions or your tools you can copy and paste this whole function into chat GPT and ask it for new functionality or new tools to be added to get this working on your end you just need to change three things before running this first thing we need to get an open AI key so I'm sure you know how to do this platform. openai [Music] you can create an account if you haven't already you can log into your account and then on the left panel you will have an API key section and you can click create a new key and copy that key as I mentioned in my last video if you want to use this properly and for it to work you do need to head to your settings and go to your billing you need to add a card to your account and you also need to buy some credits here by clicking buy credits you can add $5 or $10 so that it can charge your account properly and be ready to give you access to all of the latest models that will make this thing work so you do have to do that I will mention that now once you have your open AI API key you can head back to riplet scroll down on the bottom left to the secrets panel and then if you click on the uh edit button here the three dots and paste this in then you can get your open AI API key in there you can update the secret next what you need to do is get your air table API key so if you haven't already created an account you can go to my resource Hub there'll be a link to not only sign up to air table and create an account there will be a link to copy this base here that you can see on screen so this is what you'll need has the name the phone number for the lead capture and there's a button up the top corner here called copy base you'll click that and you'll be greeted with something like this where you've actually copied the entire CRM and you have it editable on your end so phone numbers names questions Etc to get your AIT table API key you can click on your profile in the top corner here click on developer Hub and then under this personal access token you can click create a new token and it's going to appear here you can copy that personal access token and then head back to repet and then again you need to click three dots on the air table API key delete it and paste in yours with the air table API key you need to make sure that it says beer space than your key this is something that a lot of people get stuck on and you need to make sure that you can click this eyeball button so it shows you the entire key make sure that it says capital b e a r e r Bearer space and then your long token if you haven't included Bearer space your token and then saved it then it's not going to work with both of those air table API Keys updated you can head back to air table and in this case we want to stay on this Developers page but click on the web API documentation you can scroll down to click on the Smith solar CRM that you've just cloned from my resource Hub then on the left panel you can click on the accelerator leads table then create records then you will see this URL here which is going to allow you to push and create new leads on your air table base and with this you need to copy it bring it back to this create lead function and then replace this section here so boom boom and we all ready to go with that we are ready to run our application for the first time it's important to note that this is when the assistant creation step happens and here's the function that we need to go over so the way I've set this up is that if there is a file in the left hand panel called assistant. Json as you can see here it's going to attempt to load the assistant ID from that file if there isn't a assistant. Json file meaning you haven't already run this app before then it's going to create a new one with the settings that you provided here when I run this app for the first time what it's going to do is run this create assistant function and as you can see on the left hand panel it just created a new file called assistant. Json inside this is where it's going to be storing the key or the identifier for the assistant that you just created so the assistants are a combination of knowledge prompting tooling and that all gets combined together when you interact with the open AI API it's going to create that assistant as a single being and it's going to give you back the ID to be able to talk to that programmatically later in your application so what happens if there's no assistant. JSO file meaning you haven't run the app already it's going to create a new assistant and save the ID here and then every time you run the app after that it's going to load from the file if it is there so in this case if I stop this app right now and I reboot it it's just going to read the assistant ID from that file which means that if I want to modify my assistant I want to go into the functions. py file and I want to change the knowledge document I want to change the tooling I want to change the prompting what I need to do is delete my assistant. Json file and reboot the app and it's going to create a new assistant with the settings save it and then in future it's going to reload that so that's how you can update and delete and manage your assistance within this application for those of you who are looking at this and feeling a bit overwhelmed and out of your depth I I have good news for you because my team at Morningside AI has been working on something extremely exciting and special for you all and it's called agentive the team and I are extremely excited to unveil some more details about what it is and what it does exactly but all I can say is that it will drastically simplify this creation process for you and take out all of this complex custom code and allow you to create it in a much easier way and start to implement the stuff into your business without having to deal with custom code nearly as much I fortunate enough to have a personal brand that attracts some of the best AI development talent in the world to come work for me so what we're about to put out is really the culmination of a ton of work that we've done over the past couple of months so I'm extremely excited to get this out to you all the good news for you is that next week we will be launching our beta test and it's going to be exclusively available to the first 500 individuals who sign up to our wait list for those first 500 who are quick you'll be getting 12 months of free access to agentive so I highly recommend you signing up to get on the wait list as soon as possible if you want to get first and free access to a platform that is going to drastically simplify the workflow that I'm showing in this video a ton more info on this is coming but I thought I'd mention it now so that you can get in on that weight list and get into that first 500 before it's gone down in the bottom right your screen should look a little bit like this and this bottom corner you should have a little red area here so don't worry too much about that that's just because what we're building it on is not a production grade or production ready server I do have a video coming on this so if you want to see how to actually deploy this to a server that can handle a lot of volume and actually be used in production in your business or for clients businesses make sure you subscribe to the channel because that's coming sometime next week and above you should see this not found web view don't worry this is what we're supposed to be seeing all you need to do is click on this new tab button in the corner and leave this tab here because this URL is what we're going to use and the next step which is setting up mini chat so that we can actually connect this to WhatsApp to get the mini chat integration with WhatsApp set up you need to head to my resource Hub and there will be a link to sign up to mini chat firstly so you can create an account and once you're signed up underneath that there will be a link to this template on screen so that once you're signed up and ready to go I'll put a a little video of me signing up and doing the sign up process for WhatsApp what you need to do is make sure you have a Facebook page page and a Facebook account you can sign up to mini chat using your Facebook account it's like a social sign on and then click on the WhatsApp option which will allow you to start to go through the process of getting a number and setting up the WhatsApp integration you need to create a WhatsApp business so you can just give a bit of information then there's a little verification state where you have to get the SMS code from mini chat put it in and then once you've done that you should see a little celebration screen showing that you've successfully connected this new Mini chat WhatsApp number to your mini chat account and you can start sending from it once you've logged in and created your WhatsApp integration you can come back to this temp PL page which will be linked on the resource Hub and then you can click the save to mini chat button in the bottom right it'll pop up with something like this so you can choose the account you want to save the flow to I'm going to view the flow and everything should be pretty much ready to go on here what you need to do is set up the trigger so the trigger is going to be what triggers this Automation in this case I want to click on WhatsApp and I want to have it on a keyword so you need to have the pro account in order for this to work because firstly we're using this particular trigger which is using a keyword but then also to do do the external request steps within mini chat you do need to have a premium account or Pro account I think it cost $20 or $15 so that is the price to set up this integration but if you're doing this for a business it's well worth the money in my opinion so to set up the trigger I'm going to click on new trigger go to WhatsApp and then user sends a message as keyword in this case I want it to be test and I'm going to click create down the bottom so this is going to trigger when someone sends this number a keyword test and now I can walk you through how this application actually works so we have a few steps here and each of corresponds to what we have within our repet but we just need to go through and head back to our not found a page that we opened before and we need to copy the URL including the https so copy the entire URL then head back to mini chat first step we need to do is create a thread and modify this URL delete the old URL and paste in the new one and it should be your url /st start don't worry about anything else you're good to go there we're saving the thread ID from this then we have hey first name what would you like to know about about the accelerator I would be happy to help then we are listening for a free keyboard input so the user can enter their input and we're going to be saving this to the last reply variable you can scroll through then we need to start the run and send this information off to open AI to start generating our response send it to our assistant with their settings and and how we've configured it to deal with this user input and generate our response again we need to come to the URL section and just delete the old one and paste on our new one in this case it should have SL chat at the end and everything else is good we're passing the thread ID that we created earlier and the last reply from the user and sending this off to open AI to generate our response then the final step here is checking the status of that request that we've sent to open AI so we keep checking keep checking keep checking and as soon as it's ready and they've cooked up our response and it's ready to get back then we can grab it and pull it back into our application I don't want to get too deep on this like I did with my Instagram one so if you want a deeper breakdown of all the nitty-gritty of how this application is actually working and the repet there'll be a link up here to my Instagram video which is kind of the same as this but a little bit more in depth if you want to know the ins and outs of the application then you can click up there once you've replaced this URL and you have/ check at the end we can save this and then with that we are ready to give this thing a world and the final step that you need to do to set this up is to come to this and assign this to a member of your team in this case we've got shaia and this is when there's an error that's picked up by our repet by our system it's going to assign the conversation to a human and make sure that no one the AI isn't trying to respond to to errors and stuff like that so we've got a human handoff step here once that's all done we can click the update button and a live version is been updated now we can go to our settings and go to our WhatsApp deployment and we have all the settings here so if you want to modify your WhatsApp business now it's set up with a mini chat you can come here in this case our connected number is this so I can copy this and I'll message them on WhatsApp now once we've pushed the update live we can click on this preview button and switch it to in WhatsApp then we can click the preview button here it's going to give us a link now I want to do this on my phone I'm going to copy this and text it to myself if I click on this link and it's asking me to open in WhatsApp which is great start a new chat and so right away I can delete this and I can say let let's check what our trigger was it's just test so if I go test if we go back to our repet we can also see what's happening in the background here and make sure it's all working correctly new conversation started hey first name in this case hey Sean what would you like to know about the accelerator would be happy to help how much oh I'm caps does it cost unintentional promotion of my accelerator here but it is a good use case so it started a run and there we go pretty quick responses as well that only took a few seconds sted plan 97 monthly um okay great what benefits do I get on premium so this is all pulling from the knowledge base here it looks like gble nonsense but you will get access to it on my resource Hub it's actually a normal document this is just how it's processed on repet and yours will look the same too if you modify it these actually coming back Really really quickly compared to my other tests so this is good so it's giv me back the premium exclusive benefits and at the end of it you can see here it's actually asking for my name and phone number with country code so this is going for the lead capture in my prompt section I have instructions here to uh go for the lead capture at some point in the conversation where it seems like they're ready to convert so it's ask me for my name and phone number I can say um Kim Poss plus 6421 667 great thanks Kim and our in our air table we have Kim Possible that's been added to our CRM ready for our sales team to follow up if you ever run into issues while testing this app be sure to come back to repet and check what's going on which will break down okay the Run was in progress and then it required an action which it performed successfully created the lead and then it sent the response back so everything should be displayed the way I've set it up it should be continually printing information as it goes through all of these responses and that's it for the video I've shown you how to create your assistant within rep I've shown you how to connect that to mini chat and then get mini chat communicating with WhatsApp as well knowing how to do this opens up doors to super powerful use cases for gbts but I get that some of you may struggle with the more difficult Parts such as on ripet and so I reminded that my new tool agentive is opening its doors to its first 500 members which will make this entire process that you've just gone through as easy as just a few clicks so make sure you head down to the description and sign up if you're one of the first 500 people you will get 12 months of free access for being an early supporter of us aside from that if you do want to learn more about building powerful gpts for your business or to sell to other businesses make sure that you subscribe to the channel because I have a ton of new videos coming including how to deploy these two production grade servers so that you can actually run this at some sort of scale and you can start selling it to businesses because what we've set up here in repet is good for testing but not good for proper live applications you can't wait for my next videos what you can do is join my AI business accelerator where we have some of the smartest and sharpest AI entrepreneurs all moving on this gpt's opportunity and sharing knowledge around plus I'm in there doing workshops on this exact kind of stuff multiple times a week as mentioned all templates and resources are available on my free resource Hub in the description so don't forget to check those out so you can get the repl the mini chat and the air table template as well as the knowledge based document everything related to this build is going to be available down there and finally if you're not already in my free telegram I'm giving away free information and and sort of my daily learnings and things that I'm discovering with these GPT so if you're not already in there and you want to stay up to date on things you can sign up with the link in the description and while you're down there leave a like on this video if you've enjoyed I've been putting a ton of work into these for you to show you all the different ways you can use your gpts so continue to support me let me know that you like this content please leave a like the video if you've enjoyed this video and want to know how to put your custom gpts on your website you can click this video up here where I go into depth on it but aside from that that's all for the video guys thank you so much for watching and I'll see you in the next one
Info
Channel: Liam Ottley
Views: 183,705
Rating: undefined out of 5
Keywords: ai automation agency, ai automation, openai update, gpts, how to create a custom gpt, create a openai gpt, openai, openai devday, ai tools, custom chatgpt, chatgpt, build custom gpts, openai gpts, chatgpt on custom data, openai function calling, how to make gpts, openai gpts tutorial, custom gpt tutorial, chat to pdf, assistants api, assistant api, gpt assistant, liam ottley, add gpts to whatsapp, How to add custom gpts to whatsapp, whatsapp chatbot, whatsapp ai chatbot
Id: icnPIXrLxv8
Channel Id: undefined
Length: 18min 39sec (1119 seconds)
Published: Sun Nov 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.