# Build the monthly keyword queue

You have access to your site's search performance data, a keyword
research source with volume and difficulty, a web search tool, a table
to hold the queue, and a messaging tool. Run this for **[your site's
domain]**, on **[3 to 6 seed topics your offer covers]**.

## 0. Set up (skip if you're already connected)

If you don't already have live tool access for this, connect it
first. This prompt is only as real as the tools behind it:

1. Get a Tulina account: book a demo at https://tulina.ai/book.
2. Add Tulina's MCP server to your assistant: https://mcp.tulina.ai/mcp
3. In Tulina, connect your own API keys for the tools this
   prompt uses: your search performance data, a keyword research
   source, web search, and your team's messaging tool.

Once connected, your assistant has real tool access and the rest of
this prompt runs as written.

## 0b. Already on Tulina? Three things around the run

An account and the MCP server are not the whole setup. Two of these come
before the run below and one after it, and together they turn this from a
one-off answer into a process your workspace keeps:

1. **Activate this process's connectors first.** Call
   `oto_connector(op="list")`, match it against the tools named in step 3
   above, and `oto_connector(op="select", name="...")` every one that
   isn't active yet. Selecting a connector does not mount its tools in the
   conversation you're already in — reach them through `oto_call` for this
   run, or open a fresh conversation once they're all on.
2. **Attach the work to an existing project.** `oto_project(op="list")`
   shows your active org's projects: pick the one this work belongs to
   rather than opening another, and keep its id. The project is where this
   process, the tables it writes to and the connectors it uses hang
   together.
3. **When the run is done, save it as a process — with its graph.** Write
   the body with `oto_procedure(op="set", ...)`, then attach it with
   `oto_project(op="link", project_id=..., target_type="procedure",
   target_ref="<your slug>")`. The body has to carry a drawing: read
   `oto_guide(op="read", slug="procedure-flowchart")` and follow it
   exactly — ONE untagged fenced block in that grammar, opening with the
   trigger and a quoted example of what you'd type to start a run. Tulina
   parses that drawing back into the graph it renders as the process's
   default view, which is what makes it come out in the same style as
   every other process in the app; a drawing the grammar can't read falls
   back to raw characters instead. Saving a process needs org-admin
   rights — without them, hand the finished body to someone who has them.

A keyword queue is a list of decisions, not a list of keywords. Most of
what comes back from a keyword tool should be set aside, and the run
says why for each one.

## 1. Read where the site ranks today

- `search_console(op="query_search_analytics", site_url="sc-domain:[your
  domain]", start_date=<28 days ago>, end_date=<today>,
  dimensions=["query", "page"], row_limit=1000)`.
- Keep each query with the page that collects its impressions. A search
  one of your pages already owns is improved on that page, never queued
  for a second one.
- Data lags about two days: say which dates the run covers.

## 2. Pull new searches for each seed topic

- For each seed: `dataforseo(op="keyword_suggestions", keyword=<seed>,
  location_code=[2840 for the US, 2250 for France],
  language_code=["en" or "fr"], limit=100,
  filters=[["keyword_info.search_volume", ">=", 20]],
  order_by=["keyword_info.search_volume,desc"])`.
- Use `keyword_suggestions`, which only returns searches that contain the
  seed. `keyword_ideas` returns the seed's whole category and fills the
  list with unrelated terms.
- A seed that returns exactly 100 rows is capped: say so in the report.

## 3. Merge variants into one intent

- Normalise each search: lowercase, drop small words (in, on, for, of,
  the, with, to, a), map plural and singular to one form, sort the words.
  Searches with the same normal form in the same market are one intent.
- Keep the highest-volume wording as the keyword, with its own
  difficulty. Volume is the highest of the group, never the sum: Google
  already counts the variants together.
- Drop every intent a page already owns (step 1) and every one already in
  the queue table.

## 4. Read the live top ten

- For each intent still in: `serper_search(query=<keyword>,
  country=["us" or "fr"], language=["en" or "fr"], num=10)`.
- Note the format that ranks (guides, listicles, tool pages, forums). A
  results page held by vendor homepages and forums is a different fight
  from one held by articles: write it in the row.
- Missing difficulty: `dataforseo(op="bulk_keyword_difficulty",
  keywords=[...], location_code=..., language_code=...)`. Still missing,
  score it as 30 rather than asking again.

## 5. Score each search on fit and difficulty

- Fit from 1 to 3 against [what you sell]. 3: the searcher wants the job
  your product does. 2: they do that job by hand today. 1: topical only,
  or a job you do not do (pricing of another tool, login, careers).
- `ratio = volume × fit² ÷ (difficulty + 5)`. Squared, a fit-3 search
  weighs nine times a fit-1 search of the same size and difficulty.
- Set aside anything over [your difficulty ceiling, e.g. 35]: those need
  links pointing at your site before a page can win them.
- Read every fit-3 row by eye: a word like "automation" also matches
  company names.

## 6. Queue the searches by score

- `data_write(datastore=[your keyword table], rows=[...], key="keyword")`
  with: keyword, market, volume, difficulty, fit, fit reason, ratio, the
  page meant to answer it (one page per intent, never two), the ranking
  format, and today's date.

## 7. Post the queue for approval

- `slack_post_message(channel=[your content channel], text=<the top ten
  by ratio, each with volume, difficulty and the page it would go to>)`.
- Draft nothing. Publish nothing.

## 8. Pick the pages to write

A person reads the queue, drops what does not fit, and chooses the next
page. The writing run starts from that choice.

## Output

Report: the dates of search data read, seeds run (and any capped at 100
rows), searches pulled, intents after merging, intents set aside and
why (already owned, already queued, over the difficulty ceiling, fit 1),
intents queued, and the top ten by ratio.
