← All projects
Chatbot: Ask Freddy · Website feature · Source-linked chatbot

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.

Illustration of an assistant exploring a collection of published articles.

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.

Designed for useful, verifiable answers.

01 / Start

Instant FAQs

Suggested answers work locally, even when the chat API is unavailable. A no-JavaScript FAQ is available too.

02 / Search

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.

03 / Verify

Source links

Answers link to original site pages. Links come from the content index, never from text generated by a model.

04 / Continue

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.

05 / Access

Accessible dialog

The mobile-friendly interface supports keyboard navigation, Escape to close, focus return, and a clear-chat control.

06 / Protect

Contact privacy

Phone numbers, email addresses, and contact-card lines are removed from chat evidence. Contact-detail questions point to the contact page.

From question to source.

  1. AskChoose a FAQ or submit a custom question in the website dialog.
  2. RetrieveFor a custom question, the Worker ranks matching excerpts from the site’s public content.
  3. AnswerThe site guide returns a relevant excerpt. When enabled and within quota, Workers AI can generate a short answer from the same evidence.
  4. ExploreOpen the source links to read the full résumé, project, or article.

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.

Ask Freddy

Explore my experience, projects, and articles.

Welcome

What would you like to explore? Choose a question below or ask your own.