https://github.com/octavadi/interactive-story-project
๐ง Modular Interactive Story Template | n8n Chatbot Integration | Web Components Architecture | Cross-browser Compatible | Perfect for creating engaging story experiences with AI narrator support
https://github.com/octavadi/interactive-story-project
ai-narrator chatbot cross-browser css3 html5 interactive-fiction interactive-story javascript modular-architecture n8n-integration responsive-design story-template storytelling template-system web-components
Last synced: about 1 month ago
JSON representation
๐ง Modular Interactive Story Template | n8n Chatbot Integration | Web Components Architecture | Cross-browser Compatible | Perfect for creating engaging story experiences with AI narrator support
- Host: GitHub
- URL: https://github.com/octavadi/interactive-story-project
- Owner: octavadi
- License: mit
- Created: 2025-08-27T01:29:52.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-08-27T08:16:48.000Z (about 1 month ago)
- Last Synced: 2025-08-27T10:16:57.783Z (about 1 month ago)
- Topics: ai-narrator, chatbot, cross-browser, css3, html5, interactive-fiction, interactive-story, javascript, modular-architecture, n8n-integration, responsive-design, story-template, storytelling, template-system, web-components
- Language: JavaScript
- Homepage: https://your-username.github.io/interactive-story-project
- Size: 19 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ Interactive Story Project
[](LICENSE)
[](#)
[](#)
[](#)Template sistem untuk membuat interactive story dengan integrasi chatbot n8n. Proyek ini menggunakan arsitektur modular dengan chatbot template yang dapat digunakan ulang di berbagai proyek story.
## โจ Demo

## ๐ Features
### ๐ Story Features
- โ Interactive story content dengan pilihan cerita
- โ Editable text (double-click to edit)
- โ Image upload untuk scenes
- โ Responsive design untuk semua device
- โ Navigation system yang intuitif
- โ Chat history dan save progress### ๐ค Chatbot Features
- โ n8n workflow integration
- โ Real-time chat dengan typing indicators
- โ Configurable bot personality
- โ Multiple persona templates
- โ Message history dan context awareness
- โ Error handling & retry mechanism
- โ Webhook security protection### ๐ง Technical Features
- โ Cross-browser compatibility (Chrome, Safari, Edge, Firefox)
- โ Mobile-first responsive design
- โ Web Components architecture
- โ Modular template system
- โ Comprehensive debugging tools
- โ Performance optimized
- โ PWA ready## ๐๏ธ Project Structure
```
interactiveStory_proj/
โโโ ๐ index.html # Main story page
โโโ ๐ discussion.html # Discussion page
โโโ ๐จ styles/ # Styling files
โ โโโ main.css # Core styles
โ โโโ index.css # Homepage styles
โ โโโ discussion.css # Discussion page styles
โ โโโ browser-compatibility.css # Cross-browser support
โโโ โก js/ # JavaScript files
โ โโโ main.js # Main story logic
โ โโโ browser-polyfills.js # Browser compatibility
โ โโโ error-handler.js # Error management
โ โโโ performance-utils.js # Performance utilities
โ โโโ chat-history-manager.js # Chat history functionality
โโโ ๐ค chatbot-template/ # Reusable chatbot system
โ โโโ components/ # Chat UI components
โ โโโ js/ # Core chatbot logic
โ โโโ styles/ # Chatbot styling
โ โโโ tools/ # Debugging tools
โ โโโ examples/ # Configuration examples
โ โโโ docs/ # Template documentation
โโโ ๐งช testing/ # Test files
โ โโโ test-chat-history.html
โ โโโ test-discussion.html
โ โโโ browser-test.html
โ โโโ test-markdown-cleanup.html
โโโ ๐งฉ components/ # Shared components
โ โโโ shared-footer.js
โโโ ๐ผ๏ธ assets/ # Static assets
โ โโโ images/ # Story images
โ โโโ icons/ # UI icons
โโโ ๐ ๏ธ scripts/ # Utility scripts
โโโ cleanup-old-files.sh
โโโ setup-new-project.sh
```## ๐ Quick Start
### ๐ Prerequisites
- Web browser yang modern (Chrome 60+, Safari 12+, Edge 79+, Firefox 65+)
- Local web server (optional, untuk development)
- n8n instance untuk chatbot integration### ๐ฏ Running Locally
1. **Clone repository**
```bash
git clone https://github.com/yourusername/interactive-story-project.git
cd interactive-story-project
```2. **Open in browser**
```bash
# Langsung buka file
open index.html# Atau gunakan local server (recommended)
python -m http.server 8000
# Then visit http://localhost:8000
```3. **Configure chatbot** (optional)
```bash
# Buka bot configuration
open chatbot-template/botSetting.html
```### โ๏ธ Configuration
#### ๐ค Bot Setup
1. **Setup n8n workflow**: Import `chatbot-template/examples/n8n-chatbot-workflow.json`
2. **Configure bot settings**: Buka `chatbot-template/botSetting.html`
3. **Set webhook URL**: Update endpoint di konfigurasi bot
4. **Choose persona**: Pilih dari predefined templates
5. **Test connection**: Gunakan diagnostic tools#### ๐จ Customization
```javascript
// Configure story-specific bot
const storyConfig = {
botName: "Story Narrator",
botDescription: "Your guide through this adventure",
botAvatar: "๐",
webhookUrl: "YOUR_WEBHOOK_URL_HERE", // Jangan commit URL asli!
theme: {
primaryColor: "#3b82f6",
secondaryColor: "#60a5fa"
}
};window.ConfigManager.saveConfig(storyConfig);
```## ๐ ๏ธ Development
### ๐ Creating New Story Project
```bash
# Gunakan setup script
./scripts/setup-new-project.sh my-new-story# Atau manual copy template
cp -r chatbot-template/ /path/to/new-project/
```### ๐งช Testing
```bash
# Browser compatibility test
open testing/browser-test.html# Chat history test
open testing/test-chat-history.html# Webhook connection test
open chatbot-template/tools/test-webhook-connection.html# n8n diagnostic
open chatbot-template/tools/n8n-diagnostic.html
```### ๐ฑ Browser Support
| Browser | Version | Status |
|---------|---------|--------|
| **Chrome** | 60+ | ๐ข Full Support |
| **Safari** | 12+ | ๐ข Full Support |
| **Edge** | 79+ | ๐ข Full Support |
| **Firefox** | 65+ | ๐ข Full Support |## ๐ Security
> **โ ๏ธ Important**: Jangan commit webhook URLs atau API keys ke repository!
- Gunakan environment variables untuk sensitive data
- Webhook URLs dan secrets sudah di-exclude dalam `.gitignore`
- Test konfigurasi menggunakan file local yang tidak di-track git## ๐ Documentation
- **[Chatbot Template Guide](chatbot-template/README.md)**: Dokumentasi lengkap template
- **[Browser Compatibility](BROWSER_COMPATIBILITY.md)**: Cross-browser support guide
- **[Template Usage](TEMPLATE_USAGE.md)**: Cara menggunakan template system## ๐ค Contributing
1. Fork repository ini
2. Create feature branch (`git checkout -b feature/amazing-feature`)
3. Commit changes (`git commit -m 'Add some amazing feature'`)
4. Push to branch (`git push origin feature/amazing-feature`)
5. Open Pull Request## ๐ Troubleshooting
### Common Issues
- **Webhook 404**: Pastikan n8n workflow sudah aktif
- **Config Not Saving**: Cek localStorage availability di browser
- **Components Not Loading**: Periksa script loading order
- **CORS Errors**: Configure n8n CORS settings### Debug Tools
- Gunakan `testing/browser-test.html` untuk compatibility testing
- Check `chatbot-template/tools/` untuk debugging utilities
- Buka browser console untuk error messages
- Test webhook connectivity dengan diagnostic tools## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ Acknowledgments
- Built with modern web standards
- Powered by n8n for chatbot integration
- Icons and images generated with AI assistance
- Cross-browser compatibility tested extensively## ๐ Next Steps
1. **๐ Explore Documentation**: Familiarize dengan template system
2. **๐งช Test Integration**: Gunakan diagnostic tools
3. **๐จ Customize**: Apply story theme dan branding
4. **๐ Create New Stories**: Use setup script untuk new projects
5. **๐ค Contribute**: Share improvements back ke community---
**๐ Happy storytelling! Mari buat interactive stories yang amazing! ๐**