# 2026-02-04 - Daily Notes

## Frida AI Launch 🚀
- Deployed to https://frida-ai-navy.vercel.app
- Auth: username `CMOClaw`, password `shay-l0ves-openAI`
- Features: Component library, Builder, Templates, Stats Dashboard
- `/api/generate` with RAG brand guidelines
- `/api/campaigns` integration with CMOClaw Dashboard
- `/api/analyze-engagement` for AI learning from SFMC data

## UK Oil & Commodities Campaign (Facebook Ads)
- Target: UK, 25-35 age, non-active users
- Created 3 HTML/CSS variants (v3): momentum, diversification, educational
- Files: `frida-ai/public/ads/uk-oil-v3-*.html`
- Awaiting: eToro logo file, disclaimer verification from Shay

## Creative Production Learnings (from Shay)
1. **DALL-E ≠ Brand Ads** - AI image gen doesn't maintain brand consistency
2. **HUGE headlines** - 80px+ minimum, 2-4 words max for static FB ads
3. **Pie charts = banal** - avoid corporate graphics
4. **Disclaimer must be legal size** (10px+) with separate contrasting background
5. **Must use actual eToro logo file** - not text rendering
6. **Always send images to WhatsApp** - don't just display in browser
7. **HTML/CSS → PNG pipeline** - Browser screenshot rendering works reliably

## Process Documentation Created
- `notes/processes/campaign-creation-v1.md` - End-to-end workflow
- `notes/processes/creative-creation-v1.md` - Visual production process
- `notes/processes/daily-campaign-log.md` - Activity log for learning
- `skills/etoro-creative/SKILL.md` - Versioned creative production skill
- `brand/etoro/DISCLAIMER-MATRIX.md` - Country/product disclaimer matrix

## Nightly Learning Cron Job
- **Job ID:** `4f9cbe69-9d98-45a0-841a-5e6f7207fe42`
- **Schedule:** 02:00 AM Israel time (daily)
- **Purpose:** Review daily campaigns, extract learnings, update processes

## System Infrastructure
- **Monitoring cron:** Every 15 min with thresholds (CPU >80%, Mem <1GB, Disk >90%)
- **Daily backup:** 04:24 with 7-day retention, 185KB first backup
- **Alerts to:** עופר ששון (+972543225950)

## n8n MCP Integration (from Shiloh)
- **Instance:** shilohbd.app.n8n.cloud
- **Config:** Uses `npx supergateway --streamableHttp` 
- **URL:** `https://shilohbd.app.n8n.cloud/mcp-server/http`
- **Auth:** JWT bearer token (received)
- **Status:** Need to configure OpenClaw connection

## Key Contacts Active Today
- **Shay (Chikoshay)** - Campaign Manager, creative feedback
- **Shiloh** - Marketing Lead, n8n integration
- **Guy Ho** - Tech Marketing, video tools discussion

## Files Modified
- Brand guidelines: `brand/etoro/CREATIVE-BRAND-GUIDELINES.md`
- Frida AI: Full deployment (pages/, api/, lib/)
- Research: `notes/marketing-research.md`, `notes/salesforce-research.md`
- Performance research: `notes/research/performance-marketing-v1.md` (12KB)

## Open Items for Tomorrow
1. Get eToro logo file (SVG/PNG) from Shay
2. Verify UK disclaimer text is correct
3. Complete n8n MCP connection setup
4. Create final approved UK Oil creatives
5. Shiloh's tasks: Templates QA, QA agent
6. Obtain SFMC API credentials

---

*Session context: 156K/200K tokens (78%), model: claude-opus-4-5*

## Evening Session - Frida AI Development with Shiloh (17:45-22:30)

### Figma Integration
- **Token:** Saved to `.credentials/figma-token.txt`
- **File:** 2343 - Email Marketing Components
- **URL:** https://www.figma.com/design/GLkGG1wYhrUIyo2tBbtONC
- **Content:** 60 pages, 250+ email component variants

### MJML Component Library Built
Location: `frida-ai/lib/components/mjml/`

| Component | Variants | File |
|-----------|----------|------|
| Headers | white_green, white_blue, blue_green, green_white, light_blue_dark_blue | headers/index.js |
| Introduction | dark_blue_light_blue, white_green, light_blue_dark_blue | introduction/index.js |
| Side By Side | light_blue, white, blue (+mobile) | side-by-side/index.js |
| Icons Group | white, light_blue, dark_blue (+mobile) | icons-group/index.js |
| Steps | vertical, horizontal (3 color variants) | steps/index.js |
| Disclaimers | UK, EU, US, AU, GLOBAL (3 styles) | disclaimers/index.js |

### API Endpoints Added
- `POST /api/render-mjml` - Build emails from component configs
- `POST /api/edit-component` - AI-powered component editing
- `GET /api/render-mjml` - List available components

### UI Updates
- Fixed homepage client-side errors (removed next-auth imports)
- New dashboard with stats, quick actions, recent activity
- Components page with live preview + "Edit with AI" feature
- Copy HTML & Copy Config buttons

### Technical Issues Resolved
- npm cache permissions: `sudo chown -R 501:20 "/Users/yoni/.npm"`
- localStorage errors on mobile: wrapped in try-catch
- SSR hydration issues: added isClient state check

### Deployments
- Multiple deploys to https://frida-ai-navy.vercel.app
- All builds successful on Vercel

### Pending for Shiloh
- More components from Figma (Add to Watchlist, Top 5 PIs, Earnings Cards, etc.)
- Full email template examples
- SFMC API integration

---
