Skip to content
> gerardo.dev
2026Fullstack Software AI Engineer

Portfolio AI Assistant

A chat inside this very site that answers a recruiter's questions about my background, using only the content of my resume and portfolio. Try it with the robot in the corner.

Next.jsTypeScriptClaude APINetlify FunctionsNetlify BlobsMotion
Portfolio AI Assistant

Problem

Recruiters have minutes, not hours, and a generic chatbot makes things up: the assistant had to be useful, honest about what it does not know and cheap to keep open.

Solution

The model can only answer from a knowledge block built from the same data as the site: projects, experience, certifications and an extended profile.

  • It cites each fact with a link to its source; nonexistent references are dropped.
  • Runs on Claude Haiku 5.5 with streaming and prompt caching for the knowledge block.
  • Checks origin and body shape, and ignores instructions that try to change its role.
  • 10 questions per hour per IP and 300 a day site-wide.

Outcome

It runs in production and answers in about 3 to 4 seconds, measured from the browser, after debugging three failures that never showed up locally.

  • Haiku 5.5 rejects the temperature parameter.
  • Extended thinking spent every token and returned an empty answer, so it is disabled.
  • On Netlify it hung for 30 seconds; every external step now has a timeout.
  • Under a tenth of a cent per question: estimated, not yet measured.
Read the full story2 min read
Problem
A recruiter has minutes, not hours: they will not read a full resume to find out whether someone has worked with payments or which stack they know. A generic chatbot would answer by making things up, which is worse than not answering. And a public endpoint that calls a model invites abuse and spending someone else's money, so the assistant had to be useful, honest about what it does not know, and cheap to keep open.
Solution
The model can only answer from a knowledge block built from the same data that powers the site (projects, experience, certifications and an extended profile with no phone number or references), and it cites where each fact comes from with markers like [[project:waypoint]] that the chat turns into links; references that do not exist are dropped on the client. It runs on Claude Haiku 5.5 with streamed responses, and that knowledge block uses prompt caching because it is identical on every question. The endpoint checks origin and body shape, caps questions at 500 characters and conversations at 8 turns, ignores instructions that try to change its role, and enforces 10 questions per hour per IP (stored only as a hash) and 300 per day site-wide. It is bilingual, the button can be dragged to either edge, and on phones it does not pop the keyboard open on entry.
Outcome
It runs in production and answers in about 3 to 4 seconds, measured from the browser. Getting there meant debugging three failures that never showed up locally: Haiku 5.5 rejects the temperature parameter; with extended thinking on it spent every token reasoning and returned an empty answer, so thinking is disabled and an empty answer now logs its reason; and on Netlify the function hung for 30 seconds until the platform killed it, so every external step (rate-limit storage and the model call) now has a timeout and logs how long it took. Cost is under a tenth of a cent per question, estimated from the model's published prices and not yet measured against real usage.