# Longevity Futures Website - Handoff Document for Gemini

## Current Status: READY FOR AFFILIATE IMPLEMENTATION

**Website**: https://longevityfutures.online
**Last Updated**: November 14, 2025
**Total Articles**: 69 live articles
**Next Phase**: ClickBank affiliate integration

---

## What's Been Completed ✓

### 1. Website Structure
- **Homepage** (`index.html`): Fully designed with:
  - Welcome hero section explaining longevity escape velocity
  - **Helix chatbot** (interactive AI assistant, bottom-right blue button)
  - Essential Longevity Supplements section (12 supplements with compact cards)
  - Vitamins section (9 vitamins with orange styling)
  - Minerals section (17 minerals with navy styling)
  - All article sections organized by category

### 2. Articles Generated (69 total)
- **9 Vitamin articles** (orange color theme)
- **17 Mineral articles** (navy color theme)
- **11 Longevity supplement articles** (blue color theme):
  - Creatine, Berberine, Magnesium L-threonate, Omega-3, Vitamin D3+K2, Spermidine, Low-dose Lithium
  - NMN, Nicotinamide Riboside (NR), Fisetin, Pterostilbene, Quercetin, CoQ10
  - Astaxanthin, Curcumin, Alpha-Lipoic Acid, L-Theanine, Apigenin
- **32 Topic articles** (anti-aging, women's health, men's health, sleep, joints, etc.)

### 3. Features Implemented
- Color-coded article themes (vitamins=orange, minerals=navy, supplements=blue)
- Readability improvements (bullet point boxes, quick facts)
- **Helix chatbot** with knowledge base about all supplements
- Responsive design with mobile support
- SEO-optimized content (1500-2000 words per article)

### 4. Silent-AI Automation
- Fully functional AI article generation system
- Automatic FTP upload to live website
- Research capabilities for finding new supplements

---

## NEXT TASK: Affiliate Integration (ClickBank)

Paul wants to add **ClickBank affiliate links** to the longevity supplement articles.

### Longevity Supplements That Need Affiliates:
1. Creatine (3-5 g/day)
2. Berberine (500-1500 mg/day)
3. Magnesium L-threonate (144mg Mg/day)
4. Omega-3 EPA/DHA (2-3 g/day)
5. Vitamin D3 + K2 (5000 IU D3 + 100mcg K2)
6. Spermidine (1-3 mg/day)
7. Low-dose Lithium (5-10 mg/day)
8. B12 (1000-2000 mcg/day)
9. NMN (250-500 mg/day)
10. Nicotinamide Riboside (300-600 mg/day)
11. Fisetin (100-500 mg/day)
12. Pterostilbene (100-250 mg/day)
13. Quercetin (500-1000 mg/day)
14. CoQ10 (100-300 mg/day)
15. Astaxanthin (4-12 mg/day)
16. Curcumin (500-2000 mg/day with piperine)
17. Alpha-Lipoic Acid (300-600 mg/day)
18. L-Theanine (100-400 mg/day)
19. Apigenin (50-100 mg/day)

### How to Add ClickBank Affiliates:

**Step 1**: Sign up for ClickBank account (if not already done)
- Website: https://www.clickbank.com/
- Create affiliate account

**Step 2**: Search ClickBank marketplace for each supplement
- Look for products with high gravity (popular products)
- Check commission rates (typically 50-75% on health supplements)
- Get affiliate hop links for each product

**Step 3**: Add affiliate links to homepage
- Edit `index.html`
- Find the Essential Longevity Supplements section (around line 130-260)
- Replace the "Learn More →" links with ClickBank affiliate buttons
- Example format:
```html
<a href="CLICKBANK_HOPLINK_HERE" class="btn-affiliate" target="_blank" rel="nofollow">Buy Now</a>
<a href="articles/ARTICLE_NAME.html" class="read-more">Learn More →</a>
```

**Step 4**: Add affiliate disclosure
- Already exists in `disclaimer.html`
- Make sure to mention ClickBank partnerships

**Step 5**: Test all affiliate links
- Click each link to verify tracking works
- Check that hop links redirect correctly

**Step 6**: Upload changes
```bash
cd "C:\Users\Paul\Desktop\longevityfutures-website\silent-ai"
python upload_website.py
```

---

## How to Use Silent-AI

**IMPORTANT**: Silent-AI can generate and upload articles automatically when prompted!

### Available Scripts

#### 1. `upload_website.py` - Upload Everything to Live Site
```bash
cd "C:\Users\Paul\Desktop\longevityfutures-website\silent-ai"
python upload_website.py
```
- Uploads ALL files (HTML, CSS, articles) to Hostinger via FTP
- Automatically runs after article generation scripts

#### 2. `research_longevity_supplements.py` - Research New Supplements
```bash
python research_longevity_supplements.py
```
- Uses OpenAI to research science-backed longevity supplements
- Generates comprehensive list with dosing, mechanisms, evidence
- Saves results to `longevity_supplements_research.txt`

#### 3. `create_longevity_articles.py` - Generate First 6 Articles
```bash
python create_longevity_articles.py
```
- Generates articles for: NMN, NR, Fisetin, Pterostilbene, Quercetin, CoQ10
- Each article is 1500-2000 words
- Automatically uploads when done

#### 4. `create_additional_longevity_articles.py` - Generate 5 More Articles
```bash
python create_additional_longevity_articles.py
```
- Generates articles for: Astaxanthin, Curcumin, ALA, L-Theanine, Apigenin
- Automatically uploads when done

#### 5. `improve_readability.py` - Add Bullet Boxes to Single Article
```bash
python improve_readability.py
```
- Improves one article with bullet point boxes and quick facts
- Uses AI to identify key benefits and add structured formatting

#### 6. `batch_improve_articles.py` - Improve All Articles
```bash
python batch_improve_articles.py
```
- Processes all 69 articles for readability
- Adds bullet point boxes throughout
- Saves improved versions

#### 7. `add_color_coding.py` - Add Color Themes
```bash
python add_color_coding.py
```
- Applies color coding: Orange (vitamins), Navy (minerals), Blue (supplements)
- Automatically detects article type and applies correct theme

### To Generate NEW Articles:

**Example**: If Paul wants articles about new supplements:

1. **Create a new script** (copy from `create_additional_longevity_articles.py`):
```python
SUPPLEMENTS = [
    {
        "name": "New Supplement Name",
        "slug": "new-supplement-name-slug",
        "dose": "dosing info",
        "category": "Category"
    }
]
```

2. **Run the script**:
```bash
python your_new_script.py
```

3. **Articles auto-generate and upload!**

---

## Environment Setup

### Required Files:
- **`.env`** file in `silent-ai/` folder with:
```
LLM_API_KEY=sk-proj-...your-openai-key...
FTP_HOST=ftp.longevityfutures.online
FTP_USER=your-ftp-username
FTP_PASSWORD=your-ftp-password
```

### Dependencies:
```bash
pip install openai python-dotenv
```

---

## File Structure

```
C:\Users\Paul\Desktop\longevityfutures-website\
│
├── index.html                          # Homepage (HELIX CHATBOT HERE)
├── articles.html                       # All articles listing
├── about.html                          # About page
├── contact.html                        # Contact page
├── disclaimer.html                     # Legal disclaimers
│
├── css/
│   └── style.css                       # Main stylesheet
│
├── articles/                           # 69 article HTML files
│   ├── nmn-nicotinamide-mononucleotide-nad-booster-longevity.html
│   ├── fisetin-senolytic-supplement-anti-aging.html
│   └── ... (66 more)
│
└── silent-ai/                          # Automation scripts
    ├── upload_website.py               # FTP upload
    ├── research_longevity_supplements.py
    ├── create_longevity_articles.py
    ├── create_additional_longevity_articles.py
    ├── improve_readability.py
    ├── batch_improve_articles.py
    ├── add_color_coding.py
    ├── longevity_supplements_research.txt  # Research output
    └── .env                            # API keys (DO NOT COMMIT)
```

---

## Important Notes for Gemini

### 1. The Helix Chatbot
- Located in `index.html` at bottom (lines 665-900)
- Interactive JavaScript chatbot
- Blue button, bottom-right corner
- Can answer questions about supplements, vitamins, minerals
- Has knowledge base with links to articles

### 2. Color Themes
- **Vitamins**: Orange (`#FF8C00`)
- **Minerals**: Navy (`#001F3F`)
- **Supplements**: Blue (`#4A90E2`)

### 3. Silent-AI Workflow
Paul uses this phrase: **"Silent-AI, do X"**

This means:
1. Create a Python script using OpenAI API
2. Script generates content automatically
3. Script uploads to live website
4. Everything happens autonomously

**You can use Silent-AI for any content generation!**

### 4. FTP Upload
- All changes MUST be uploaded via `upload_website.py`
- Local changes don't appear on live site until uploaded
- Upload script handles all 69 files automatically

### 5. ClickBank Next Steps
Paul mentioned:
> "those supliments need affilliates now let try clickbank first then we will do the best most popular on the web"

This means:
1. Start with ClickBank for affiliate links
2. If ClickBank doesn't have good products, try other affiliate networks
3. Focus on longevity supplements first (19 products listed above)

### 6. Token Conservation
Paul is conscious of token usage. When generating articles:
- Use Silent-AI (OpenAI API) instead of your own tokens
- Scripts are already set up to handle this
- Just run the Python scripts

---

## Quick Commands Reference

```bash
# Upload all changes to live site
python upload_website.py

# Generate new longevity articles
python create_longevity_articles.py

# Research new supplements
python research_longevity_supplements.py

# Improve article readability
python batch_improve_articles.py

# Navigate to project
cd "C:\Users\Paul\Desktop\longevityfutures-website"
```

---

## Summary for Gemini

**What Paul needs next:**

1. **Find ClickBank products** for the 19 longevity supplements listed above
2. **Add affiliate hop links** to the homepage supplement cards
3. **Add "Buy Now" buttons** next to "Learn More" links
4. **Test all affiliate links** to ensure tracking works
5. **Upload changes** using `upload_website.py`

**Key reminder:**
> Silent-AI can upload articles himself when prompted with what needs to be done!

Just tell Silent-AI what to generate, and it will:
- Research the topic
- Generate comprehensive articles
- Upload to live website
- Report when complete

---

## Contact & Support

**Website**: https://longevityfutures.online
**Project Owner**: Paul
**AI Assistant Handoff**: Claude Code → Gemini
**Date**: November 14, 2025

**All systems are operational and ready for affiliate integration!**

Good luck, Gemini! Everything is set up for you to add the ClickBank affiliates. 🚀
