Automate a boring task with Codex with ChatGPT
The struggle: You do the same dull task by hand every week, and you cannot code a tool to do it for you.
What you end up with: A small script or tool that does a repeat task for you, built and tested by Codex.
Codex writes and runs code in a folder or repository. For non-developers it is the quickest way to turn a manual routine into a script.
Tools: ChatGPT. Level: Pro. Time: 1 hour.
Use it if
- You do the same file or data task every week
- You can follow simple instructions to run something
- The task is clear and repeatable
Skip it if
- The task needs judgement every time
- It touches money or production systems
What you need first
- A ChatGPT plan with Codex (Free and Go get limited Codex, Plus and up get more) and Scheduled tasks (check your plan)
- The ChatGPT desktop app for local folders
The method
Plans the script (ChatGPT: Codex)
Describe the task and ask for a plan before code.
Prompt to copy:
Every week I [task]. Plan a small script for this. Tell me what it will read, what it will change and how I run it. No code yet.
You get: A plan you understand.
Tip: If you do not understand the plan, ask again.
Builds and tests (ChatGPT: Codex)
Approve the plan and ask it to build with a test run on a copy.
Prompt to copy:
Build it and run it on a copy of the folder. Show me the before and after.
You get: A working script, tested safely.
Tip: Always test on a copy.
Reminds you to run it (ChatGPT: Scheduled tasks)
Set a weekly reminder with the run steps.
You get: A routine that takes one click.
Tip: Keep the script and steps in the same folder.
Where this goes wrong
- Read what it changes before it changes real files.
- Do not give it passwords or keys in chat.
Sources
More like this
- Agent pull requests checked before a human merges
- An incident timeline rebuilt from your git history
- Acceptance criteria written for vague tickets
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.