
Look, here's the deal. Before your team spends money on AI-visibility software, there's a signal you can measure yourself with about 80 lines of code: consistency.
Kiyado's guide to how LLMs choose which sources to cite lists six signals. Signal 5 says your website, LinkedIn and expo or directory listings should state the same facts. The article's example: a site says 12 export markets, an expo listing says 8, LinkedIn says "global." Engines comparing those sources have no clear answer to quote.
This tutorial builds a small checker that compares a "source of truth" against the pages that describe you.
Why bother measuring consistency?
Three reasons, all from the article's evidence.
First, rankings alone don't explain citations. Ahrefs found 76% of pages cited in Google's AI Overviews ranked in the top 10 in July 2025, and 38% across 863,000 keywords in March 2026. Its detection method improved in between, so the two figures aren't directly comparable. Either way, something beyond ranking is at work.
Second, the wider web matters. In Ahrefs' study of 75,000 brands, web mentions correlated with AI Overview visibility at 0.664, compared with 0.218 for backlinks. That's correlation, not cause, and the sample leaned toward established domains. But if third-party pages carry weight, it matters what those pages say about you.
Third, consistency is cheap to fix. Rankings and mentions take months. A mismatched customer count on a directory profile takes five minutes once you know it's there. The hard part is knowing, and that's what the script is for.
⚠️ Only fetch pages you own or have permission to check, follow each site's terms of service and robots.txt, and keep request rates low. Many platforms (LinkedIn included) don't allow automated scraping, so for those, paste the text in manually rather than fetching it.
Step 1: Write down your source of truth
Agree the canonical facts once, with whoever owns them. Store them in version control:
facts.yml
company: Example Cloud FZ-LLC
facts:
founded: "2019"
countries_served: "14"
customers: "300+"
certification: "ISO 27001"
hq_city: "Dubai"
sources:
- name: website-about url: https://www.example.com/about/
- name: directory-profile url: https://directory.example.org/companies/example-cloud/
- name: linkedin file: manual/linkedin.txt # pasted by hand
- name: expo-listing file: manual/expo.txt # pasted by hand The company and URLs are placeholders. Replace them with your own. Step 2: Fetch or load each source # consistency.py import re, sys, time, yaml, requests from html.parser import HTMLParser
class TextOnly(HTMLParser):
def init(self):
super().init(); self.parts = []; self.skip = False
def handle_starttag(self, tag, attrs):
self.skip = tag in ("script", "style")
def handle_endtag(self, tag):
self.skip = False
def handle_data(self, d):
if not self.skip: self.parts.append(d)
def load(src):
if "file" in src:
return open(src["file"], encoding="utf-8").read()
r = requests.get(src["url"], timeout=15,
headers={"User-Agent": "consistency-check/0.1 (own-site audit)"})
r.raise_for_status()
p = TextOnly(); p.feed(r.text)
time.sleep(2) # be polite
return " ".join(p.parts)
Note the honest User-Agent. Don't pretend to be a browser or a search crawler.
Step 3: Compare facts
The simplest useful check: does each canonical value appear, and do any conflicting numbers appear near the same keyword?
NUM = re.compile(r"\b\d[\d,]*+?\b")
def check(text, key, value, window=60):
found = value.lower() in text.lower()
conflicts = set()
hint = {"countries_served": "countr", "customers": "customer",
"founded": "founded"}.get(key)
if hint:
for m in re.finditer(hint, text, re.I):
chunk = text[max(0, m.start()-window): m.end()+window]
conflicts |= {n for n in NUM.findall(chunk) if n != value}
return found, sorted(conflicts)
cfg = yaml.safe_load(open(sys.argv[1]))
for src in cfg["sources"]:
try:
text = load(src)
except Exception as e:
print(f"[{src['name']}] could not load: {e}"); continue
for key, value in cfg["facts"].items():
ok, other = check(text, key, value)
status = "OK " if ok and not other else "CHECK"
extra = f" (also saw: {', '.join(other)})" if other else ""
print(f"{status} {src['name']:18} {key:17} expected {value}{extra}")
Run it:
pip install pyyaml requests
python3 consistency.py facts.yml
Sample output (illustrative):
OK website-about countries_served expected 14
CHECK directory-profile countries_served expected 14 (also saw: 9)
CHECK linkedin customers expected 300+ (also saw: 500)
OK expo-listing founded expected 2019
Every CHECK is a human task: confirm which number is right, then fix the source that's wrong.
Step 4: Know the limits
This is deliberately crude. Be honest with your stakeholders about what it can't do:
It misses paraphrases. "Over a dozen countries" won't match "14". A person still needs to read the flagged pages.
It flags false positives. A year or a phone number near the word "customers" will show up as a conflict.
It doesn't measure AI citations. It measures one input the article says matters. Whether an engine cites you depends on all six signals, and nothing guarantees it.
Step 5: Turn CHECK lines into fixes
A report nobody acts on is just noise. For each CHECK line:
- Confirm the truth. Ask the fact's owner, not the person who last edited the page. Founding year belongs to finance or legal. Customer counts belong to sales operations.
- Fix the source you control first. Your own website and LinkedIn page are quick wins.
- Request fixes for the rest. Directories and expo organisers usually have an edit form or a support address. Log the request date so you can chase it.
- Update facts.yml if the truth changed. Sometimes the website is wrong and the directory is right. Treat the YAML file as the record and review changes to it in pull requests, like code. It also helps to agree a rule for vague claims. If a page says "global" or "hundreds of customers", is that acceptable? Many teams decide that vague is fine for taglines but every page that states a number must state the canonical one. Step 6: Run it on a schedule Facts drift. A new hire updates LinkedIn, marketing launches a new About page, a directory re-imports old data. A weekly job catches drift early: # .github/workflows/consistency.yml name: brand-consistency on: schedule:
- cron: "0 5 * * 0" # Sundays 05:00 UTC jobs: run: runs-on: ubuntu-latest steps:
- uses: actions/checkout@v4
- run: pip install pyyaml requests
- run: python3 consistency.py facts.yml | tee report.txt
- run: "! grep -q '^CHECK' report.txt" Remember to refresh the manual files (LinkedIn, expo listing) whenever someone edits those pages. What to add next Once the basic checker works, a few extensions are worth the effort: Freshness dates. Record when each source was last edited, if the page shows it. The article reports that cited content was on average 25.7% fresher than organic-ranking content, so a stale directory profile is a double problem. Evidence flags. Count how many sources state at least one checkable number. The article's example contrasts "Trusted by manufacturers worldwide" with "ISO 9001-certified since 2014; supplying 40+ plants across 11 countries." A simple dashboard. Even a Markdown table committed weekly gives marketing a history they can show leadership. Where this fits Consistency sits alongside rankings, brand mentions, freshness, evidence and access. The article's 10-minute audit covers all six. Once you've run your own checker, you'll ask much sharper questions when you evaluate the best generative engine optimization tools 2026 has to offer: Does the tool track consistency? Can it show which source disagrees? Does it admit what it can't measure? If you're a SaaS team in the Gulf and want help with the other five signals, Kiyado works remotely and offers a free audit. See how Kiyado supports Dubai businesses →
- cron: "0 5 * * 0" # Sundays 05:00 UTC jobs: run: runs-on: ubuntu-latest steps:
