Prerequisites: A React app using Next.js 14+, Remix v2, or TanStack Start, and a ModifyWithAI account.
Get Your Credentials
Go to modifywithai.com/dashboard, create a new app or select an existing one, and copy your App ID and API Key.
Run the Integration Agent
In your dashboard, click “Copy Integration Prompt”. Paste this into an AI coding assistant:The agent will scan your codebase, discover actions, generate definitions, create the token endpoint, and build the assistant UI.
- Claude Code
- Cursor
- Other
What Gets Created
Files created by the integration agent
Files created by the integration agent
| File | Purpose |
|---|---|
app/api/mwai/token/route.ts | Token endpoint (Next.js) |
components/assistant.tsx | Assistant UI with actions |
.env.local | API key configuration |
What Your Users Get
Once integrated, your users can interact with the assistant in three ways:Execute Actions
“Create a new project” triggers your defined functions
Get Help from Docs
“How do I export data?” searches your documentation
Escalate Issues
Unresolved problems get routed to you with full context