Project Introduction
Relevant source files
The following files were used as context for generating this wiki page:
- README.md
- BACKEND/package.json
- frontend/front/package.json
- BACKEND/src/controllers/chatbot.controller.js
- BACKEND/src/routes/articles.routes.js
- BACKEND/src/routes/producthunt.routes.js
- frontend/front/src/chatbot/chatbot.jsx
- frontend/front/src/Article/article.jsx
- frontend/front/src/help/help.jsx
- frontend/front/src/getstarted/getstarted.jsx
Bridge AI is a comprehensive AI-powered networking and resource platform designed to assist entrepreneurs in connecting with experts, finding relevant industry information, and discovering trending products. The platform integrates advanced AI models for conversational assistance, automated summarization of news articles, and external API integrations for real-time market data.
The project is structured into a modern full-stack architecture, utilizing a Node.js/Express backend to handle complex AI logic and external integrations, and a React-based frontend built with Vite for a responsive user experience.
Sources: frontend/front/src/help/help.jsx:16-18, frontend/front/README.md:1-5, BACKEND/package.json:1-15
System Architecture
The application follows a client-server architecture. The backend serves as an orchestration layer between the user interface and various third-party services, including OpenAI, Groq, NewsAPI, and Product Hunt.
High-Level Component Overview
| Layer | Technology Stack | Key Responsibilities |
|---|---|---|
| Frontend | React, Vite, Tailwind CSS, Axios | User interface, state management, API consumption, and interactive chatbot UI. |
| Backend | Node.js, Express, LangChain | API routing, AI prompt engineering, external data fetching, and profile link generation. |
| AI/LLM | Groq (Llama3), OpenAI (GPT-4) | Processing natural language queries, generating outreach messages, and summarizing articles. |
| Data Sources | NewsAPI, Product Hunt API | Providing real-time articles and trending product data. |
Sources: BACKEND/package.json:18-38, frontend/front/package.json:13-22, BACKEND/src/controllers/chatbot.controller.js:103-107, BACKEND/src/routes/articles.routes.js:11-14
Architecture Flow Diagram
The following diagram illustrates how user requests flow through the system to interact with AI models and external data providers.
Core Functional Modules
1. AI Networking Assistant (Chatbot)
The chatbot serves as a networking assistant capable of finding professionals, summarizing expertise, and suggesting engagement strategies. It uses the llama3-8b-8192 model via Groq. A unique feature of the controller is its ability to extract professional names from AI responses using regex and automatically generate social media profile links (LinkedIn and Twitter) for those individuals.
Sources: BACKEND/src/controllers/chatbot.controller.js:103-112, BACKEND/src/controllers/chatbot.controller.js:114-121, frontend/front/src/chatbot/chatbot.jsx:165-177
2. Smart Article Summarization
This module fetches news articles based on user queries (defaulting to "entrepreneurship"). To enhance readability, the system passes article content through OpenAI's GPT-4 model to generate concise, 100-token summaries before delivering the data to the frontend.
3. Product Showcase
The system integrates with the Product Hunt V2 GraphQL API to retrieve "Products of the Month." It specifically targets posts with high vote counts within specific timeframes.
| Field | Data Mapping | Source File |
|---|---|---|
name | node.name | producthunt.routes.js:43 |
description | node.tagline | producthunt.routes.js:44 |
votes | node.votesCount | producthunt.routes.js:45 |
image | node.thumbnail.url | producthunt.routes.js:46 |
Key API Endpoints
The backend exposes several critical endpoints for the frontend to consume:
| Endpoint | Method | Description | Controller/Route |
|---|---|---|---|
/api/v1/chatbot/query | POST | Processes AI networking queries. | chatbot.controller.js |
/api/v1/articles | GET | Fetches and summarizes industry news. | articles.routes.js |
/api/v1/products | GET | Retrieves trending products from Product Hunt. | producthunt.routes.js |
Sources: BACKEND/src/routes/articles.routes.js:31, BACKEND/src/routes/producthunt.routes.js:58, frontend/front/src/chatbot/chatbot.jsx:144
Project Summary
Bridge AI provides a centralized hub for entrepreneurial growth by combining conversational AI with curated data streams. Its use of LangChain for AI orchestration and specialized routes for news and product discovery allows users to gain insights and professional connections efficiently. The modular architecture ensures that additional AI tools or data providers can be integrated into the existing Express/React framework with minimal friction.