Skip to content

DeepChat + Next.js

I need to... Guide
Understand what DeepChat is and when to use it DeepChat Overview
Install and configure DeepChat in Next.js Installation & Setup
Configure the connect property and interceptors Connect Configuration
Create Next.js API route handlers Next.js API Routes
Handle CSRF tokens and authentication Next.js API Routes
Implement SSE streaming responses Streaming Responses
Structure messages and handle history Message Formats & History
Integrate with Drupal AI module Drupal Backend Integration
Connect directly to OpenAI or Anthropic AI Provider Integration
Style and theme DeepChat Styling & Theming
Upload files and images File Upload & Attachments
Add custom request handlers Custom Handlers
Implement authentication and sessions Authentication & Sessions
Follow architecture best practices Best Practices & Patterns
Prevent XSS attacks and secure the app Security
Avoid common mistakes Anti-Patterns & Common Mistakes