AI Profile Enrichment Form
AI Profile Enrichment Form
Analyze user profiles with AI and provide personalized suggestions. Enriches data, suggests improvements, and offers career insights.
Problems solved
- Enrich sparse profile forms into fuller structured profiles
- Generate missing profile fields with generateObject
- Let users review AI enrichments before accepting them
Use cases
- CRM lead enrichment forms
- User onboarding profile completion
- Directory listing intake forms
- Marketplace seller profile builders
Setup
Requirements, wiring steps, and what this pattern adds to your project.
Getting started
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
- 1
Install from the preview toolbar

Copy the install command above and run it in your project — Pro patterns include a short-lived token.
- 2
Add environment variables to .env.local
OPENAI_API_KEY
- 3
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
- 4
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
Environment variables
OPENAI_API_KEYGet key
Capabilities
AI SDK APIs
streamObjectcreateStreamableValueProviders
External services
Files added
5 filesapp/page.tsxapp/layout.tsxapp/actions.tsxlib/schema.tslib/rate-limit.ts
Dependencies
18 totalnpm packages
11
Registry components
Critical files
app/actions.tsxCore AI pipeline: uses streamObject with OpenAI and createStreamableValue to stream structured profile enrichment (tags, category, skill level, career suggestions) back to the client in real-time.
lib/schema.tsDefines the enrichedProfileSchema (suggestedTags, categoryMatch, skillLevel, careerSuggestions) and the profileFormSchema for input validation. Essential for the streamObject pipeline.
Requirements
- Complexity
- Intermediate
- Setup time
- ~10 minutes
- Node
- 24+
- Memory
- 256MB









