|
| 1 | +--- |
| 2 | +title: Executive Intelligence | AI-Powered Strategic Decision Platform |
| 3 | +description: A comprehensive Perplexity Sonar-powered application that provides executives and board members with instant, accurate, and credible intelligence for strategic decision-making |
| 4 | +sidebar_position: 16 |
| 5 | +keywords: [executive intelligence, perplexity sonar, competitive intelligence, strategic decision, next.js, typescript, ai] |
| 6 | +--- |
| 7 | + |
| 8 | +**Executive Intelligence** is a comprehensive Perplexity Sonar-powered application that provides executives and board members with instant, accurate, and credible intelligence for strategic decision-making. It delivers board-ready insights derived from real-time data sources, powered by Perplexity's Sonar API. |
| 9 | + |
| 10 | +<iframe |
| 11 | + className="w-full aspect-video rounded-xl" |
| 12 | + src="https://www.youtube.com/embed/SB1pxIl9Mp0" |
| 13 | + title="YouTube video player" |
| 14 | + frameBorder="0" |
| 15 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 16 | + allowFullScreen |
| 17 | +></iframe> |
| 18 | + |
| 19 | +## Features |
| 20 | + |
| 21 | +* **Competitive Intelligence Briefs** with comprehensive, board-ready competitive analysis and verifiable citations |
| 22 | +* **Scenario Planning ("What If?" Analysis)** for dynamic future scenario generation based on real-time data |
| 23 | +* **Board Pack Memory** for saving and organizing intelligence briefs, scenario analyses, and benchmark reports |
| 24 | +* **Instant Benchmarking & Peer Comparison** with source-cited visual comparisons across critical metrics |
| 25 | +* **Real-time Data Integration** leveraging Perplexity Sonar API for up-to-date market intelligence |
| 26 | +* **Professional Formatting** with structured reports, executive summaries, and board-ready presentations |
| 27 | + |
| 28 | +## Prerequisites |
| 29 | + |
| 30 | +* Node.js 18+ and npm/yarn |
| 31 | +* Git |
| 32 | +* Perplexity API key (Sonar Pro) |
| 33 | + |
| 34 | +## Installation |
| 35 | + |
| 36 | +```bash |
| 37 | +# Clone the repository |
| 38 | +git clone https://github.com/raishs/perplexityhackathon.git |
| 39 | +cd perplexityhackathon |
| 40 | + |
| 41 | +# Install dependencies |
| 42 | +npm install |
| 43 | + |
| 44 | +# Set up environment variables |
| 45 | +cp .env.example .env.local |
| 46 | +``` |
| 47 | + |
| 48 | +## Configuration |
| 49 | + |
| 50 | +Create `.env.local` file: |
| 51 | +```ini |
| 52 | +PERPLEXITY_API_KEY=your_perplexity_api_key |
| 53 | +``` |
| 54 | + |
| 55 | +## Usage |
| 56 | + |
| 57 | +1. **Start Development Server**: |
| 58 | + ```bash |
| 59 | + npm run dev |
| 60 | + ``` |
| 61 | + |
| 62 | +2. **Access Application**: Open http://localhost:3000 in your browser |
| 63 | + |
| 64 | +3. **Generate Intelligence**: |
| 65 | + - Enter a company name in the input field |
| 66 | + - Click "Competitive Analysis" for comprehensive briefs |
| 67 | + - Use "Scenario Planning" for "what-if" analysis |
| 68 | + - Access "Benchmarking" for peer comparisons |
| 69 | + - Save reports to "Board Pack" for later access |
| 70 | + |
| 71 | +4. **Board Pack Management**: Use the "📁 Board Pack" button to view and manage saved intelligence reports |
| 72 | + |
| 73 | +## Code Explanation |
| 74 | + |
| 75 | +* **Frontend**: Next.js with TypeScript and React for modern, responsive UI |
| 76 | +* **Backend**: Next.js API routes handling Perplexity Sonar API integration |
| 77 | +* **AI Integration**: Perplexity Sonar Pro for real-time competitive intelligence and scenario analysis |
| 78 | +* **State Management**: React Context for boardroom memory and persistent data storage |
| 79 | +* **Markdown Processing**: Custom utilities for parsing AI responses and citation handling |
| 80 | +* **Error Handling**: Comprehensive timeout and error management for API calls |
| 81 | +* **Professional Output**: Structured formatting for board-ready presentations with source citations |
| 82 | + |
| 83 | +## Links |
| 84 | + |
| 85 | +- [GitHub Repository](https://github.com/raishs/perplexityhackathon) |
0 commit comments