Explore the site through a conversation.
Chatbot: Ask Freddy is the website’s accessible chat guide. It answers suggested questions instantly and helps visitors find relevant experience, projects, and articles with links to the original pages.
The product
A source-linked guide on every page.
The Astro site mounts one chat dialog in its shared layout. Suggested FAQs work in the browser without a network request. For custom questions, a Cloudflare Worker searches published site content and returns a concise excerpt with source links. Workers AI support is built in, but production currently uses the FAQ and site-guide path while live inference is being investigated.
What it does
Designed for useful, verifiable answers.
Instant FAQs
Suggested answers work locally, even when the chat API is unavailable. A no-JavaScript FAQ is available too.
Relevant site evidence
Custom questions search text from the public résumé, project descriptions, and published articles; matching excerpts are ranked before an answer is prepared.
Source links
Answers link to original site pages. Links come from the content index, never from text generated by a model.
Lightweight conversation
Up to two recent exchanges stay in page memory for follow-up questions. Clear chat removes them; nothing is saved to browser storage.
Accessible dialog
The mobile-friendly interface supports keyboard navigation, Escape to close, focus return, and a clear-chat control.
Contact privacy
Phone numbers, email addresses, and contact-card lines are removed from chat evidence. Contact-detail questions point to the contact page.
How it works
From question to source.
- AskChoose a FAQ or submit a custom question in the website dialog.
- RetrieveFor a custom question, the Worker ranks matching excerpts from the site’s public content.
- AnswerThe site guide returns a relevant excerpt. When enabled and within quota, Workers AI can generate a short answer from the same evidence.
- ExploreOpen the source links to read the full résumé, project, or article.
Behind the experience
A small, controlled architecture.
Astro and Cloudflare Worker
The shared Astro layout hosts the dialog. Same-origin POST /api/chat validates bounded JSON input and serves custom answers from the Cloudflare Worker.
Retrieval without a vector database
The Worker turns public content into overlapping plain-text chunks, weights title and body term matches, and selects up to three relevant excerpts.
Optional Workers AI
The pinned Cloudflare model is Gemma 4 26B A4B IT. Prompts are capped at 8,192 bytes and completions at 256 tokens; there is no paid provider fallback or automatic retry.
Durable usage limits
A SQLite Durable Object reserves at most 20 AI attempts per UTC day across the site, three per visitor daily, and one per visitor every 20 seconds. Failed calls remain counted.
Privacy boundaries
Only daily hashed visitor identifiers and counters are stored for the AI quota. Chat text and raw IP addresses are not stored or logged by this feature.
Separate from FredSocial
This website chatbot has its own endpoint and Cloudflare AI design. The FredSocial iOS assistant uses a different app and site API flow.
Current production mode: FAQs and source-linked site guide. AI inference is disabled until a successful live answer is verified on Workers Free.