K.AIPORTFOLIO AGENT · WEB● LIVE ON THIS SITE

Ask my portfolio anything

k.ai chat open on the portfolio

A chat agent that only knows my work, answers in my voice, and only calls AI when it has to.

Most visitors have one question, like how I work with engineers. k.ai answers it in a few lines and links to the page with the details. Common questions get a saved answer instantly. New ones go to a live AI that sees only the notes it needs, so it stays fast, honest and within a free API limit.

IN NUMBERS● LIVE
36suggested questions answered with no AI call
~5Ktokens per AI message, down from 14K
6live AI answers per visitor a day
2AI providers: Groq, then OpenRouter
ROLE
Designer and builder
TIMELINE
First version Dec 2025, live version Oct 2026
PLATFORM
Web, inside this portfolio
BUILT WITH
Next.js, TypeScript, Groq, OpenRouter, Claude Code
FIRST VERSION
React, Express, Gemini GitHub ↗
IDEA

Let people ask, instead of read

A portfolio asks people to read a lot. k.ai lets them ask one question and get a short answer, in my voice, with a link to the full story.

It only talks about my work. It says no to everything else, and when something isn't in my notes, it says so instead of guessing.

ONLY MY WORKNo rewriting, coding help or trivia. It refuses politely, then points to ChatGPT if asked again.
HONESTIf a detail isn't written down, it says so and offers a call.
LINKS BACKAnswers point to the case study they came from, so people can check.
HOW I BUILT IT

Three versions, each one cheaper and more honest

  1. Gemini, one long prompt (Dec 2025): built in Google AI Studio. All my notes, rules, tone and error handling in one system prompt, behind a small Express server. It worked, but every message, even hi, called the AI.
  2. No AI at all: 45 answers I wrote myself, matched by keywords, plus a search over my case studies. Free and instant, but anything new got a quote from a page, not a real answer.
  3. Saved answers first, live AI second (Oct 2026): the same saved answers handle common questions, and only new ones go to a live AI, with just the notes that match. Built with Claude Code.
HOW IT ANSWERS

A router decides if a question needs AI

Most messages never reach the AI

Every question the chat suggests has a saved answer, so clicking around costs nothing. Long, specific questions skip the saved answers, because a general reply to a detailed question feels wrong.

  • RAG, kept simple: my notes (case studies, experience, the saved answers) are split into small sections. For each question, the sections that share the most words with it are picked, up to about 5,000 characters.
  • A small core always goes: the rules, my tone, about me, my experience and the list of pages to link to.
  • Newest wins: the saved answers are the most up to date, so the AI is told to trust them over older notes.
KEEPING COSTS LOW

Built to fit a free API limit

The free Groq tier allows about 8,000 tokens a minute. My full notes are about 14,000, so sending everything with each message wasn't possible. These limits keep it running for free:

SAVED ANSWERS FIRSTAll 36 suggested questions, greetings and off-topic messages are answered from saved answers, with no AI call.
ONLY MATCHING NOTESEach AI message carries about 5,000 tokens instead of 14,000.
SHORT MEMORYOnly the last 6 messages go along, each trimmed, and answers are capped in length.
A DAILY LIMIT6 live answers per visitor a day. After that, a polite note points to email and LinkedIn, and saved answers keep working.
A FALLBACK CHAINGroq first, then Gemma on OpenRouter, then the closest saved answer, so the chat never breaks.
KEYS ON THE SERVERThe API keys live only on the server; the browser never sees them.
SCREENS

Three kinds of reply

k.ai saved answer
01 · A suggested question: a saved answer, instantly, with no AI.
k.ai live AI answer
02 · A detailed question: the live AI says what it knows and what it doesn't.
k.ai daily limit reply
03 · After 6 live answers: a polite note, and saved answers still work.

BUILD YOUR OWN · Write your common answers first, send the AI only the notes it needs, and cap the rest. Any AI coding tool can build this in an afternoon; the thinking is in the rules.

A DESIGNER BY CRAFT, A BUILDER BY HABIT.© 2026 KAILAS PARAMESWARAN
Hello