Building an AI SEO agent: the decisions behind Keytomic
How an AI SEO agent should work, from keyword research to an indexed post, and the decisions I made building one: Keytomic.
Hassan Azhar Khanai seo agent, seo automation, keytomic

An AI SEO agent is software that runs the whole SEO content loop for a website: it finds the keywords, plans the topics, researches what already ranks, writes the article, publishes it and tracks how it performs in Google and in AI search. The hard part is not the writing. The hard part is the data the agent writes from, and the few decisions a person must still own.
I founded Keytomic, the AI SEO agent this article describes (how Keytomic works, step by step). So read this as a builder’s account, not a neutral review. If you would rather talk about your own site’s SEO, book a strategy call with me.
What “SEO automation” means in practice
A small business owner who does SEO by hand does the same loop every week. Find a keyword people search for. Check what already ranks. Write something better. Publish it. Ask Google to look at it. Check months later if it worked. Then do it again.
None of these steps is hard alone. Together they take a day a week, and that day is the first thing to slip when orders come in. One of Keytomic’s customers, a one-person candle and homeware brand, said it plainly:
“I run a small candle and homeware brand entirely on my own, so content and SEO were always the things that slipped because I was busy actually making and shipping orders.”
Livhuwani M., Éluvane Atelier, in a Keytomic review (June 2, 2026)
SEO automation software takes that loop off the owner’s desk. An AI SEO agent goes one step further: one agent owns the loop from research to tracking, instead of six tools that each do one part. (For a wider view of the category, see Keytomic’s guide to AI SEO agents.)
The workflow an AI SEO agent should run
This is the workflow I designed Keytomic around. Each step has one job, and each step hands real data to the next. The diagram near the end shows how the nine steps fit together.
1. The agent never guesses brand facts
The first decision I made: the agent writes only from a brand profile the owner confirmed. Keytomic reads the site and drafts the profile, but the content calendar does not run until the owner confirms it. Content refreshes, Reddit scans and AI visibility prompts wait for it too.
A writer that guesses will guess wrong about the one thing the owner knows best: their own business. One confirm step at the start is cheaper than fixing wrong claims in every article later.
2. Real keyword data, one topic a day
Every topic is backed by real search data: its search volume, its difficulty and its trend, never only what a model thinks people search for. Keytomic plans one topic for each publishing day the owner picks, to the end of the billing cycle.

For a while we used a fixed schedule: Monday, Wednesday and Friday for every site. We replaced it, because the owner knows their own publishing rhythm better than a default does.
Before a topic goes on the calendar, a check compares it with every other topic. If two topics share the same keyword family and the same search intent, the second one does not go on. Two articles that compete for one search are worse than one good article.

3. Research before writing, from more than one source
This is the step most AI writers skip, and the step I care about most. Before Keytomic writes a word, it builds a brief from what Google shows for the keyword:
- the top organic results
- People Also Ask
- the AI Overview
- the featured snippet
- the ranking pages themselves, read by code: their headings, their structure and their length
One rule here matters more than it looks: the model never counts. Code reads the pages and counts words and headings exactly. The model gets the counts; it does not estimate them.
From that research, the brief decides the search intent, the format and the outline. It picks one of more than a dozen article types from the keyword and the top results, such as a how-to, a comparison, a buyer’s guide, a cost guide or a checklist. The type matters because a reader searching for “best X” wants a different article from a reader searching for “how to X”. Then it studies the top pages and adds at least five things they do not cover. An article that only repeats the top results has no reason to rank above them.
4. Writing to a standard, not a word count
The AI blog writer gets the brief, the brand profile and a short list of rules that win over everything else. Accuracy comes first. The title the owner approved stays exactly as it is. The writer invents no URLs, and it never invents a “we tested this” story: an experience claim is made only from facts that exist.
Voice, trust and AI readability are the standard each article is built to meet. The work happens in the plan: the brief sets them before the first word is written, instead of a fix after.
In my experience, AI readability is now part of SEO. The articles that ChatGPT, Claude and Gemini quote tend to answer their question in the first two sentences, use clear headings and put facts in tables. The brief plans for this: it sets an AI citation angle for every article.
5. Publishing where the site already lives
An agent that writes but cannot publish is half an agent. Keytomic publishes to WordPress (through its own plugin), Shopify, Webflow, Framer, Contentful, Notion, Go High Level, a webhook or a custom API, as a draft or as a live post.
6. Indexing is not ranking
When a post goes live, Keytomic sends the URL to Bing at once, through the Bing Webmaster API. It reads Google’s index status for every URL and submits the sitemap to Search Console. Drafts are never submitted.
One decision here was to leave something out. Google’s Indexing API is for a few page types only, and normal blog posts are not one of them. So Keytomic does not use it for blog posts, even though it would look faster.

And indexing is not ranking. A page in the index can still sit on page five. That is why the next step exists.
7. Tracking Google and AI search
Keytomic reads Search Console and Google Analytics, runs a weekly SEO audit, and checks how ChatGPT, Claude, Gemini, Google AI Mode and Perplexity answer the questions a customer would ask.
In AI search, we measure two things separately. A mention is when the answer names your brand. A citation is when the answer links your page as a source. An AI answer can cite your page and never say your name, and that is not the same win. If you track only one number, you will misread the other.

8. Refreshing what slips
A post that ranked in spring can slip by autumn. Keytomic finds those posts and rewrites them at the same URL, so the links and the history the URL already has stay with it.
The owner starts the scan. The scan uses code only, with no AI call: it reads each post’s Search Console numbers and finds the posts that decline, sit near page one or get few clicks. Then the owner picks the posts to refresh.
Before it rewrites a post, Keytomic checks which search queries the post must keep. A post can bring traffic for a query that is not in its title, and a careless rewrite loses that query. The owner can choose a light refresh, a rewrite that keeps the queries that bring traffic, or a full rebuild.
Keytomic refreshes only posts it published, or posts the owner imported from WordPress or Framer. It needs the CMS to update the exact post and keep its URL. A refresh that publishes a new URL is a new post, not a refresh.
9. Links, with the owner’s approval
Content alone is often not enough to rank. A site also needs other sites to link to it. Keytomic’s outreach asks for those links, by email, from the owner’s own mailbox.
Each week, Keytomic finds pages that should link to the site, from data it already has: a page that names the brand without a link, an existing article where a link fits, or a resource page. It writes an email for each page with a contact, and a fact check holds back any email that says something the page does not say. The owner approves the batch, and Keytomic sends it from the owner’s mailbox. Follow-ups stop when the site replies, the email bounces or the link appears.
The approval is a decision, not a formality. Google’s spam policy names automated programs that create links. When a person approves each batch, each email is a choice the owner made.
The failure that taught me the most
In November 2026 we found that the research step had a problem we could not see from the outside.
Google gives automated searches a page that looks normal, but the organic results on it are swapped for unrelated ones. And the data provider returned Google redirect links in place of real page URLs for nearly every result. The brief skips redirect links, so it read no competitor page at all: it missed the step I care about most, and nothing on the surface showed it.
The fix was small once we found it. We now ask the data provider to replace the swapped results with Google’s real web results, and to resolve every redirect link to the real URL. It takes about a minute more for each brief. That minute is the difference between research and a guess.
The lesson: an AI SEO agent depends on its data, so it must check its data. Output that looks good is not proof that the input was good.
What still needs a person
An AI SEO agent does the work. It does not own the business. In Keytomic, the person:
- confirms the brand profile, once
- can edit or add any topic on the calendar
- starts each refresh scan and picks the posts to refresh (step 8)
- posts Reddit replies themselves: Keytomic finds the threads and drafts the reply, but never posts
- approves each weekly batch of outreach emails (step 9)
- decides what to do with what the data shows
Articles publish live by default once the brand profile is confirmed. That is the point of an agent: the owner should not need to review a post every day. Owners who want to read every article first can switch to draft mode.
Can you build your own AI SEO agent?
Yes. The parts are available: a keyword and search results API, an LLM, your CMS’s API and Search Console. A first version that writes and publishes is quick to build. A version you can leave alone takes much longer.
This is how the parts fit together in Keytomic: what starts each step, the services and models it uses, and what it hands to the next step.
Brand profileAt sign-up
- OpenAI, with web search
A profile of the business. The calendar, refreshes and AI visibility wait until the owner confirms it.
PersonConfirms it once
Keywords and calendarEach calendar run
- DataForSEO
- OpenAI
One topic for each publishing day, after a check against every page in the sitemap so that no two pages compete for one search.
PersonEdits or adds topics
Research briefEach publishing day
- DataForSEO
- OpenAI
A brief from Google's top 10, People Also Ask, the AI Overview and the featured snippet. Code reads the ranking pages and counts their words and headings; the model never counts.
WritingThe same run
- Claude Sonnet, with web search
- Image model
The article and its images. Code counts the words and removes any link to the site that the brief did not allow.
PersonCan review each post in draft mode
PublishingThe end of the same run
- WordPress plugin
- Shopify
- Webflow
- Framer
- Contentful
- Notion
- GoHighLevel
- Webhook
- API
A live post, or a draft, on the site's CMS.
IndexingWhen a post goes live
- Bing Webmaster API
- Search Console
The live URL to Bing, the sitemap to Google, and the index status of each URL. Drafts are never sent.
TrackingOn a schedule
- Search Console
- Google Analytics
- ChatGPT
- Claude
- Gemini
- Google AI Mode
- Perplexity
Clicks, positions, and how often AI answers mention or cite the brand. Code, not a model, decides what is a mention and what is a citation.
PersonDecides what to do next
Content refreshWhen the owner starts a scan
- Search Console
- The site's CMS
Posts to refresh, found by code from search numbers, with no AI call: posts that decline, sit near page one or get few clicks. For a post the owner picks, Keytomic checks which search queries the post must keep, then rewrites it at the same URL.
PersonStarts the scan and picks the posts
OutreachEach week
- The owner's mailbox
A weekly batch of emails, at most one for each site, that ask for a link: on a page that names the brand without a link, in an existing article, or on a resource page. A fact check holds back any email that says something the target page does not.
PersonApproves the batch, then answers the replies
The loop closes: a refresh updates the same post on the CMS, tracking keeps measuring it, and the next scan starts from those numbers. Outreach follow-ups stop on a reply, a bounce or a new link.
Each step runs as a durable workflow on Restate. A scheduler starts the daily jobs, and the data lives in Postgres.
The order we built it in
Git keeps the order, and the order is the lesson.
| When | What we added |
|---|---|
| September 2025 | The first commit |
| October to November 2025 | The brand profile, keyword research with DataForSEO, WordPress publishing, then the first article writer |
| December 2025 | Search Console and indexing |
| February to June 2026 | One more CMS every few weeks: Shopify, Framer, Webflow, webhooks, a custom API, GoHighLevel, Contentful and Notion |
| June 2026 | The research brief, before each article |
| August to September 2026 | The AI visibility tracker, Bing, and the check that stops two topics from competing |
| October 2026 | Content refresh, and a brief that reads the ranking pages themselves |
| November 2026 | Outreach, and the fix for the swapped Google results |
We built the writer first and the research late. For seven months, articles were written with no brief. Most of the work after the first version was not more writing. It was better input: research, checks and data.
Three decisions to make before you write code
1. Where the facts come from. An agent that writes about a business needs facts about that business. In Keytomic, the model drafts a brand profile from the website, and the calendar and the refreshes do not run until the owner confirms it. Decide this first, because every later step writes from it.
2. What the model does, and what code does. In Keytomic the model writes, plans topics and drafts briefs. Code does everything that must be exact: it counts the words and headings of the ranking pages, removes links the brief did not allow, decides from Search Console numbers which posts to refresh, and decides what counts as a mention or a citation in an AI answer. A model that estimates a number gives you a different number each time.
3. What happens when a step fails. A new post goes through seven steps and five or more outside services. One of them will fail. Keytomic runs each step as a durable workflow on Restate, so a run that stops continues from the last finished step, not from the start. Decide also which checks may block the work. The check that stops two topics from competing lets the topic through if the check itself fails: a missed check costs less than a calendar that stops.
Where the time goes
Two parts take much longer than the writing.
The first is integrations. Each CMS has its own API, its own limits and its own changes. Keytomic publishes to nine targets. Shopify, WordPress and Framer changed the most. We turned the first Shopify integration off in August 2026 and rebuilt it as a public app.
The second is data checks. The failure above is the example: the input looked normal and was wrong. Each data source needs a check of its own, and you find most of them only when something breaks.
Keytomic has more than 1,100 commits today, and these two parts are where we still improve it.
FAQ
What is SEO automation?
SEO automation is the use of software to do repeated SEO work, such as keyword research, content planning, publishing, indexing requests and reporting, so a person only makes the decisions.
Can an AI SEO agent publish without review?
Yes. Keytomic publishes live by default once the owner confirms the brand profile, and offers a draft mode for owners who want to review each post first.
Does an AI SEO agent guarantee rankings?
No. An agent can publish good, well-researched content on a steady schedule and get it indexed. Rankings depend on the competition, the site’s authority and time.
How much does an AI SEO agent cost?
Keytomic’s plans start at $99 a month, with a 3-day trial. See Keytomic’s pricing.