Skip to content

Better Links

Add-on for OG AI Core. It makes chatbot replies safer to click: it checks and repairs the links in AI content, and links your key terms to the right pages and products.

Requires: OG AI Core (free or Pro) active. WordPress 6.0+, PHP 8.1+.

Install

Install it from OG AI Core > Manage add-ons > Get add-ons: one click if you own it, or enter its licence key. It runs from OG AI Core's add-ons folder, not from the Plugins screen. Settings are in OG AI Core > Add-ons > Better Links, per chatbot and per post type.

Better Links settings

What it does

  • Link validation: every link in a reply is checked. A link counts as broken only when the page is gone (404 or 410) or is not public. Redirects count as working.
  • Smart repair: a broken link to your own site is replaced by the page it was meant for (same slug or a close title match), otherwise by your fallback address, otherwise the link is removed and its words stay.
  • Dangerous links (javascript:, data:) are always removed.
  • Term linking: keywords in the visitor's message are matched to your pages and products and handed to the AI. Pin a keyword to one page with keyword=https://example.com/page or keyword=123.
  • Force Linking: also links the first mention of each keyword in the reply and lists pages the reply never mentioned.
  • WooCommerce: price, stock, SKU, categories and attributes of linked products are given to the AI.
  • Thumbnails: clickable featured images for the pages and products a reply links to.

Privacy

Link checks send a request to the addresses in the reply. Addresses that point to private or internal hosts are refused. The change log keeps addresses only, never message text.

Developers

apply_filters( 'ogbl_fix_links', $text ) repairs the links in any text. Other hooks include ogbl_items, ogbl_related_label, ogbl_thumbnail_cards and the action ogbl_links_checked.

OG AI Core · Woo Basics · Content Parser