Skip to content

Give the chatbot everything personal the site shows - #168

Merged
FindMalek merged 1 commit into
mainfrom
feat/167-chatbot-personal-context
Sep 30, 2026
Merged

FindMalek merged 1 commit into
mainfrom
feat/167-chatbot-personal-context

Conversation

@FindMalek

Copy link
Copy Markdown
Owner

Closes #167

What

  • config/about.ts (new): the About bio as data, paragraphs of text and link segments. components/app/about-overview.tsx renders from it, and the chatbot gets the same text through aboutSegmentsToText. One source, so they can't drift.
  • lib/chatbot-context.ts: a new personal block:
    • bio
    • facts: timezone, the gitista Update 'Digital Army' Project Link #1-in-Tunisia link, and all social links
    • photosAndStories: the OVERVIEW_CARDS stories (Üsküdar ferry, Jbal Rsas, the Cappadocia balloon with Jobflow, Vanille and Nevey, the haircut card)
    • booksImReading: BOOKS
    • music: Spotify profile and playlists, from the existing getUserPlaylists, which already returns an empty list on failure
    • companiesIveWorkedWith: CLIENTS
  • app/api/chat/route.ts:
    • Two honesty rules: personal answers come only from that block, with no added places, dates or book opinions, and music answers name real playlists without labelling genres.
    • One example exchange for music.

Verified

  • About section unchanged: against a production build of main, the inner text, every link's text, href, target and class, the bold spans and the block height are identical.
  • Real /api/chat replies (production build, Groq):
    • balloon photo → "over Cappadocia at sunrise, while I was up in a balloon with the Jobflow team"
    • reading → the 6 books from BOOKS
    • cats → "two cats, Vanille and Nevey"
    • music → real playlist names plus the Spotify profile link. Before the extra rule it invented genres.
    • Artweave → co-founded, acquired by Tunisian Design in 2023
    • travel → Üsküdar ferry, Jbal Rsas, Cappadocia
  • pnpm lint: 0 errors. pnpm build passes.

Note

#158 also edits lib/chatbot-context.ts, adding blog posts to the context. Whichever merges second needs a trivial merge: both add keys to the same context object.

The About bio moves into config/about.ts so the page and the chatbot
read the same text. The chat context gains a personal block: bio,
facts, photo stories, books, Spotify playlists and companies. The
system prompt keeps personal answers to that data.

Closes #167
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
findmalek Ready Ready Preview Sep 30, 2026 9:21pm UTC

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 909d0375-01be-4db4-b2fc-aa12dd56cb26

📥 Commits

Reviewing files that changed from the base of the PR and between a3bb5de and be2232a.

📒 Files selected for processing (4)
  • app/api/chat/route.ts
  • components/app/about-overview.tsx
  • config/about.ts
  • lib/chatbot-context.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@FindMalek
FindMalek merged commit 7c248de into main Sep 30, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — be2232a6 Deployed Sep 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: give the chatbot everything personal the site shows (photos, travels, books, music, companies, bio)

1 participant