SmartAutoFill Docs
Setup notes for the SmartAutoFill hosted AI extension.
SmartAutoFill
SmartAutoFill connects the Chrome extension to a hosted AI API, account login, credit balance, and paid credit packs.
MVP Flow
- Users install the Chrome extension.
- They connect an account through
/extension/connect. - New users receive free credits.
- The extension sends selected form fields to
/api/extension/autofill. - The backend generates an autofill plan and consumes the configured SmartAutoFill credit cost after success.
Production Checklist
- Configure
NEXT_PUBLIC_APP_URL. - Configure Better Auth and Google login.
- Configure the payment provider.
- Run
pnpm smartautofill:seed-config. - Configure the Chrome extension ID allowed by the hosted API.