Build a X DM bot using RoboMotion

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey how's it going in this video I'm going to show you how to build a Twitter DM bot using Robo motion this sequence looks daunting but it's not it's pretty simple um well simple once you built it and it's working well first of all you need an inject sequence which is here okay and then this is a loop so it's going to Loop through a spreadsheet and it's going to start with A1 and it's going to keep going until it runs out okay so you need to set a profile variable and the profile variable looks like this if you don't know coding it's fine neither do I um it's just you set this once and it just works forever kind of thing so you need a couple of functions in here you got a message. number equals 1 so that's going to be the number for your cell like A1 A2 A3 and then you'll need message. row which is a and then it's going to add the message. number to the A and it becomes A1 so it sounds complex but it's not so it just chooses the row chooses the um letter and it pushes it together from here we need to do exactly the same but we're setting the DM and so we've got message. DM number which is one message. dm equals the column you're in so this is going to be C and it's going to add the C to the one and it becomes C1 okay and then we want message. DM amount and this is just going to be a counter and it's just going to go 1 2 3 4 5 6 and it's just to count how many DMS you've sent so we can stop it otherwise it might go on forever and go out of hand so what this is looking at is here here is a spreadsheet real simple and I've got a Twitter profile in a this is one of my businesses and I've got a message in C and and that's it there's nothing in B and I've purely just done it to separate it just so I've got a bit of space to work with and in D here I've got a status saying sent or DM closed DM closed means the DM button is missing and robot motion can't find it it will error but instead of stopping the whole sequence it will just write DM closed after it's sent it will just upate with sent quite simple and then what it does so I'll start over again briefly but I'll skip all of this so it start here the inject it sets the profile variable so it's going to be A1 and then it's going to open a spreadsheet which I've just looked at it's going to get your profile in the profile here it's setting the value as message. row so that's the cell it's going to get a message. row is A1 which is your Twitter profile and then it's going to get the message the message was in D so it's going to be message m. DM message. DM is this cell here sorry I said D I meant C so it's going to be C1 so A1 is your Twitter profile C1 is your DM from here it's going to go to your browser okay so it's got a little skip function I don't know what this is called goto flow and then it's going to go to your browser here it's going to open your browser and it's going to open the Twitter profile The Secret of this to making it work successfully is to use the data directory function okay and this will take your hard drive and it will take a folder from your hard drive and it will add the cookies to Twitter so on the first time you run this you'll have to log in and it will just try to open a profile and Twitter will say hey you need to log in if you log in and you use the data dur function it will set your cookies inside this folder I think I've got mine open here actually uh let's have a look yeah you can see this is all of the waffle that Robo motion puts in I don't know what it means um really but it works that's the main thing so once the cookies have been set every time the sequence runs it will just open it providing you don't change your password or clear your cookies out of the folder it will just continue to run eventually they may kind of um you know need resetting or whatever but it takes 2 seconds so it opens your profile and it's going to open where are we uh the URL so it's going to be message. account and message. account was A1 and it's going to be this Twitter profile here or whatever it is in your instance then it's going to wait for an element to display sometimes things can take a little while to load imagine you browsing your internet's running a bit slow or whatever and different buttons may not appear straight away if we go up to Twitter and let me just click on my link actually it be quicker Robo motion it's going to wait for the page to load and it's waiting for this button to load and once this button loads we are good to go if the button doesn't load it's just going to sit there and wait until it does if it doesn't it will just assume the DMS are closed and moved on to the next one so here it's waiting for the element and the selector I've done it's already been set up is this selector here so we're sitting there waiting for that selector to appear and then it's going to go to sleep because we need to act like a human no human loads up a Twitter profile presses DM pastes in a message straight away closes and do the next one if you do that you're a spammer Twitter will think you're a spammer and block you so we need to go to sleep and I've set this sleep for 12 to 17 seconds so it's going to randomize every single time this sequence loads up so no sequence will ever be the same I've got various sleep stages in here to make it completely random as possible once the DM has loads it's going to sleep you need to click for DM and you're clicking on the selector it's already watched for so it's this selector here is exactly the same one so I've already done the hard work for you it's this x path here if you want to copy and paste and then it's going to wait for the text area to appear if we go back to Twitter and I've lost my link I should be more organized it would help so it waits this page loads we click with DM and it waits for this box to load here okay so sitting and waiting and then what it's going to do it's going to click the DM box as you can see here wait for the text area says waiting for it to load and once it loads it goes to sleep and it sleeps again between 12 and 15 seconds you can adjust these whatever you like if you take it down to the minimum to make it run faster Twitter will probably catch on and ban you but that's up to you then it's going to type a message but it's going to click for selector in the message box and it's going to take the message from the Google sheet so message. DM message. DM if we remember L is here so it's taking it from this part here you can write in whatever you like what I recommend you do for this just going on the brief tangent is when you do your messaging make them slightly different so each one isn't repetitive or looks like a bot doing it so get chat GPT to write you 10 variations of the same message and then see which one works best and then make it less rigid that human looking and then what it does does now once the message is successfully sent it updates your spreadsheet and says sent okay and that is this part here then it's going to go to sleep again between 15 and 30 seconds this time so you send a message and then it will just hang around for a little bit then it's going to go to a Kill Switch okay so up here I set the DM amount and it was the count remember when I said it will go for 1 2 3 4 5 6 7 and keep counting and what this is doing here the kill switch will stop the sequence every 25 messages just to keep your account safe and to prevent you from getting banned I'm not sure the overall limit of Twitter you may be able to go further I've not really pushed it to ban um territory so I just want keep it as 25 it's the same as Instagram as well um it's quite simple and then so what happens here if you send 25 messages it will just go to a stop sequence and stop the whole flow if you're under 25 it will continue okay so you can see here if it equals 25 stop or if it equals or less than 25 it will continue and then it will stop and then what it's going to do here it's going to go to the next profile and it's going to go with here and then it's going to Plus one to everything so your cell number will be A2 and then your message variable will be C2 and then your DM amount will be in two and then I think I've got this one in here status amount I don't think this actually does anything what did I do I think what I did is I was counting the amount of cents it's not really important so you can probably skip these two they are irrelevant or you can put them in um let me just briefly look so message do status update number yeah I was counting oh yeah I've even written it uh this here is count in sets of variable yeah so is if you want to count how many sents you've done or how many DM closed is um you know you can do it then it's going to go to sleep and then it's going to start all over again but this time it's not going to set the profile variable it's going to go straight to open spreadsheet it's going to get the next profile so every time this loops around it just adds a one that's the important thing to remember and it's going to go A1 A2 A3 A4 A5 and just go down that row over here we've got DM closed and DM closed will trigger if it cannot find the DM box so some people say you know they don't allow you to DM them and some people do if the DM box is available it's great it's going to carry on working if it's not available it's going to error where are we um you can see this has been a once you start looking at this for a while your eyes go um funny wait for DM and then yeah here we go so on the wait for DM here if it errors it's going to go to the catch error here and then it's going to update the correct profile to DM closed just so you know I've got a little debug on here just to catch it in the um console um outputs here and then it's going to go to your next profile over here and start all over again so this will work on a continuous loop and I'll just show you how it works quick so I've got my profile here and I've got my message and I'm just going to send the one message so let's go back to Reber motion and I'll run this and it will fire up Chrome it's going to get profile get a DM files up Chrome it'll go to prom Twitter and then it's waiting for this box to appear and if it finds it's going to move on but remember I've got all the sleep functions in just to make it look human load the profile and it will paste the message in here eventually there we go and then I don't have any more profiles so Robo motion is going to error it's going to sleep as you can see here and it will go through the next profile and it will start I'm just going to end this here just because we don't need to see that bit but anyway if you've got a list of profiles it will just go on to your next one it will close the browser and it will start all over again and go on a continuous loop so that is how to build it I know it's a bit of a crash course and it looks daunting but if you copy these bit by bit and then you go to Twitter and you get the correct X paths it takes a bit of trial and error I've showing you the most important X paths um and you can build it it's pretty simple or if you don't want to build it and you just want a shortcut I am selling the template Below in the video uh let me know what you think cheers
Info
Channel: Pete Callaghan
Views: 49
Rating: undefined out of 5
Keywords: x dm bot, twitter dm bot, robomotion rpa, robomotion tutorial, robomotion automation, robomotion assistant, robomotion rpa tutorial, twitter bot, twitter dm outreach, twitter dm strategy, twitter dm automation, twitter bot tutorial, twitter mass dm bot, Robomotion rpa review, twitter automation, x mass dm bot, twitter outreach automation, twitter x automation, How to use twitter automation
Id: KWdJzsUQVH8
Channel Id: undefined
Length: 13min 38sec (818 seconds)
Published: Wed Feb 28 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.