> For the complete documentation index, see [llms.txt](https://lifi-chrome-tracker.gitbook.io/lifi-chrome-tracker-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lifi-chrome-tracker.gitbook.io/lifi-chrome-tracker-docs/overview/inside-lifis-architecture/ai-powered-insights.md).

# AI-Powered Insights

LiFi uses advanced artificial intelligence powered by the Google Gemini API to transform raw browsing data into meaningful, actionable insights. These AI-powered features help you better understand your habits, productivity, interests, privacy risks, and shopping behavior — all while keeping your data secure and private.

### AI Summary Tab

The AI Summary tab provides an intelligent analysis of your browsing behavior by examining patterns across multiple dimensions. Here are the key areas it covers:

#### 1. Behavioral Patterns

* **Productivity Score**\
  A score from 0 to 100 that reflects your balance between work-related and entertainment browsing. Higher scores indicate focused work time, while lower scores suggest more leisure activity.
* **Social Media Usage**\
  Percentage of total browsing time spent on social platforms such as Facebook, Twitter, and Instagram.
* **Work-Related Sites**\
  Tracks visits to professional tools and platforms like email clients, collaboration tools, and productivity apps.
* **Entertainment Sites**\
  Measures time spent on leisure activities like streaming, gaming, or news sites.

#### 2. Browsing Habits Analysis

* **Peak Browsing Hours**\
  Identifies the times of day when you are most active online.
* **Daily Activity Patterns**\
  Shows your browsing rhythm throughout the week.
* **Session Length Analysis**\
  Examines how long your browsing sessions last and their frequency.
* **Site Category Preferences**\
  Maps out your favorite types of websites by category, such as news, shopping, or education.

#### 3. Interest Inference

* **Inferred Interests**\
  Automatically detects your interests based on the types of sites you visit regularly.
* **Category-Based Interest Mapping**\
  Groups interests into broad categories for easier understanding.
* **Trending Topics**\
  Highlights popular themes in your browsing history.

#### 4. Privacy Analysis

* **Cookie Usage Assessment**\
  Reviews the types and frequency of cookies encountered during browsing.
* **Tracking Cookie Identification**\
  Flags cookies known to be used for tracking purposes.
* **Privacy Score**\
  Calculates your overall privacy risk based on cookie usage and site behavior.
* **Improvement Recommendations**\
  Suggests steps to reduce tracking and protect your data.

#### 5. Time Analysis

* **Hourly Distribution**\
  Visualizes how your browsing time is spread throughout the day.
* **Daily Patterns**\
  Shows fluctuations in activity across days of the week.
* **Session Recognition**\
  Detects patterns in how and when you start and end browsing sessions.
* **Most Active Periods**\
  Highlights your top periods of online engagement.

#### 6. Search Behavior

* **Top Search Terms**\
  Lists your most frequent search queries.
* **Search Engine Preferences**\
  Shows which search engines you use most often.
* **Search Patterns**\
  Analyzes when and how often you search.
* **Query Categorization**\
  Groups searches by topic or intent.

#### 7. Personalized Recommendations

Based on all collected data and AI analysis, LiFi offers:

* Suggestions to improve productivity by focusing on high-value sites and limiting distractions.
* Tips for enhancing privacy, such as managing cookies or blocking trackers.
* Time management advice to balance work and leisure effectively.
* Optimizations to help improve browsing habits for better focus and enjoyment.

#### Fallback System

In cases where AI analysis is unavailable, LiFi provides:

* Basic statistical summaries of your browsing data.
* Rule-based classifications of site types and activities.
* Standard privacy metrics and general recommendations.

### E-commerce Tracking

LiFi also tracks and analyzes your shopping behavior on major e-commerce platforms, helping you understand your buying patterns while keeping your data private.

#### Supported Platforms

Some of the major e-commerce sites monitored include:

| Platform | Notes                 |
| -------- | --------------------- |
| Amazon   | All regional domains  |
| Flipkart | Popular in India      |
| Myntra   | Fashion and lifestyle |
| eBay     | Auctions and stores   |
| Walmart  | General retail        |
| Target   | Wide product range    |

LiFi supports many more sites, adapting to their page structures for detailed tracking.

#### Advanced Product Detection

LiFi extracts detailed product information from the pages you visit, including:

| Data Point   | Description                          |
| ------------ | ------------------------------------ |
| Name         | Product title                        |
| Price        | Current price (if available)         |
| Currency     | Currency symbol or code              |
| Category     | Product category (e.g., electronics) |
| Brand        | Manufacturer or brand                |
| Image        | Product image URL                    |
| Rating       | Customer rating score                |
| Review Count | Number of reviews                    |
| Availability | Stock status                         |
| Description  | Brief product details                |

#### E-commerce Event Types

LiFi tracks key shopping actions such as:

* Viewing product pages
* Browsing categories
* Conducting product searches
* Adding items to the cart
* Adding items to a wishlist
* Proceeding to checkout

#### AI-Enhanced Analysis

Using AI, LiFi understands your shopping behavior by:

* Extracting product information from page content automatically.
* Recognizing shopping patterns and preferences.
* Identifying purchase intent signals.
* Highlighting preferred categories and brands.

#### E-commerce Analytics

LiFi provides analytics like:

* Total visits and time spent on shopping sites
* Most viewed products with engagement details
* Popular product categories browsed
* Comparison of shopping preferences across different sites

***

### Privacy and Security

Throughout all AI-powered features and tracking, LiFi adheres to strict privacy principles:

| Privacy Principle        | How LiFi Implements It                                         |
| ------------------------ | -------------------------------------------------------------- |
| Local-First Storage      | All data is stored locally using Chrome's Storage API.         |
| No External Transmission | Data never leaves your device unless you explicitly permit it. |
| User Control             | You decide what data is collected and retained.                |
| Transparency             | Full visibility into what data is gathered and how it is used. |

Your sensitive data such as passwords, payment details, or personal identifiers are never collected.

***

## Summary

LiFi’s AI-powered insights transform your raw browsing data into valuable knowledge. By analyzing behavior, interests, privacy risks, and shopping habits, LiFi helps you make smarter decisions about your time and data. All of this intelligence is delivered securely with your privacy as the highest priority.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lifi-chrome-tracker.gitbook.io/lifi-chrome-tracker-docs/overview/inside-lifis-architecture/ai-powered-insights.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
