OpenClaw Cron Jobs EXPLAINED (Automate EVERYTHING While You Sleep)
Transcript
So, we have to say that cron jobs are probably the most powerful feature in OpenClaw. Yeah, it's what makes OpenClaw OpenClaw. >> [laughter] >> Otherwise, it's just like you you might as well just talk to your agent on like Croc on your phone, right? Cron jobs are essentially jobs that are set up to perform at a certain time. >> Mhm. All right. And you know, since this channel we're giving you real-world examples, what we do on our channel, like for example, our example are uh bot here, Stark. He has a Twitter intelligence or tweet intelligence collection at 6:00 a.m. in the morning. >> Mhm. All right. So, he wakes up over there. Oh. Oops. Oops. Oops. Oops. Um but yeah, he he wakes [clears throat] up in the morning. He does uh intelligence. Yeah. So, he collects tweets from different people and he saves it up. Then, he generates a daily briefing for me at 7:00 a.m. >> Mhm. All right. So, he actually just like says, "Okay, here's everything that you're monitoring on Twitter. What's really important? What's that good for me?" Then, he actually makes that into a full presentation for me. Mhm. All right. So, I'm asking him, "Hey, can you send me today's presentation?" Uh or I can't spell right now. sentation. So, this is kind of like it fits my schedule because >> Mhm. you know, I have to make videos on AI and I want to make sure that it all flows. Um but you can see how advanced these cron jobs can get. It's like um it it doesn't have to be simple like oh hey, remind you like stop me in the morning and remind me to wake up, but rather like deliver me a full report. Mhm. All right. And it's all the cron jobs can be quite complicated in the sense that you can tune it to that to so that the reports come exactly to your specifications, too. >> Mhm. All right. And you know, you can do this all with your bot, right? Which is actually a really important. So, um so, let me just show you today's briefing for this one. So, today is today, February 27th. So, this is the kind of kind of briefing that I get in the morning. Um so, you know, we cover like box mining. We originally covered crypto on our other channel, but we also cover AI news. And for me, Uh I just want this presentation to me delivered to me on to spec. >> Mhm. With the you know, and I also asked, you know, like if you look at the specifications for this, I asked it to produce tweets, examples of tweets that link the tweets up. >> Mhm. So, it doesn't produce slop. Yeah. I think a lot of people are like worried about AI slop and then like a lot of times it's because you're not specifying your requirements well enough. >> Yeah. And you can do that very well in your skills. >> Mhm. All right. So, that's a small topic, but the cron job can activate a particular skill. Yeah. And then um that skill can deliver it up to your specifications. And then, two, you can tune it to make it better for you. Yeah. All right. So, which is exactly what I'm doing here uh on my cron job. There were some updates as well, Ron. You made a new video on this, right? About uh the huge updates onto the cron job. Yes. It's more relevant for people who are running parallel cron jobs. So, what ends up happening is jobs would cancel each other if you have multiple cron jobs running. Mhm. >> have that problem right now where >> my cron jobs never get reported in my Discord channel. And I always have to ask the next morning, "Yo, what's up? What's going on with the cron jobs?" >> Right. Right. Right. Right. And maybe it's a Minimax thing and I sort of found out it could it it might actually be a Minimax thing because you know, apart from the coding plan key that you give to your uh OpenClaw, they they have that on the what's this called? Minimax provider in config. >> Right. But it's missing in uh models.minimax in off.profiles and the .env Right. I thought it's already like saved up there and I even said, you know, save this in the .env >> Right. Right. Right. Right. >> missing those extra steps that you would assume Minimax to have already done. >> Right. So, what you're saying is that sometimes when you're setting up a cron job, >> Yeah. um it might not work. It might uh because it's running from a different maybe from a different user on your your system, >> Yeah. on your VPS, it doesn't doesn't have the access to the models and it's going to fail and not deliver to you that report. >> Yeah. I think you were very angry before. You're like, "Why isn't Jeff delivering me my reports? I want it to perform exactly like Stark." Yeah. Like what's the >> [laughter] >> what's the difference here, right? >> Yeah. Well, that's because of the setup. So, one thing that maybe uh we'll probably make a video on this as well, >> Mhm. but one thing you want to check Mhm. is that when uh when you design your cron job, >> Mhm. make sure you run it once. >> Yeah. And then, um make sure that um it runs correctly >> Yeah. and to your specifications >> Mhm. before um you commit or before you you trust before you trust that your AI is doing it properly. >> Yes. The other issue that we encountered also is that time zones. >> Yeah. Um sometimes the time zones are not set up correctly on your PC or it more applies to people who are running a server. Mhm. Like if you're running a server and it's on a different uh region, it might have a different um time zone. So, make sure that this is set up correctly as well for your cron job. Mhm. But um yeah, yet again, I don't know why I have a Monday reminder for a banana, but anyways, these are the cron jobs that I have set up right now. And I think the key here is don't be afraid to make your cron jobs complicated. >> Yeah. Yeah. >> Yeah. And that's that's what it's good for. Exactly. Yeah. I think like if you're to test it, it's like the same as making sure your alarm actually rings, >> Mhm. so you set the alarm like 1 minute and then the next minute. Because I think uh for me, I set the cron jobs to do when I'm asleep. Right. Right. Right. So, that's why I have to deal with the problems the next day. >> Right. Right. >> don't I test it out first to set the cron job for the immediate day and then if it fails, then let's fix that issue, right? So, I mean I think maybe like a lot of beginners are also facing that problem. Yeah. >> cron jobs at times that they're asleep, so they have to fix the problem the next day and you're in this cycle, so Right. Yeah. And a pro tip, this is for pro tip that our developers Mhm. uh you can actually hook up your Uh OpenClaw agent to CloudCode and you can tell it to say like Um maybe at every night you say, "Hey, look. Take a look at my code play base and run code simplifier." Or you can do like a maintenance >> Yeah. kind of sort of thing. >> So, it's like it's like hiring a developer that just wakes up when you're asleep and then he goes he can get get to work. >> Yeah. And because he's already using CloudCode, you're getting the best of both worlds. Mhm. Basically, you're getting the a uh your OpenClaw could kind of be the the taskmaster. >> Yeah. And then the the developers will work overnight >> Yeah. on whatever you want to do. >> Yeah. So, maybe like say for example, my presentation looks like crap. I have a a cron job at night to be like, "Yo, take screenshots. Make sure this is better. Understand what you're doing." Mhm. So, this gives you a lot of power. And in fact, I had a uh friend say today, "You know, why don't you set up cron jobs every 2 hours and then they can just like make a new feature for you." >> Mhm. So, these things are really good. And because of the new update that uh when there's a blocking cron job. Oh, you look so tired here, Ron. Yeah. >> [laughter] >> You look tired, but but anyways, but because Um previously there was there were blocks and like um stuff. So, uh now that's all fixed in the new OpenClaw. I definitely encourage you guys to try it out. Out. Yeah. Yeah. With that, guys, there's not too much here. Our channel's growing really, really quickly. Thank you guys so much for the support. >> Mhm. We read every comment, so um every comment that you make in our community, we actually read. Mhm. So, leave a comment on what you are stuck on, uh what you're interested in, and we'll try our best. We're producing a lot of videos very quickly cuz I thought I think this is like for AI, it just needs to be out now. >> Yeah. So, uh we're always here to get to help you guys through that journey, guys. So, just leave a comment, subscribe. Um Not too much here. Mhm. We're not too much making much money on this either, so you know, feel free to just uh share this with your friends. Uh with that, guys, thank you guys so much for watching this video. See you guys in the next one. Shout out. Peace.