The Dream of an AI Assistant

Ever since I started building my own web presence — from portfolio to projects — I had one persistent wish:

"What if my website had a personal AI chatbot that actually knew me, could answer questions, and didn’t sound like a soulless script?"

I wasn’t looking for another ChatGPT plug-in or a basic support bot. I wanted something that felt like me, responded like me, and most importantly — understood my work, my skills, and my style.

Not just a chatbot. A studio assistant.

When Opportunity Knocked: Cloudflare Worker AI

One evening, while browsing Cloudflare’s documentation, I discovered something interesting:

Cloudflare Worker AI gives 10,000 free AI tokens daily. And it hit me:

"What if I could run a fully embedded AI assistant right from the edge, without relying on OpenAI, paying API bills, or losing control over the system?"

So I set out to build it — from scratch.

What Makes This AI Chatbot Special?

This isn't just a chat widget with random replies. The bot, called SYNTAX, is a context-aware, real-time, domain-trained AI that can:

🔍 Understand Intent

Whether you're asking about marketing, my education, my projects, or just chatting — it can tell.

It parses whether you want a fact, an opinion, or something more nuanced like a comparison.

🧠 Learn From My Website

It indexes all content from my website: blog posts, photography, business plans, tech projects.

Then it generates vector embeddings and semantic search indexes.

Whenever I update my site, the chatbot learns it automatically. No retraining needed.

💾 Smart Use of Cloudflare KV

It stores indexed content using Cloudflare KV (key-value storage).

One tradeoff? The free version of Cloudflare KV only allows 1,000 keys, so I had to be creative about what content mattered most.

⚡ Powered by Edge AI

It runs entirely on Cloudflare Workers, meaning responses are fast, secure, and global.

The UI integrates as a chat bubble that supports light/dark themes and keyboard navigation — all within my existing site.

Personality? Included.

Syntax Ai writing poem about shain studio.png

The coolest part? SYNTAX isn’t robotic. It can:

  • Crack jokes
  • Write poems
  • Chat about my life like a human who read my resume and stalked my portfolio
  • It even knows my background:

"I’m Shain Wai Yan — a 22-year-old trilingual marketing specialist, creative technologist, and web creator."

"Fluent in English, Burmese, and intermediate Chinese."

"With skills spanning digital marketing (95%), traditional marketing (98%), coding, photography, and creative content." kinda like that .

Where It Shines (and the Limits)

✅ Highlights:

  • Custom identity handling (knows “Shain” and “Shain Wai Yan”)
  • Multi-strategy response generation
  • Maintains up to 30 messages of conversation context
  • Can be used offline — no OpenAI API needed
  • Fast and scalable, even for mobile visitors

⚠️ Limitations:

Bound by Cloudflare’s KV key limit (1,000 max) on the free tier

Doesn’t learn from user feedback — only from site content and hardcoded data

No persistent memory beyond what’s stored in KV or embedded in logic

Still — for zero cost, the result was nothing short of amazing.

🎯 What I Learned

You don’t need fancy budgets to build powerful AI.

Edge computing with Workers can create serious magic.

If you deeply understand your content and audience, you can train a chatbot that feels real — even if it's running on free-tier limits.

🚀 Final Thoughts: Why This Matters

I didn’t build this chatbot to "go viral" or make sales. I built it because I wanted a piece of tech that was personal, useful, and a little futuristic. Something that made my website come alive.

And now when a visitor lands on my site, they can talk directly to something that represents me, not just some AI.

It’s not perfect, but it’s mine.

🔗 Want to Try It?

Tap the little chat bubble in the corner — and say hi to SYNTAX.