COD · Codex (OpenAI) · ~20 min · Medium
Make Your Site Visible in ChatGPT Using OpenAI Codex
OpenAI Codex is a terminal-based AI agent that can read your entire project and make targeted edits. Run it once with the right prompt and it handles all GEO optimization tasks automatically.
Requires: OpenAI Codex CLI
Install: npm install -g @openai/codex. Needs an OpenAI API key with Codex access.
What we'll add:
- ✅ Organization Schema — AI correctly identifies your business
- ✅ FAQ Schema — +41% citation rate in AI responses
- ✅ robots.txt — allow GPTBot, ClaudeBot, PerplexityBot
- ✅ llms.txt — AI agents understand your site instantly
0
Generate your GEO assets first
- Go to causabi.com
- Enter your site URL and run the audit
- Download the ZIP — it contains Schema.org, FAQ Schema, llms.txt, and robots.txt
- Save them to your project root as reference files (e.g.,
geo-assets/)
1
Run Codex with a GEO optimization prompt
Open your terminal in the project root and run:
Terminal
codex
Then paste this task description:
Codex Task Prompt
I need to add GEO optimization (structured data for AI search) to this project. Please do the following:
1. Add JSON-LD Organization Schema to the <head> of every page. The schema JSON is in geo-assets/schema.json.
2. Add JSON-LD FAQ Schema to the homepage <head> only. The FAQ schema is in geo-assets/faq.json.
3. Create or update public/robots.txt with the content from geo-assets/robots.txt.
4. Create public/llms.txt with the content from geo-assets/llms.txt.
For Next.js App Router: add scripts to app/layout.tsx using next/script or direct script tags in metadata.
For Vite/React: add to index.html <head>.
For static HTML: add directly to each HTML file's <head>.
Make sure all files are in the right location for the framework this project uses.
What Codex does
Codex will read your project structure, identify the framework, and make the exact file edits needed. It runs in a sandbox and shows you every change before applying.
2
Review and apply changes
- Codex will show a diff of all proposed changes
- Verify that Schema scripts appear in the right layout file
- Check that
public/robots.txtandpublic/llms.txtwere created - Accept the changes
3
Deploy and verify
- Deploy your changes
- Check your-site.com/robots.txt and your-site.com/llms.txt
- Go to causabi.com → run a new audit — score should reach 70+
- Validate Schema: validator.schema.org
Generate your GEO files for free
Causabi creates Schema.org, FAQ Schema, llms.txt, and robots.txt tailored to your specific site — ready for Codex to apply.
Generate GEO assets →