Zero-config navigation
Automatic route discovery
For Next.js apps, yak scans your app directory and extracts page metadata automatically. The AI knows every page in your app and can navigate users there. A CLI generates the manifest for production builds.
yak-nextjs generate-manifestWhat you get
- Auto-scans Next.js app and pages directories
- Extracts title and description from static page metadata
- CLI generates a route manifest for production builds
- Filter routes with include/exclude regex patterns
- Override with custom routes when you need to
How it works
Drop in the handler
createNextYakHandler() scans ./src/app and ./src/pages from the filesystem, skips api/ folders, and reads title and description from each page's static metadata export.
Generate the manifest for production
Because the compiled .next output drops source files, the yak-nextjs generate-manifest CLI pre-builds the routes at build time so scanning still works on Vercel and other serverless deploys.
The assistant navigates users
With every page known, a 'take me to pricing' request triggers a redirect through the same postMessage channel your onRedirect handler already uses, so navigation works in both chat and voice.
Frequently asked questions
Related features
Ship route discovery with yak
Add an AI assistant that matches your product—then turn on the features your users need.