First, connect the AI mentor. In the real app this is where you add a key, a local model, or an in-browser model.
One short profile becomes one model call. There is a single wait instead of a long back-and-forth.
Task: write slugify(title). Lowercase it, trim it, and join words with single hyphens. Drop punctuation and leave no hyphen at either end.
This code runs in a Web Worker in your browser, with a timeout. No server is involved. The real app also runs Python and SQL this way.