Zapier and ChatGPT For Twilio: OpenAI For Making SMS Text | Tutorial β
Let's build with Zapier and AI (100+ videos)π
2023-07-27
Transcript β
[00:00] welcome back to webcafe AI we do daily challenge between AI videos for your personal and business life in today's video we're going to be jumping back into our zapier for AI 5000 Integrations and we're looking at the app of twillow when it comes to Ai and automation if you're not familiar with this series essentially here at webcaf AI we plan on tackling all 5 000 apps found on zapier's backend and seeing how AI can integrate with every single one in today's use case we're gonna be looking at a texting app called twillow which essentially allows us to do SMS marketing campaigns and a lot more okay
[00:32] let's go ahead and begin we're gonna go ahead and create a new zap here let me come down here let's go ahead and rename it to twillow integration and what we're going to do here today essentially is in the context that we send out an email campaign through MailChimp essentially we're going to be looking for a very specific action to take place so in this context we're going to be looking at for the action of when the link is clicked in that specific email we'll send a personalized text to that subscriber in that specific list to give you more context essentially we created a MailChimp account for these
[01:03] tutorials and we're gonna go ahead and use our fake profile here we've got the email address the name the physical address and then we got the phone number associated with this underlying subscriber alright so let's go ahead and create a trigger here we're going to do MailChimp and we are going to do an event of linked clicked because we want to look for specific subscribers that are already really engaged with our content and a high indicator that is if they engage with the links with the content we sell we're going to go ahead and choose our audience here which can do the
[01:33] standard webcast AI the campaign type we're gonna do regular campaign campaign that we're dealing with here is going to be the benefits of a Automation and then the link that we are wondering about here is going to be the article link now this campaign came from another tutorial found on the channel so you can go ahead and check that out it's right up there essentially we showed how to create a AI article all the way to an AI email and then essentially send that out automatically but for this tutorial we're going to go ahead and grab the specific action that was incurred during that pseudo campaign all right we're
[02:05] going to go ahead and make sure this is true so that it is triggered for every single time a subscriber clicks the link we're gonna go ahead and test that trigger there we go and then we got that pseudo account we had earlier here I'm gonna go ahead and add a step here I'm going to do the let's go ahead and jump straight to the twillow uh step here so you can kind of get an idea of the end and then we're going to go ahead and fill the middle part with the underlying AI so we're going to do a send SMS here I'm going to hit continue continue here and we're going to do from the number that we have here at twillow and we're gonna go a two number and we're gonna go ahead
[02:37] and choose the two number for that specific subscribers profile and here's what's great essentially you will see that typically we have to reformat this data in order to for it to be accustomed to how MailChimp wants it to be interpreted but what's great about this API essentially is that it will do that for us it will be essentially removing everything but the numbers and then on top of that we'll go ahead and add a plus but as you see here we need to add a country code so for the USA we're going to add a one here and that number will be ready to be sent out to it will automatically add a plus here and automatically reformat this so that our
[03:08] number looks like this okay let's go back a step here we're gonna do a gbt block we're gonna do an event of conversation hit continue continue and let's go ahead and up some of our specifications here we're going to go ahead and up our model here to gbt4 we're going to go ahead and make sure that we have a memory key of text link it could be any random 32 characters here we can leave everything else the same here let's go ahead and deal for prompt here we're going to go ahead and do context
[03:39] this will be a text to a subscriber in our list that engaged with and so in this specific context uh campaign we were sending was an article link with an article link we're going to go ahead and get more context here so as you see here we can grab everything that's associated with that uh event that occurred so specifically the event that occurred here was the link click and all the data
[04:09] that we're receiving here essentially is going to be the link for the underlying um article that was presented in that email and then just information on the underlying individual that clicked the link we're going to want a little bit more information here about the underlying email here so I could do two options here the first option here is I could either set up a web parser by web uh by zapier and essentially allow it to interpret what's in the article through the web parser and then use that data for the prompt we have here or the second thing here is we're going to go ahead and just find the campaign that this link was associated with I'm going
[04:40] to do MailChimp I'm gonna do an event of find campaign hit continue here continue here I'm gonna do the name here so in this context we can just do the campaign ID continue Test action okay so I seem to be having an issue here when it tries to pull up the specific campaign using the campaign idea I'm not getting any data here so we're gonna do a work around here it's a little complex but I think actually you'll learn a lot by me doing this rather than finding a specific troubleshoot for this air so we're going to go ahead and add a chat
[05:11] gbt block here essentially the workaround we're doing here is we know that the underlying campaign name is the article title that's what we did in the previous tutorial in order to send the campaign within the same flow and not have to create a new one so we're going to do here is since we know that the campaign name is the article title and we're provided the article link we can use the handle in the article link to grab the title if that didn't make a lot of sense just go ahead and stay tuned here we're gonna go ahead and upper model here to gbt4 we probably could do this with 3.5
[05:42] but require a little bit more prompt structuring here we're going to go ahead and do a user message we're going to do article link semicolon parentheses and we're going to input that article link here which is just going to be link data URL I'm going to say from this article link grab the end handle and format the text with no can we do parentheses here and then we
[06:13] do the little hyphens and just the text let's see if this works I may do need to do a lot more prom structuring here let's go and see if this works basically my goal here is to grab this right here which is the article title and then remove the hyphens here let's go ahead and see if this has a good outcome here okay so I went ahead and completely misinterpreted what I was trying to do here no problem let's go ahead and try to restructure this so the way we're going to restructure this is because since the link is structured webcafe software.com blogs
[06:44] news and then the uh identifiable article title that we're looking for we're going to go ahead and just structure like this um generate the text after and then we're gonna go ahead and put semicolon News slash so first let's just prove that it understands what we're trying to do here I'm gonna add a memory key here I'm just going to add three F's and continue here and test the section perfect honestly we can work with that I'm gonna go ahead and take that and instead of keep restructuring our gbt
[07:15] prompt here let's just use some formatter blocks so we're gonna do format and we're going to go ahead and do an event of replace uh sorry an event of text because we're manipulating text here we're going to do an event of replace once we got that text here we're going to go ahead and input the output here and then we're going to find the hyphench here because that is not how the article title is structured remove the hyphens and the issue though is as you see here with the output it removes the hyphens and then condenses everything we don't want that let's remove the hyphens and
[07:45] replace it with an empty space so we still have the space there for your reference you can't just do a space on the keyboard you actually have to spell it out like this and then once you spelled it like that it will provide an output that is what we're looking for here and just so we make sure we cross our T's and Dot our eyes we're gonna add another formatter block here I don't think this is pertinent but just for the sake of showing you we're going to go ahead and add a formatter block here and essentially we're going to capitalize the string here um because in the article title itself it is capitalized we're going to test this action perfect as you see here now
[08:17] we have the article title we grabbed it from the link and since it wasn't able to grab the data from that find campaign we don't have to worry about that anymore we can go ahead and come back over here to ascend twilio actually we do need that still we're gonna go ahead and now basically use that fine campaign event again but instead of providing the ID which is honestly typical in these automations we're going to provide the actual name of the campaign or sorry of the article let me continue here we're going to test this action and there you go because of the fact
[08:47] that essentially we named the initial campaign the same as article title as you see here it went ahead and pulled it up here and now we got all the data associated with The Campaign which we can now use in our gbt block here so we're gonna go ahead and do context this will be a text to a subscriber engaged with an article link we're going to go ahead and say Okay so let's go ahead and add email subject here and honestly it wasn't even probably person that I needed to even find the campaign but just for the sake we're going to go ahead and just do campaign settings title um this is going to give context for the
[09:17] text here let me go ahead and make sure the parentheses is around here so essentially we've got to the point where now it understands contextually what the email subject was when it clicked that link for that specific article here let's just assume that since the individual clicked the link for the article and maybe the article was uh had some type of affiliate link or some type of product that was showcasing or Services showcasing we'll just assume that maybe it was a service that was being showcased you can say uh send or generate a text that gives the subscriber a 10 coupon to
[09:52] our services and we're gonna go ahead and just do coupon semicolon add some parentheses here uh welcome 10 and we're gonna go ahead and add a parameter block here we're going to say Max of two sentences we don't want you know a huge paragraph for this text here so we're going to do that uh we're gonna go ahead and continue here all right so as you see here we already have some issues it went ahead and outputted a subject a message if you're sending a text you don't want all this context uh you don't want this
[10:23] additional dictation so I'm gonna go ahead and do um uh we're gonna say just the text message no words before or after this phrase is pretty important and sometimes when prompt engineering do the fact that sometimes text or not text but outputs can be misleading we're gonna add a one there to refresh the memory key here we want to start on a clean slate so that our output could be more consistent in the future and as you see we got a rid of subject we got rid of the message and now we just have the text message that we can
[10:54] actually send we've got we're thrilled to see your interest in Aid automations as a token of our appreciation here is an exclusive 10 off coupon for our services simply use code welcome 10 at checkout and go ahead and come over here to twilio and we can go ahead and put that in as our message we need to format it because it already came up perfectly and from here we can go ahead and add a meteor URL if you choose to do so maybe an image with it and then we can go ahead and choose whether to send as large message or not but from here we've essentially successfully sent a personalized customized text message to
[11:27] a subscriber in our list so to run you through the flow again when an individual who is subscribed to your newsletter receives an email and clicks a link within that email it will trigger this flow telling it essentially to build out a customized message through SMS to send directly to that individual due to the fact that we see that that individual already shows High engagement with our content we could follow up with a potential text with that potential lead now one thing I would want to add here in order to ensure that this works
[11:58] a little bit more effectively is that when that individual clicks that link we wouldn't want to instantly send a text message as that could come off as spammy so something as simple as adding a delay block here could be very effective and something as simple as adding a delay block so maybe for two hours and we go ahead and continue tested action I'll be good to go and essentially individual clicks the link to the article reads the article in five minutes goes about their day and then receives a text two hours later with a personalized message in regards to
[12:29] either a service you're offering a product you're offering or what was found within that specific link they clicked as always you can find the zappy credit here today in the description down below for completely free if you're interested in learning more about Ai and automation check out the playlist at the end of this video as we're taking all 5000 ads found on zapier and seeing how AI can integrate with every single one if you felt like you learned something make sure to like the video it's completely free and it helps us hear web Cafe AI without further Ado I'll see you in the next video thanks for tuning in and yes surprise
[13:00] I'm an AI Avatar make sure to explore more here at web Cafe where we demystify AI for your personal and business life until next time