# Technology

#### Agent Logs

The agent logs page shows the real-time chain of thought and goal-based actions taken by SAG3 Agent. Agent logs are the backbone of any self-respecting AI agent. They demonstrate beyond a shadow of a doubt that the tech actually exists and works.

<figure><img src="https://4070627908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3nMs1VxIW5Am4at01cCT%2Fuploads%2FETxQzjtZox9E7qkG5IUu%2Fagent%20logs.png?alt=media&#x26;token=395f020f-0f9e-4675-b009-045a8f122349" alt=""><figcaption><p>SAG3.ai <a href="https://sag3.ai/agent-logs">Agent logs</a></p></figcaption></figure>

#### Core Components

1. **Research Engine**
   * Powered by Perplexity AI's sonar-pro model
   * Capable of collecting and organizing data from multiple sources
   * Source tracking and citation management
2. **Analysis Engine**
   * Utilizes DeepSeek's R1 reasoning model (hosted in USA)&#x20;
   * Structured data processing for interpretation and attribute scoring
   * Pattern recognition for strengths and weaknesses identification
3. **Tweet Generation System**
   * AI-driven content creation for social sharing
   * Context-aware messaging that incorporates cashtags or @ mentions
   * Tone consistency and brand alignment
4. **Image Processing Pipeline**
   * Automated creation of analysis summary images
   * Optimization for social media sharing
   * Thumbnail generation
5. **Scheduling System**
   * Automated queue management for social posts
   * Time optimization algorithms
   * Retry mechanisms for failed operations

#### Architecture

* **Frontend**: React-based web application with interactive components
* **Backend**: Supabase-powered database and Privy authentication
* **Edge Functions**: Serverless functions for AI operations and social media posting
* **Data Storage**: Secure storage for analysis results and user data

#### Integration Points

* **Twitter API**: For monitoring KOLs, posting analysis reports and hot takes
* **CoinGecko API**: For price and market data integration
* **Perplexity API**: For research data collection
* **Fireworks API**: For reasoning-based analysis processing
* **OpenAi API**: For generating context-aware research images

<figure><img src="https://4070627908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3nMs1VxIW5Am4at01cCT%2Fuploads%2FtMbuc3Y1ND0yEV9GRqcZ%2FSAG3%20Banner%203.png?alt=media&#x26;token=ecd2715c-c604-4f7d-bf75-f64c45304300" alt=""><figcaption><p>Research image generated for <a href="https://sag3.ai/analyze?s=xpz6zz">Story Protocol</a></p></figcaption></figure>
