Automation with Claude Code
How we built a weekly AI agent that keeps an eye on your competitors and sends you the news in a tabloid.
How we built a weekly AI agent that keeps an eye on your competitors and sends you the news in a tabloid.
✻ Welcome to Claude Code
●I can build that for you. Let’s plan it first.
Our free, open-source app for working with Claude Code. Each job gets its own project and folder, with a browser beside the conversation.
Originate Terminal on GitHubgithub.com/Originate-Group/originate-terminal
% claude
✻ Welcome to Claude Code
●What would you like to build?
Documents
Code
automations
A skill is a set of instructions Claude loads for a particular job. This one takes you through building an automation and stops at each stage for you to check.
create-automation on GitHubgithub.com/Originate-Group/create-automation
⎿ Installed
✻ Stage 1 of 5: Plan
●What do you do by hand today?
Originate-Group / create-automation
A Claude Code skill that takes you through building a scheduled automation, one stage at a time.
Everything from today in one document, from installing the app to adding keys and testing the job. You keep it, so you don’t need to take notes.
Automation is getting a computer to do a job you’d otherwise do by hand, starting at a set time or when something happens.
An agent is an AI model that can use tools and decide its own next step, working towards a goal until it’s done. Claude Code is an agent.
↻ Repeats until the goal is met
Reads their website and spots a new price
Opens the prices page to check it
Searches the news for more
Done: files the story, with its source
An automation doesn’t have to use AI. Many jobs can be done entirely by script.
Follows the same steps, in the same order, every time.
“Every Monday, test these websites and email me the slow ones”
Gets a goal, and decides the steps as it goes.
“Find out what my competitors did this week and what it means for sales”
✻Home page first. What do they sell?
✻They list prices. I’ll open that page.
✻Is there any news? I’ll try their blog.
✻A new article, dated last week. Worth a story.
✻Can I prove it? I’ll quote the page.
✻That one’s covered. Who’s next?
Checks a website’s PHP, WordPress and plugin versions against public lists, then emails a report.
Finds slow websites every Monday. The steps never change, and AI only searches and writes them up.
Gets one goal, then chooses what to read, what to search and when to stop.
You can do some of this in the Claude desktop app, with no code. A scheduled task gives Claude the same instructions each time, so it’s agentic automation.
New session
Scheduled
Customise
Send this invoice to Example Legal
The Xero connector is read only, so I can look at your invoices, but I can’t create or send them.
The basic integrations are a quick start. Going through Claude Code and the service’s API gives us much more control, and Xero is a good example.
A connector can only do what its makers built. With Claude Code and an API, we choose what it can do, and we can have it ask before anything goes out.
An API is an encrypted way to safely push or pull data from one program to another. It works like a cash machine, where you press a button and get what you asked for without ever going into the vault.
A scope is one thing a key is allowed to do. A restricted key has only the scopes its job needs, so a leaked key can’t do much harm. It’s like a card that can check your balance but can’t take out cash.
An MCP is a plug that connects a service to Claude. Plug one in, sign in once, and you can ask Claude about that service while you chat.
“Who runs this company?”
“Which invoices are overdue?”
“Find last month’s report”
An MCP suits you working with Claude. A job that runs at 7am with nobody signed in uses an API key.
GitHub is where code is kept online, with every version saved. The GitHub CLI is GitHub’s own tool, which lets Claude Code use GitHub for you.
●I’ll use the GitHub CLI. A page will open so you can sign in once.
⎿ Signed in to GitHub
⎿ Saved: rival-rag
⎿ Saved, and the last version is still there if you need it
your-name / rival-rag Private
Every saved version of the job.
The automation we’ve decided to create. We describe the job in plain English, the way we’d brief a colleague, and Claude asks what it needs to know.
●Which competitor should I keep an eye on?
●What should it never do?
Claude writes the plan as a short document. Changing a plan takes seconds, so this is where we get the job right.
✻ Stage 1 of 5: Plan
●Here’s the plan. Nothing gets built until you approve it.
⎿ Plan approved
We use Claude Code to write it. The rest runs online, like a small newsroom, and OpenRouter is there because it’s agentic.
Opens every Monday at 7am, with our computer off
Search the web, read pages and compare with last week
Competitors’ staff numbers and job adverts
One API for all the AI models, and how we bring in agentic AI. It decides what to chase next
Refuse any story without proof, and stop it at its limits
Last week’s pages and stories
Drops the paper in your inbox
We make a Cloudflare Worker, which is where the job lives. It holds the code and the API keys, and it runs on Cloudflare’s computers.
Everything the job needs is in one place, and none of it is on your laptop.
Asks other services to do the work, then passes on the answers.
Cuts a recording into captioned clips, so it needs video software inside the box.
Clips ready, and emailed to you
If the job only calls other services, use a Worker. If it needs its own software in the box, use a container.
We make each key, limit it and save a copy in a password manager.
••••••••••••••••••••••Copied••••••••••••••••••••••Copied••••••••••••••••••••••Copied••••••••••••••••••••••CopiedYou add each key yourself on Cloudflare’s page, so it goes straight to where the job needs it and Claude never sees it.
✻ Stage 3 of 5: Add keys
●I’ve opened Cloudflare’s secrets page for you. Paste each key there, and I’ll never see it.
⎿ All four added
●Each key is locked away, and even you can’t read it back. Keep a copy in your password manager.
✓ Ready before you’ve had your coffee, and your computer can stay off
Claude writes the job and puts it live on Cloudflare. We read what it’s doing and answer when it asks.
✻ Stage 4 of 5: Build
●Write(src/agent.ts)
⎿ Wrote 165 lines to src/agent.ts
●Write(src/tools.ts)
⎿ Wrote 352 lines to src/tools.ts
●Write(src/tabloid.ts)
⎿ Wrote 115 lines to src/tabloid.ts
●Write(src/rag.ts)
⎿ Wrote 47 lines to src/rag.ts
●Bash(npx wrangler deploy)
⎿ Deployed rival-rag triggers
schedule: 0 7 * * 1
●It’s live, and it will run every Monday at 7am.
We test in three steps, each one closer to the real thing, using a simple page with buttons.
✻ Stage 5 of 5: Test
●I’ve opened the job’s test page. A practice issue emails nothing and remembers nothing.
●When you’re happy, send one real issue, then leave it to the schedule.
Searching: Wix AI news
Filed: Wix Gets Two Smart: Studio Two Brings Aria 2.0 To Agencies
Reading wix.com/updates
Fact check said no: Wix Lets AI Do The Paperwork
Filed: Wix Lets AI Do The Paperwork
Searching: Wix pricing plans UK AI website builder 2026
3 stories, 11 steps, about US$0.42
The real email the agent sent me. On its schedule it’s waiting there every Monday, with my computer off.
The other emails in this list are made up.
No email selected
The Rival Rag <rag@mail.weareoriginate.com>
To Aaron Kennedy · Wednesday 20:33
This is the real first issue, exactly as the agent wrote it and sent it to my inbox: Wix’s AI news, and what it means for our sales.
11 steps, 8 pages read, 3 searches and 42 US cents.
It gathers the news and suggests what to do, and a person stays in charge of what happens next.
The course notes cover public pages, facts and data rules.
Who does what
With Cloudflare, OpenRouter, Apollo and Resend, you can create more or less anything.
Free and open source.
Originate Terminal on GitHubgithub.com/Originate-Group/originate-terminalPick one job you do every week and plan it. No keys needed yet.
create-automation on GitHubgithub.com/Originate-Group/create-automationEvery step from today, including how to keep your keys safe.
Leads website strategy and development, including the AI systems that support our work.
This presentation was brought to you by Originate!