I've been experimenting with AI for quite some time now, and one thing that continues to excite me is finding ways to move beyond the traditional chat interface.
Don't get me wrong, chatting with an AI assistant is great. But what really interests me is giving AI the tools to actually get things done.
So I started thinking: what if my AI assistants could interact directly with my personal website? Not just generate content for me to copy and paste, but actually create pages, prepare blog posts, and manage content through an API.
And what better place to experiment than my own website?
That's exactly what I set out to do.
From chatting to actually doing
My website runs on Django and Wagtail, which already gives me a fantastic foundation for managing content.
With Wagtail's API capabilities, I saw an opportunity to build something much more interesting: a workflow where an AI agent could create a blog post, save it as a draft, and leave it ready for my review.
No copying content between chat windows. No manually recreating posts in the CMS. Just an assistant that understands the website's content structure and can work with it directly.
That's the kind of AI integration I get excited about!
Of course, there's a difference between getting an API working locally and making it reliable enough to expose in production.
And that's where things got interesting.
One API, two environments
I wanted the API setup to work consistently across my local development environment and the production website.
Simple enough in theory.
In practice, that meant configuring authentication, adding a Valkey-backed caching layer to support production rate limiting, and writing tests to make sure everything behaved as expected in both environments.
I also wanted a clear security boundary. An unauthenticated request should be rejected, while a request with a valid Wagtail API token should succeed.
After getting everything configured, that's exactly what happened: 401 for unauthenticated requests, successful responses with valid credentials.
Perfect!
Having a consistent approach across both environments also means fewer surprises when moving changes from development into production. And anyone who has spent enough time deploying applications knows how valuable that is.
The little deployment details that get you
One thing I've learned over the years is that the interesting part of a deployment isn't always the feature you're building. Sometimes it's everything surrounding it.
This was one of those occasions.
My production setup runs Django in containers, and Django settings aren't loaded exclusively by the web application.
They're also loaded during image builds and by the migration init container.
That distinction turned out to be important.
During the image build, production secrets aren't available yet. But once the application starts, the migration container needs the credentials required to initialize Django properly, including the cache configuration.
I ran into both situations while getting everything deployed.
The solution was to keep build-time configuration separate from runtime secrets and ensure the migration container received the credentials it needed.
Nothing particularly groundbreaking, but a great reminder that a successful image build doesn't necessarily mean a successful deployment.
These are the little infrastructure details that can consume more time than the feature itself!
Wagtail's agent skills were a pleasant surprise
Here's something I particularly enjoyed about this experiment.
Wagtail has published official agent skills on GitHub, designed to help AI assistants understand how to work with Wagtail.
And they turned out to be incredibly useful.
Instead of having an assistant guess the API structure or rely on generic examples, the skills guided it toward the Wagtail CLI and helped it inspect the actual page schema exposed by my website.
That's a pretty big deal.
The assistant could understand the available content fields, create a draft using the correct structure, and verify the result.
It even uncovered a limitation in my production configuration: the page API was accessible, but image uploads weren't exposed through the API. So the hero image still needed to be added separately.
Not everything was automated, and that's completely fine.
The important part was that the assistant was working with the real capabilities of my website rather than making assumptions.
This is exactly why I find agent skills so promising. They give AI assistants the context and instructions needed to interact with real systems more reliably.
AI can create. I still approve.
Now, just because an AI assistant can interact with my website doesn't mean I want to hand it unrestricted access.
Quite the opposite.
My goal is to give each assistant just enough permission to accomplish its task.
For blogging, that means creating and editing drafts without automatically publishing them.
I want the assistant to help with the heavy lifting, but I still want to review the content, make adjustments, and decide what goes live.
The API token needs to be protected, permissions need to be carefully scoped, and the AI shouldn't need access to my entire admin account to write a blog post.
It's a simple principle: automate the work, not the responsibility.
This is just the beginning
What excites me most isn't that I now have a working API.
It's what that API makes possible.
Today, it's creating a blog post draft. Tomorrow, it could be updating existing pages, organizing content, preparing new sections of the site, or coordinating multiple agents working on different tasks.
And the best part? I get to experiment with all of this on infrastructure I already manage, using tools I genuinely enjoy working with.
I'm increasingly convinced that the future of AI assistants isn't just about how well they can answer questions. It's about how effectively they can interact with the systems we use every day.
For my website, this is a small but meaningful step in that direction.
And I'm excited to see where it goes!
Author note: This article was drafted with the help of R2, one of my AI assistants, using my project notes and implementation details. I reviewed and refined the content before publication. A fitting first experiment for an AI-powered blogging workflow!