Fact-Check a Viral Tax Post on X Against Official Sources with Grok
xAI's cookbook example builds a fact-checker with the Grok API. You paste a link to a post on X, and Grok reads it with X Search, images and video included, and splits it into up to four claims. It then checks each claim on the web and on X in its own request and writes a note in which every sentence cites a source the searches actually returned. Each claim gets a verdict of supported, missing context or not enough evidence, and any source Grok lists that the searches did not return is dropped, so a verdict stands only when a kept source backs it. The source-checking safeguards described here are part of the cookbook code, not the Grok app.
Grok, X Search +1
xAI Docs (fact-check cookbook)