0:00 / 0:00

Schedule An Agent To Run On Its Own

From the course: Agentic AI For Founders & Senior Operators

In Claude Desktop, open Scheduled Tasks, create a new task, paste in the prompt and pick a frequency, such as 9 AM every Monday. Our example is a weekly stock analyst that runs a separate subagent per stock, compares with last week's note and is capped at 15 Firecrawl credits per stock. Tasks that use browser automation only run while your laptop is connected and Claude Desktop is open.

Transcript

So, first I'm going to go to my Claude Desktop and now that I'm here, I navigate on the left to this option that says Scheduled Tasks. I click on it and I come here to New Task, and there's two options to do this. I'm going to do it manually. I prefer to always do that, so I'm in control of everything, but you can also create with Claude and it'll just take you through a chat session that effectively achieves the same thing. Okay, so let's call this our weekly stock analyst and then I have just pasted the prompt that I've also put into Maven and I'm going to put three stocks. So, let's say NVIDIA, Apple and Tesla. Now, what we're saying is that for each of these stocks, use a separate subagent and run it in parallel. Let's actually break this up into numbered points so that it's also a bit easier for our agent. And so, you'll see that we specify, hey, use a separate subagent for each stock, use Firecrawl, also check using the browser for Yahoo Finance. So I don't have any paid subscriptions, let me remove that. And I've already logged into Yahoo Finance, so it's going to pick that up. Compare with last week's note, then save this week's note and so on and so forth. We specify that it has to create the watchlist artifact, so we let it be creative and do what it wants. And at the end, show me how you orchestrated these subagents. Now, what I'm going to do here is first, I'm going to tag it to this project and I will accept this and then I will keep the frequency weekly. Let's say 9 AM on Monday. Auto-approval is fine because I want it to run and then I'll say notify me. I don't like push notifications, so I'm going to do email, and I'm also going to toggle this. Now, I need to toggle this because I have opted for browser automation and that won't work unless I toggle this and turn it on. But as a consequence, this can only run if my laptop is also connected and the Claude Desktop app is open. So, if you don't have that, then this won't work for you. Okay, with that, our scheduled task is now created and I have also specified that it should use no more than 15 Firecrawl credits per stock because I plan to run this every week and I'll just run out. So, let's do a test run on this here and I'm going to click Run now. So, it will fire off a chat session and you can see here that it also shows up under my Luminary project. And with this, it has now executed the prompt that we gave it.