Transcript:<\/strong><\/h2>\r\n\r\n\r\n\r\nHi, guys. Welcome to another tutorial by prompt news. Today we’re going to be making a GPT-3 image creator right into your WhatsApp. So this is going to be similar to mid journey, stable diffusion, but it’s going to be powered by Dolly and WhatsApp. So no other applications in your way, just on your phone, make an image.<\/p>\r\n\r\n\r\n\r\n
Yeah, do what you will. So to start with, we’re going to need a couple of things. We’re going to need a Daly, two API key and a Land Bot account. Landbot does have a I think it’s 14 day free trial, so we’re going to be using that in this demo. Before I start, I would just like to point out that we now have a new community section within our website where we can share rate and get ideas about prompts from our own images and other peoples.<\/p>\r\n\r\n\r\n\r\n
So dive in, enjoy that and I hope to see around there. Anyway, moving on. First of all, we’re going to need to create an account with Land Bot. The website is Landbot IO. So make your way over to their website and sign up for free.<\/p>\r\n\r\n\r\n\r\n
Once in, you will be created by a wizard type thing asking your name, your company, just click pass. That not really needed. Anyway, once you’re in, go to the dashboard, little picture of the robot, click build chatbot. And we want a WhatsApp? We want a WhatsApp?<\/p>\r\n\r\n\r\n\r\n
What are these called? I forgot. Flow diagram thing from scratch. So this is what it’s going to give you to start off with. Click past that.<\/p>\r\n\r\n\r\n\r\n
So user input. This is going to be default. That’s fine. We don’t need to change anything there. And then we want the next one to be text.<\/p>\r\n\r\n\r\n\r\n
Click on it, you don’t drag. And so this is going to be the question that the application in our WhatsApp is going to ask us. So let’s try and make it a little bit cool. What image can I make, my lord? Because I have a complex, obviously.<\/p>\r\n\r\n\r\n\r\n
That’s all good. And we’re going to call that prompt. If I could spell promp and then apply. Just make sure that’s saved. Good.<\/p>\r\n\r\n\r\n\r\n
Let’s drag this green line. It’s been a bit funny. Go away. Drag this green line down and connect. The next step is we’re going to need to get a web hook.<\/p>\r\n\r\n\r\n\r\n
So this is basically connecting our app that we’re making on WhatsApp over to our Daly two API. So let’s just close that and type web hook and click. I always drag it. I don’t know why. So the information that we need here is going to be populated from API reference.<\/p>\r\n\r\n\r\n\r\n
So the web address for this is if I can pull this down, beta openai.com, docsapi referencesimages. I’ll include that in the description. Cool. So down the side, we want to go down to images. And let me have a quick look.<\/p>\r\n\r\n\r\n\r\n
Yeah, this is what we need. So it’s a post. It’s going to be posting. We need that URL. I’ll take that while I’m here.<\/p>\r\n\r\n\r\n\r\n
And we’re going to need this information as well. So if I hop over to my other tab, move it up a little bit, put that in here.<\/p>\r\n\r\n\r\n\r\n
Then we have our custom headers. So what we need here is pop over here again. Content type application JSON Actually, I think that’s prewritten. Yeah. So as a content type, capital type, then application Jason.<\/p>\r\n\r\n\r\n\r\n
Application Jason. Awesome. Now we need our authorization. So this is going to be our key authorization. If you note here, they say Bearer and then the API key.<\/p>\r\n\r\n\r\n\r\n
So make sure you type bearer before bearer and then your API key. I’m just going to pause the video while I get my API key. Hang on a second. Actually, no, I’ll do it with you guys here. So my API go over to your API keys.<\/p>\r\n\r\n\r\n\r\n
So this is in your account. APIs keys at OpenAI. I’ll create a new one with you. I’ll delete it anyway. I’ve reached a max.<\/p>\r\n\r\n\r\n\r\n
Revoke, revoke. Okay, there we go. There’s my new key. Get back over and paste that in.<\/p>\r\n\r\n\r\n\r\n
Awesome.<\/p>\r\n\r\n\r\n\r\n
Let’s save that and put that there. Okay, next we need to do send parameters, custom headers. We’ve done that. We’ve done that. Customise the body.<\/p>\r\n\r\n\r\n\r\n
So go over back over to the reference page. And we want to drag this or actually just click Copy Simple Things. And we can paste that in here. So this is basically saying the prompt. This is the request that we’re sending to the API.<\/p>\r\n\r\n\r\n\r\n
So it’s giving the prompt, the number of images and the resolution. So first of all, let’s delete prompt. Unless you just want an app that makes otters. I don’t judge. And we’re going to add our variable that we created earlier.<\/p>\r\n\r\n\r\n\r\n
We call that prompt. We want one image, and the size is great.<\/p>\r\n\r\n\r\n\r\n
We’re going to test that. 500 errors. So this is basically I haven’t added a phone number yet, so let’s click apply, Test, publish, first name, alex O.<\/p>\r\n\r\n\r\n\r\n
Okay.<\/p>\r\n\r\n\r\n\r\n
All right, cool. All good. So that ping you heard was my Web. WhatsApp? Just saying.<\/p>\r\n\r\n\r\n\r\n
I got a message from them. Let’s close that. Once we’ve added our phone number, then we pop back over to Webhook and then test your request. We want to click the little button, load up our prompt variable, and we’re going to give it a value. The reason we’re going to give it a value now is we need to just have something there for land bots to allow us to give it a name.<\/p>\r\n\r\n\r\n\r\n
That makes sense. Better in a second. So a happy man. Okay. Test or request.<\/p>\r\n\r\n\r\n\r\n
Having a think. Scroll down. Here we go. So we got this information provided when it’s created. And the URL, the only information here we want is the URL.<\/p>\r\n\r\n\r\n\r\n
So we need to give that a name. So click save, responses, variables, find that URL. URL will be the one without any Google lead brackets or anything before. So in this case, it’s this one for me. And we are going to give that a name.<\/p>\r\n\r\n\r\n\r\n
In this case we’re going to call it Response.<\/p>\r\n\r\n\r\n\r\n
There we go.<\/p>\r\n\r\n\r\n\r\n
That’s a string, by the way. If it does ask you what type of variable it’s a string, then apply we’re good. On to the next. So the next one is we’ve got the request from the API. It’s sending the information, it’s creating the image, it’s sending it back.<\/p>\r\n\r\n\r\n\r\n
Now we want to send it to what’s up? To do that close here, go to messenger. I already have. That saved me. SS.<\/p>\r\n\r\n\r\n\r\n
Click it. So the information that it’s sending is going to be an image, of course, because it’s a picture. So let’s click Media, click the pencil from URL, and then we can click our variables, actually. And we called that Response, didn’t we? Response.<\/p>\r\n\r\n\r\n\r\n
So that will get the URL of our picture. Click Send, tie them up, good to go. Publish. And then we can test our application. So here we go.<\/p>\r\n\r\n\r\n\r\n
Test. Let’s send the test to Alex pinged. Your chatbot is ready for testing. Send a message or click the button to start testing. Okay, what image can I make, my Lord?<\/p>\r\n\r\n\r\n\r\n
Let’s make a pink unicorn on a bike. Obviously, you can do your normal things like ultra realistic, 50 millimetre lens, etc. Send the off. Wait a couple of seconds. Usually takes about five to 10 seconds.<\/p>\r\n\r\n\r\n\r\n
There we go. Fantastic. We’ve got my image. So, yeah, I’d be interested to see what you can do with this. And I would like to thank Mr.<\/p>\r\n\r\n\r\n\r\n
Hackathon for his his tutorial on this. This was completely his idea and yeah, awesome. Stay cool. Take care.<\/p>\r\n","protected":false},"excerpt":{"rendered":"
Welcome to our tutorial on creating AI images with WhatsApp using Dalle-2 API and Landbot.io! In this video, we’ll explain how you can use these powerful tools to create stunning visuals for your WhatsApp conversations. We’ll cover everything from setting up your account to best practices for storing and managing your AI images. Plus, you’ll<\/p>\n","protected":false},"author":1,"featured_media":875,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"video","meta":{"_acf_changed":false,"rank_math_lock_modified_date":false,"footnotes":""},"categories":[6,1,11,23,7],"tags":[],"class_list":{"0":"post-874","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","7":"category-a-i","8":"category-blog","9":"category-dall-e-2","10":"category-gpt3","11":"category-tutorials","12":"post_format-post-format-video"},"featured_image_src":"https:\/\/promptmuse.com\/wp-content\/uploads\/2022\/12\/YouTube-Thumbnail-1280x720-px-2-1024x576.jpeg","blog_images":{"medium":"https:\/\/promptmuse.com\/wp-content\/uploads\/2022\/12\/YouTube-Thumbnail-1280x720-px-2-300x169.jpeg","large":"https:\/\/promptmuse.com\/wp-content\/uploads\/2022\/12\/YouTube-Thumbnail-1280x720-px-2-1024x576.jpeg"},"acf":[],"ams_acf":[{"key":"video_url","label":"Video URL","value":"https:\/\/youtu.be\/VmbaOBQBoKk"}],"_links":{"self":[{"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/posts\/874"}],"collection":[{"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":0,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/media\/875"}],"wp:attachment":[{"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/promptmuse.com\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}