A Next.js demo showcasing Inkeep's AI chat integration with personalized customer support.
- Simple Authentication: Name/email login with localStorage persistence
- AI Chat Integration: Inkeep sidebar chat with user context
- Responsive Design: Clean UI built with Tailwind CSS
- Next.js 15 (App Router)
- React 19
- TypeScript
- Tailwind CSS
- Zustand (State Management)
- Inkeep Widgets (AI Chat)
-
Install dependencies:
pnpm install
-
Set up environment variables: Create
.env.localwith your Inkeep credentials:NEXT_PUBLIC_INKEEP_API_KEY=your_api_key_here NEXT_PUBLIC_INKEEP_GRAPH_URL=your_graph_url_here NEXT_PUBLIC_INKEEP_TENANT_ID=your_tenant_id_here NEXT_PUBLIC_INKEEP_PROJECT_ID=your_project_id_here NEXT_PUBLIC_INKEEP_GRAPH_ID=your_graph_id_here
-
Run the development server:
pnpm dev
- Enter your name and email to login
- Click the "Ask AI" button to start chatting
- The AI assistant has access to your user context for personalized responses
src/
├── app/
│ ├── dashboard/page.tsx # Dashboard page
│ ├── page.tsx # Login page
│ ├── layout.tsx # Root layout
│ └── globals.css # Global styles
├── components/
│ ├── Login.tsx # Authentication component
│ └── InkeepChat.tsx # AI chat integration
└── store/
└── useUser.ts # User state management
pnpm dev: Start development server (port 8080)pnpm build: Build for productionpnpm start: Start production serverpnpm lint: Run ESLint