A creative writing assistant that combines character analysis with AI-powered story generation. Built with Next.js and powered by OpenAI's GPT models.
- Character Analysis: Upload and analyze text files to extract detailed character information
- Interactive Chat Interface: Seamless chat experience for story generation and character analysis
- AI Story Generation: Create new stories based on analyzed characters using GPT-4
- Character Table: Clean, formatted display of character information including:
- Character names and roles
- Physical descriptions
- Personality traits
- Relationships
- Background information
- Story Management: Generate, save, and view multiple stories with character integration
- Install the dependencies:
npm install
- Set up your environment variables:
Create a
.env
file in the root directory with:
OPENAI_API_KEY=your_openai_api_key
- Run the development server:
npm run dev
- Open http://localhost:3000 with your browser to start using the application.
- Upload Text: Start by uploading a text file containing your story or character descriptions
- Character Analysis: The system will automatically analyze and extract character information
- View Characters: Check the character table to see the extracted information
- Generate Stories: Use the chat interface to create new stories based on the analyzed characters
- Save Stories: Save your generated stories for future reference
- Frontend: Next.js with TypeScript
- UI Components: Tailwind CSS and Shadcn UI
- AI Integration: OpenAI GPT-4 API
- State Management: React Context API
To learn more about the technologies used in this project: