Fixing LLM hallucinations in a CMS-integrated AI SEO tool
A US MarTech startup’s AI SEO assistant, built into client CMSs, suggested internal links to URLs that did not exist and wrote overlong, keyword-stuffed titles. Prompt engineering limited links to an approved URL list and enforced title length limits, and hallucinated URLs in production dropped to zero.
Client context
Ascend.tech sells an SEO assistant inside client CMS instances. AI link and title features drove adoption but quality issues forced manual QA on every suggestion.
Challenge
Model invented URLs outside allowed list; anchors did not match destinations; titles exceeded limits and read unnaturally.
What we did
- Link prompt: whitelist-only URLs, context-aware anchors, relevance scoring rules.
- Title prompt: intent-aware keywords, anti-stuffing, hard character limits.
- Regression checks on previously failing scenarios.
- Go + PostgreSQL service layer unchanged; prompt layer upgraded.
Process
- Failure taxonomy from production samples.
- Prompt v2 draft and A/B on edge cases.
- Client-side validation of suggestion acceptance.
- Document prompt rules for future model swaps.
Result and impact
Link suggestions stay within catalog; titles usable without manual rewrite; lower QA burden on SEO workflows.
This is an NDA-protected engagement. Client name and identifying details are withheld; industry, region, challenge, solution and outcome are shared in an approved form.
Suggestions we can actually publish — not edit into shape.SEO product owner (quote representative, under NDA)