{"id":35103499,"url":"https://github.com/arbitroy/ai-arbitroy","last_synced_at":"2026-04-07T14:31:50.467Z","repository":{"id":316031171,"uuid":"1060146427","full_name":"arbitroy/ai-arbitroy","owner":"arbitroy","description":"A Spring Boot application that integrates Google Gemini AI for chat functionality and intelligent customer feedback analysis.","archived":false,"fork":false,"pushed_at":"2025-09-22T09:14:01.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T10:17:48.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arbitroy.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-19T13:02:36.000Z","updated_at":"2025-09-22T09:37:10.000Z","dependencies_parsed_at":"2025-09-22T10:19:19.281Z","dependency_job_id":null,"html_url":"https://github.com/arbitroy/ai-arbitroy","commit_stats":null,"previous_names":["arbitroy/ai-arbitroy"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arbitroy/ai-arbitroy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbitroy%2Fai-arbitroy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbitroy%2Fai-arbitroy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbitroy%2Fai-arbitroy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbitroy%2Fai-arbitroy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arbitroy","download_url":"https://codeload.github.com/arbitroy/ai-arbitroy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbitroy%2Fai-arbitroy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T17:35:14.948Z","updated_at":"2026-04-07T14:31:50.461Z","avatar_url":"https://github.com/arbitroy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Arbitroy - Spring Boot AI Chat \u0026 Feedback System\n\nA Spring Boot application that integrates Google Gemini AI for chat functionality and intelligent customer feedback analysis.\n\n## Features\n\n### 🤖 AI Chat\n- Real-time chat with Google Gemini AI\n- Clean, responsive web interface\n- HTMX-powered seamless interactions\n\n### 📊 Smart Feedback Analysis\n- **Automatic categorization**: Compliment, Complaint, Suggestion, Query\n- **Sentiment analysis**: Positive, Negative, Neutral\n- **AI-generated titles**: Short, descriptive summaries\n- **Visual dashboard**: Color-coded categories and sentiment indicators\n\n## Tech Stack\n\n- **Backend**: Spring Boot 3.5.6, Java 17\n- **Frontend**: Thymeleaf, HTMX, Tailwind CSS\n- **AI**: Google Vertex AI Gemini\n- **Database**: H2 (in-memory)\n- **Build Tool**: Maven\n\n## Quick Start\n\n### Prerequisites\n- Java 17+\n- Maven 3.6+\n- Google Cloud Project with Vertex AI enabled\n\n### Setup\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd ai-arbitroy\n   ```\n\n2. **Configure environment variables**\n   ```bash\n   cp .env.example .env\n   ```\n   \n   Update `.env` with your Google Cloud credentials:\n   ```\n   GEMINI_PROJECT_ID=your_google_cloud_project_id\n   GEMINI_LOCATION=us-central1\n   GEMINI_MODEL=gemini-pro\n   GEMINI_TEMP=0.7\n   ```\n\n3. **Run the application**\n   ```bash\n   ./mvnw spring-boot:run\n   ```\n\n4. **Access the application**\n   - Chat: http://localhost:8082\n   - Feedback: http://localhost:8082/feedback\n\n## Usage\n\n### Chat Interface\n- Navigate to the home page\n- Type messages and get AI responses instantly\n- Clean, mobile-friendly interface\n\n### Feedback System\n- Fill out the feedback form (name, product, comment)\n- AI automatically analyzes and categorizes feedback\n- View results in the live dashboard table\n- Categories: Compliment 😊, Complaint 😞, Suggestion 💡, Query ❓\n\n## API Endpoints\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/` | GET | Chat interface |\n| `/feedback` | GET | Feedback form page |\n| `/chat` | POST | Submit chat message (HTMX) |\n| `/submit-feedback` | POST | Submit feedback for AI analysis (HTMX) |\n| `/api/google-gemini/chat` | POST | REST API for chat |\n\n## Project Structure\n\n```\nsrc/main/java/com/concept/ai_arbitroy/\n├── Controller/\n│   ├── WebChatController.java          # Chat interface\n│   ├── CustomerFeedBackController.java # Feedback system\n│   └── GoogleGeminiChatController.java # REST API\n├── Service/\n│   ├── SimpleChatService.java          # Basic chat service\n│   ├── FeedbackService.java            # Feedback management\n│   └── FeedbackAnalysisService.java    # AI analysis logic\n├── entity/\n│   └── Feedback.java                   # Feedback data model\n└── dto/\n    ├── ChatResponse.java               # Chat API response\n    └── FeedbackAnalysis.java           # AI analysis result\n```\n\n## Configuration\n\nThe application uses the following configuration files:\n- `application.properties` - Spring Boot configuration\n- `.env` - Environment variables (Google Cloud credentials)\n\n## Development\n\n### Adding New Features\n1. Create new controllers in the `Controller` package\n2. Add business logic to the `Service` package\n3. Create Thymeleaf templates in `src/main/resources/templates/`\n4. Use HTMX for dynamic interactions\n\n### Database\nCurrently uses H2 in-memory database. To use a persistent database, update dependencies in `pom.xml` and configuration in `application.properties`.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Support\n\nFor issues and questions, please create an issue in the repository or contact the development team.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbitroy%2Fai-arbitroy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farbitroy%2Fai-arbitroy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbitroy%2Fai-arbitroy/lists"}