Notion Optimization Plan

ROSME FASAI
AI-Ready Workspace

แผนปรับปรุง 🟡 WORK, 🟡 KNOWLEDGE, 🟡 LEADS — ตาม Context Engineering Framework เพื่อให้ AI skills ทำงานได้แบบ end-to-end


What We Have Today

สรุปสถานะปัจจุบันของ 3 ระบบหลัก — WORK, KNOWLEDGE, LEADS

🟡 WORK

Tasks Database

DB: TASKS DATABASE
Filter: Area = Work

Properties:

  • Name, Status, Type
  • Subject, Topic, Channel
  • Content Type, Deadline
  • Next Action, Person, Assign
Schema ใช้ได้ดี
ไม่มี Relation กับ Lead DB
ไม่มี Client field
🟡 KNOWLEDGE

Tasks Database (shared)

DB: TASKS DATABASE (เดียวกับ WORK)
Filter: Area = Knowledge

ใช้ร่วมกับ WORK แต่กรองด้วย:

  • Subject (Branding, Writing, etc.)
  • Topic (SEO, Psychology, etc.)
  • Type (Resource, Note, Learning)
Structure แยกจาก WORK ด้วย Area
ควรมี relation กับ Lead สำหรับ case studies
🟡 LEADS

Lead Database

DB: LEAD DATABASE
Entries: 80+ ลูกค้า

Properties ปัจจุบัน:

  • Name, Status, Priority (12 options!)
  • Contact Info, Buffet, Note, Person
  • Next Step, Login? (TT/YT/FB/IG)
  • ต่อเดือน (monthly), เริ่มโปรเจ็ค (date)
Priority overloaded (4 concerns ใน 1 field)
ไม่มี structured client profile
Rich data อยู่ใน page content ไม่ใช่ properties
ไม่มี relation กับ Tasks DB
Core Problem

Data Lives in Pages,
Not in Properties

ตัวอย่างจริงจาก SJC Client — ข้อมูลมหาศาลอยู่ใน page content แต่ AI อ่านจาก properties ไม่ได้

❌ What Properties Show

NameSJC ส เจริญชัย พี่ภา
StatusPaid
Priority📌 รอต่อสัญญา
Buffet350,000
NoteAug 2025 - Feb 2026

AI sees only 5 fields — not enough to generate anything

✅ What's Inside the Page

  • Industry: Construction / Steel (3 entities, 300M/mo revenue)
  • Brand positioning: Expert in steel construction
  • 14+ product categories with details
  • Target audience: Contractors, builders
  • Platforms: TikTok, Facebook, YouTube
  • Package: A=50K/mo, B=350K lump sum
  • 5 shooting plans (Aug 2025 - Jan 2026)
  • Full proposals, scripts, content strategies
  • Meeting notes with action items

All this rich data is trapped — AI can't search or filter it

What Each Skill Needs
vs What Exists

3 skills หลัก + สิ่งที่ต้องการ → สิ่งที่มีในระบบปัจจุบัน

Customer Audit
Proposal Generator
Shooting Plan
Input RequiredAvailable in Lead DB?Where It Actually Lives
Client Name✅ YES Name property
Industry❌ NOInside page content
Website❌ NOSometimes in page text
Social Media URLs❌ NOSometimes in page text

ปัจจุบัน: Skill ต้องถามข้อมูลใหม่ทุกครั้ง หรือ search web ใหม่ — ไม่มีทางดึงจาก Notion ได้อัตโนมัติ

Input RequiredAvailable in Lead DB?Where It Actually Lives
Client name & company/title✅ PARTIAL Name onlyCompany in page content
Industry & business focus❌ NOPage content
Primary pain points❌ NOMeeting notes in page
Current social presence❌ NOAudit results in page
Key business goals❌ NOMeeting notes in page
Budget range✅ YES Buffet property
Platforms focus❌ NOPage content
Competitor insights❌ NOAudit reports in page

ปัจจุบัน: ต้อง interview ลูกค้าใหม่ทุกครั้ง แม้จะเคย audit แล้ว — ไม่มี pattern สำหรับ adapt client-to-client

Input RequiredAvailable in Lead DB?Where It Actually Lives
Name & role✅ PARTIALRole in page
Industry / business type❌ NOPage content
Follower count per platform❌ NOAudit reports
Core brand values❌ NOProposals in page
Visual style & tone❌ NOStyle guide in page
Key messages (3-5 pillars)❌ NOProposals in page
Platform priority❌ NOPage content
Content goals❌ NOMeeting notes
Previous content examples❌ NOPast shooting plans in sub-pages

ปัจจุบัน: ทุกครั้งที่สร้าง shooting plan ต้องให้ context ใหม่หมด — ทั้งที่ข้อมูลลูกค้ามีอยู่แล้วในระบบ

Solution Architecture

The Optimization Plan

3 ชั้นของการปรับปรุง — จาก Lead DB Normalization → Client Profile Template → Relations & Flow

Lead DB
Normalized Properties
Client Profile
Structured Page Template
Skills
Audit → Proposal → Plan
Tasks DB
Related Work Items

Lead DB Normalization

แก้ Priority overload + เพิ่ม structured properties สำหรับ AI

Remove / Split (from existing PRD)

Current Priority field (12 options):

📌 รอต่อสัญญา, 📌 รอปิด, 📌 Follow up, 📌 รอเริ่มงาน,
💰 รายเดือน, 💰 Lump sum, 💰 Barter,
👥 Fah, 👥 ฟ้าใส-แจส,
🔥 Hot, ❄️ Cold, ⏸ ระงับ

Split into 4 separate properties:

Payment Typeรายเดือน / Lump sum / Barter
Actionรอต่อสัญญา / รอปิด / Follow up / รอเริ่มงาน
TeamFah / ฟ้าใส-แจส / etc.
Temperature🔥 Hot / ❄️ Cold / ⏸ ระงับ

Add New Properties (for AI)

PropertyTypePurpose
IndustrySelectcustomer-audit, proposal input
PackageSelectStarter / Growth / Premium
PlatformsMulti-selectIG / LinkedIn / YouTube / TikTok / FB
Content StyleSelectAuthority / Friendly / Bold / etc.
Contract StartDateCalendar Worker
Contract EndDateCalendar Worker / renewal alerts
Last ContactDateFollow-up automation
SourceSelectReferral / Organic / Event / Ad
🔗 TasksRelationLink to Tasks DB ↔ Lead DB

Execution Commands (DDL)

-- Phase 1A: Split Priority field into 3 new selects
-- (Priority currently mixes: payment, sales action, team, urgency)
ADD COLUMN "Payment Type" SELECT('⭐️ Buffet':green, '🏦 Monthly':blue, '💵 เงินสด':orange);
ADD COLUMN "Sales Action" SELECT('รอจ่ายเงิน':red, 'รีบปิด':red, 'รอเสนอดีล':yellow, 'ขอเจอก่อน':brown, 'โทรไปคุย':default, 'รอต่อสัญญา':orange, 'คิดอยู่':blue);
ADD COLUMN "Temperature" SELECT('🔥 Hot':red, '🌤 Warm':orange, '❄️ Cold':blue, '⏸ ระงับ':gray);

-- Phase 1B: Add AI-ready client profile properties
ADD COLUMN "Industry" SELECT('Construction':brown, 'Healthcare':green, 'F&B':orange, 'Tech':blue, 'Beauty':pink, 'Education':purple, 'Finance':gray, 'Real Estate':red, 'Other':default);
ADD COLUMN "Package" SELECT('Starter':default, 'Growth':blue, 'Premium':purple, 'Custom':orange);
ADD COLUMN "Platforms" MULTI_SELECT('Instagram':pink, 'LinkedIn':blue, 'YouTube':red, 'TikTok':default, 'Facebook':blue, 'Twitter':gray);
ADD COLUMN "Content Style" SELECT('Authority':blue, 'Friendly':green, 'Bold':red, 'Educational':purple, 'Lifestyle':pink);
-- Note: "เริ่มโปรเจ็ค" (contract start) already exists as date
ADD COLUMN "Contract End" DATE;
ADD COLUMN "Last Contact" DATE;
ADD COLUMN "Source" SELECT('Referral':green, 'Organic':blue, 'Event':purple, 'Ad':orange, 'Existing':default);

-- Phase 1C: Add dual relation to Tasks DB
ADD COLUMN "Tasks" RELATION('a7586f16-fad6-4eac-b24a-e2a9096a5916', DUAL 'Client');
Phase 2

Client Profile Template

สร้าง template มาตรฐานสำหรับทุก Lead page — ให้ AI อ่านข้อมูลได้ง่าย + เป็น pattern สำหรับ adapt

Standardized Page Structure (inside each Lead)

📋 Client Brief

ข้อมูลพื้นฐานของธุรกิจ: ชื่อบริษัท, จำนวนสาขา, revenue, จำนวนพนักงาน, USP

🎯 Brand Positioning

Target audience, Brand pillars (3-5 หัวข้อ), Tone of voice, Visual style, Competitors

📊 Social Audit Summary

Follower counts per platform, Engagement rates, Content performance highlights

💼 Service Agreement

Package selected, Deliverables, Contract period, Payment terms

📝 Meeting Log

แต่ละครั้งเป็น heading: วันที่ + สรุปสั้น + action items (ล่าสุดอยู่บนสุด)

🔗 Linked Deliverables

Sub-pages: Proposals, Shooting Plans, Audit Reports — แต่ละหน้าเป็น linked page

📌 Active Tasks

Inline view จาก Tasks DB ที่ filter เฉพาะ client นี้ (ผ่าน Relation)

🧠 AI Context Notes

สิ่งที่ AI ควรรู้: writing style preference, past content performance, ข้อควรระวัง

ทำไมต้องมี template? — เมื่อทุก lead page มีโครงสร้างเหมือนกัน AI จะ fetch แล้วอ่านข้อมูลได้ตาม heading ที่ตายตัว ไม่ต้องเดา format

AI Workflow Data Flow

ตาม Context Engineering: Resources → Instructions → Logic → Output

1
Trigger

User เรียก skill
หรือ n8n trigger

2
Context Gather

Fetch Lead page
+ properties + past work

3
Generate

Skill uses prompt
+ context + style library

4
Output

Deliverable created
+ tasks updated

Per-Skill Data Flow

Customer Audit Input: Lead DB → Name + Industry + Platforms (properties) → fetch page → Brand Positioning section
① query Lead DB (by name) → ② get Industry, Platforms, Website from properties → ③ web search to enrich → ④ generate audit → ⑤ save as sub-page under Lead → ⑥ create task in Tasks DB (linked via relation)
Proposal Generator Input: Lead DB props + Client Brief section + past audit + Prompt Library "Proposal Generator 2.0"
① fetch Lead page → ② extract: Client Brief + Brand Positioning + Service Agreement + past proposals → ③ fetch Prompt "Proposal Generator 2.0" → ④ generate .docx → ⑤ save as sub-page → ⑥ create task
Shooting Plan Input: Lead DB props + Brand Positioning + past shooting plans + Content Style Library
① fetch Lead page → ② extract: Brand Pillars + Platforms + past plans (for continuity) → ③ fetch "WRITER AGENT V4" + "Content Psychology Library" → ④ generate plan → ⑤ save as sub-page → ⑥ update Last Contact date
Task Manager Input: Tasks DB (via Client relation) + Lead DB (Action, Temperature, Contract End)
① query Tasks DB → ② filter by client relation → ③ cross-reference with Lead DB dates (Contract End, Last Contact) → ④ prioritize tasks → ⑤ display in Eisenhower Matrix
Relations Architecture

How Everything Connects

Lead Database
Name (title)
Industry (select) NEW
Package (select) NEW
Platforms (multi) NEW
Payment Type (select) NEW
Action (select) NEW
Temperature (select) NEW
Contract Start/End NEW
Last Contact NEW
🔗 Tasks (relation) NEW
Tasks Database
Name (title)
Area (Work / Knowledge)
Status
Type (Task / Meeting / etc.)
Subject
Topic
Channel
Deadline (date)
Next Action
🔗 Client (relation) NEW
Dual Relation: Lead DB → "Tasks" shows all work items for a client. Tasks DB → "Client" shows which lead a task belongs to.
ผลลัพธ์: Task Manager skill จะ query Tasks DB ตาม client ได้ทันที และแต่ละ Lead page จะมี inline view ของ tasks ที่เกี่ยวข้อง

🟡 Knowledge Optimization

คลังความรู้สำหรับทำคอนเทนต์ — ปรับให้เป็น Resource Library ที่ AI เข้าถึงได้

Current State

  • ใช้ Tasks DB เดียวกัน (Area = Knowledge)
  • Type: Resource, Note, Learning / Series Brief
  • Subject: Branding, Writing, Psychology, etc.
  • ไม่มี relation ใดๆ กับ Lead DB
Subject taxonomy ดี
Type options ซ้ำบ้าง (Ideas vs Idea)
ไม่มี "Applicable To" link ไปที่ client

Recommended Changes

  • Clean Type duplicates: merge "Ideas" → "Idea", "Learning / Series Brief" → "Series Brief"
  • New relation "Client": (same as WORK — already covered by dual relation)
  • Use for AI context: ให้ skills fetch Knowledge entries ตาม Subject เพื่อเป็น reference
  • Tag system: ใช้ Topic 1 (multi_select) เป็น content theme tags

Key insight: Knowledge entries ทำหน้าที่เป็น "Content Style Library" — WRITER AGENT V4 และ Content Psychology Library ดึงจากที่นี่ได้

Implementation

Execution Roadmap

3 phases — เริ่มจาก schema changes (ทำได้เลยวันนี้) → data migration → skill integration

Phase 1 — Today

Lead DB Schema Changes

เพิ่ม properties ใหม่ทั้งหมด + สร้าง dual relation กับ Tasks DB
DDL commands พร้อมแล้ว — ใช้ update_data_source ได้เลย

Phase 2 — This Week

Data Migration & Backfill

① Migrate Priority → Payment Type + Action + Team + Temperature
② Backfill Industry, Package, Platforms จากข้อมูลใน page content (top 10-20 active clients ก่อน)
③ สร้าง Client Profile Template + apply ให้ active clients
④ Clean Tasks DB Type duplicates

Phase 3 — Next Sprint

Skill Integration & Calendar Worker

① Update skills เพื่อ auto-fetch Lead page ก่อน interview
② Setup Calendar Worker bridge (Plaud → Last Contact auto-update)
③ สร้าง filtered views: Active Clients / Follow-up Due / Renewal Due
④ Test end-to-end: audit → proposal → shooting plan สำหรับ 1 client

Context Engineering
6-Block Check

✅ Ready

1. Identity & Outcome

Skills มี persona ชัดเจน (Content Clinic specialist) + output format defined (docx, production brief)

🔄 Partial

2. Tools & Schemas

Notion MCP tools พร้อม แต่ Lead DB schema ยังไม่ normalize — Phase 1 fixes this

❌ Gap

3. Resources & Data

Client data ไม่ structured, ไม่มี relation, ไม่มี template — Phase 1+2 fixes this

✅ Ready

4. Workflow

Production pipeline ชัด: audit → proposal → shooting plan → writer agent. Prompt Library มี version control

🔄 Partial

5. Memory

Session Log + Prompt Library ดี แต่ client-specific memory (past work, preferences) ยังกระจาย — Client Profile Template fixes this

🔄 Partial

6. Composition

Skills ทำงานแยกกัน ยังไม่ chain auto — ต้องมี relation + structured data ก่อน Phase 3 enables this

Summary

What Changes & Why

Total New Properties: Lead DB

PropertyTypeแหล่งข้อมูล
Payment TypeSelect (3)จาก Priority เดิม
Sales ActionSelect (7)จาก Priority เดิม
TemperatureSelect (4)จาก Priority เดิม
IndustrySelect (9+)จาก page content
PackageSelect (4)จาก agreements
PlatformsMulti-select (6)จาก page content
Content StyleSelect (5)จาก brand positioning
Contract StartDateมีอยู่แล้ว → "เริ่มโปรเจ็ค"
Contract EndDateจาก Note field
Last ContactDateManual → Calendar Worker
SourceSelect (5)Manual entry
TasksRelation (dual)→ Tasks DB

Impact on AI Skills

Customer Audit: Auto-fill Industry + Platforms จาก Lead properties → skip 50% of interview

Proposal Generator: Fetch structured client profile + past proposals → adapt faster, consistent quality

Shooting Plan: Brand pillars + past plans as context → continuity month-to-month

Task Manager: Client relation → see all tasks per client + cross-reference contract dates

Calendar Worker: Contract End + Last Contact → auto-renewal reminders + follow-up alerts

Ready to execute Phase 1?

DDL commands พร้อมแล้ว — confirm แล้วเริ่มได้เลย