SoileGPT.Chat

UI • Agent • SEO • Cloudflare Pages

Product blueprint: soilegpt.chat

A deployable chat product: UI, Agent, and SEO.

This repo is intentionally simple for Cloudflare Pages: an SEO landing page at /, a React chat UI at /chat, and a serverless agent endpoint via Pages Functions at /api/chat.

Fast static delivery No SSR required for landing Agent endpoint on the same domain Sitemap + robots included

What you get

UI (React)

Clean chat interface with history, local persistence, and an opinionated “product” layout (not a demo widget).

Agent (Pages Functions)

POST /api/chat proxies requests to OpenAI using a server-side API key stored in Cloudflare environment variables.

SEO foundation

Landing page is plain HTML (fast indexing), plus robots.txt, sitemap.xml, canonical, and OG metadata.

FAQ

Is this “production ready”?

It is production-structured: clean routing, static SEO, and a server-side API boundary. You still must set environment variables, add your own policies (rate limits, allowlist), and decide logging/analytics.

Do search engines index the chat UI?

By default, the landing page is indexable. The chat UI is typically thin-content and can be set to noindex. If you want the chat page indexed, add a short explanatory block + unique metadata in /chat/index.html.

Where do I change the domain?

Update canonical + sitemap URLs after attaching your custom domain in Cloudflare Pages. Files: /index.html and /public/sitemap.xml.