แผนปรับปรุง 🟡 WORK, 🟡 KNOWLEDGE, 🟡 LEADS — ตาม Context Engineering Framework เพื่อให้ AI skills ทำงานได้แบบ end-to-end
สรุปสถานะปัจจุบันของ 3 ระบบหลัก — WORK, KNOWLEDGE, LEADS
DB: TASKS DATABASE
Filter: Area = Work
Properties:
DB: TASKS DATABASE (เดียวกับ WORK)
Filter: Area = Knowledge
ใช้ร่วมกับ WORK แต่กรองด้วย:
DB: LEAD DATABASE
Entries: 80+ ลูกค้า
Properties ปัจจุบัน:
ตัวอย่างจริงจาก SJC Client — ข้อมูลมหาศาลอยู่ใน page content แต่ AI อ่านจาก properties ไม่ได้
| Name | SJC ส เจริญชัย พี่ภา |
| Status | Paid |
| Priority | 📌 รอต่อสัญญา |
| Buffet | 350,000 |
| Note | Aug 2025 - Feb 2026 |
AI sees only 5 fields — not enough to generate anything
All this rich data is trapped — AI can't search or filter it
3 skills หลัก + สิ่งที่ต้องการ → สิ่งที่มีในระบบปัจจุบัน
| Input Required | Available in Lead DB? | Where It Actually Lives |
|---|---|---|
| Client Name | ✅ YES Name property | — |
| Industry | ❌ NO | Inside page content |
| Website | ❌ NO | Sometimes in page text |
| Social Media URLs | ❌ NO | Sometimes in page text |
ปัจจุบัน: Skill ต้องถามข้อมูลใหม่ทุกครั้ง หรือ search web ใหม่ — ไม่มีทางดึงจาก Notion ได้อัตโนมัติ
| Input Required | Available in Lead DB? | Where It Actually Lives |
|---|---|---|
| Client name & company/title | ✅ PARTIAL Name only | Company in page content |
| Industry & business focus | ❌ NO | Page content |
| Primary pain points | ❌ NO | Meeting notes in page |
| Current social presence | ❌ NO | Audit results in page |
| Key business goals | ❌ NO | Meeting notes in page |
| Budget range | ✅ YES Buffet property | — |
| Platforms focus | ❌ NO | Page content |
| Competitor insights | ❌ NO | Audit reports in page |
ปัจจุบัน: ต้อง interview ลูกค้าใหม่ทุกครั้ง แม้จะเคย audit แล้ว — ไม่มี pattern สำหรับ adapt client-to-client
| Input Required | Available in Lead DB? | Where It Actually Lives |
|---|---|---|
| Name & role | ✅ PARTIAL | Role in page |
| Industry / business type | ❌ NO | Page content |
| Follower count per platform | ❌ NO | Audit reports |
| Core brand values | ❌ NO | Proposals in page |
| Visual style & tone | ❌ NO | Style guide in page |
| Key messages (3-5 pillars) | ❌ NO | Proposals in page |
| Platform priority | ❌ NO | Page content |
| Content goals | ❌ NO | Meeting notes |
| Previous content examples | ❌ NO | Past shooting plans in sub-pages |
ปัจจุบัน: ทุกครั้งที่สร้าง shooting plan ต้องให้ context ใหม่หมด — ทั้งที่ข้อมูลลูกค้ามีอยู่แล้วในระบบ
3 ชั้นของการปรับปรุง — จาก Lead DB Normalization → Client Profile Template → Relations & Flow
แก้ Priority overload + เพิ่ม structured properties สำหรับ AI
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 / รอเริ่มงาน |
| Team | Fah / ฟ้าใส-แจส / etc. |
| Temperature | 🔥 Hot / ❄️ Cold / ⏸ ระงับ |
| Property | Type | Purpose |
|---|---|---|
| Industry | Select | customer-audit, proposal input |
| Package | Select | Starter / Growth / Premium |
| Platforms | Multi-select | IG / LinkedIn / YouTube / TikTok / FB |
| Content Style | Select | Authority / Friendly / Bold / etc. |
| Contract Start | Date | Calendar Worker |
| Contract End | Date | Calendar Worker / renewal alerts |
| Last Contact | Date | Follow-up automation |
| Source | Select | Referral / Organic / Event / Ad |
| 🔗 Tasks | Relation | Link to Tasks DB ↔ Lead DB |
สร้าง template มาตรฐานสำหรับทุก Lead page — ให้ AI อ่านข้อมูลได้ง่าย + เป็น pattern สำหรับ adapt
Standardized Page Structure (inside each Lead)
ข้อมูลพื้นฐานของธุรกิจ: ชื่อบริษัท, จำนวนสาขา, revenue, จำนวนพนักงาน, USP
Target audience, Brand pillars (3-5 หัวข้อ), Tone of voice, Visual style, Competitors
Follower counts per platform, Engagement rates, Content performance highlights
Package selected, Deliverables, Contract period, Payment terms
แต่ละครั้งเป็น heading: วันที่ + สรุปสั้น + action items (ล่าสุดอยู่บนสุด)
Sub-pages: Proposals, Shooting Plans, Audit Reports — แต่ละหน้าเป็น linked page
Inline view จาก Tasks DB ที่ filter เฉพาะ client นี้ (ผ่าน Relation)
สิ่งที่ AI ควรรู้: writing style preference, past content performance, ข้อควรระวัง
ทำไมต้องมี template? — เมื่อทุก lead page มีโครงสร้างเหมือนกัน AI จะ fetch แล้วอ่านข้อมูลได้ตาม heading ที่ตายตัว ไม่ต้องเดา format
ตาม Context Engineering: Resources → Instructions → Logic → Output
User เรียก skill
หรือ n8n trigger
Fetch Lead page
+ properties + past work
Skill uses prompt
+ context + style library
Deliverable created
+ tasks updated
คลังความรู้สำหรับทำคอนเทนต์ — ปรับให้เป็น Resource Library ที่ AI เข้าถึงได้
Key insight: Knowledge entries ทำหน้าที่เป็น "Content Style Library" — WRITER AGENT V4 และ Content Psychology Library ดึงจากที่นี่ได้
3 phases — เริ่มจาก schema changes (ทำได้เลยวันนี้) → data migration → skill integration
เพิ่ม properties ใหม่ทั้งหมด + สร้าง dual relation กับ Tasks DB
DDL commands พร้อมแล้ว — ใช้ update_data_source ได้เลย
① 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
① 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
Skills มี persona ชัดเจน (Content Clinic specialist) + output format defined (docx, production brief)
Notion MCP tools พร้อม แต่ Lead DB schema ยังไม่ normalize — Phase 1 fixes this
Client data ไม่ structured, ไม่มี relation, ไม่มี template — Phase 1+2 fixes this
Production pipeline ชัด: audit → proposal → shooting plan → writer agent. Prompt Library มี version control
Session Log + Prompt Library ดี แต่ client-specific memory (past work, preferences) ยังกระจาย — Client Profile Template fixes this
Skills ทำงานแยกกัน ยังไม่ chain auto — ต้องมี relation + structured data ก่อน Phase 3 enables this
| Property | Type | แหล่งข้อมูล |
|---|---|---|
| Payment Type | Select (3) | จาก Priority เดิม |
| Sales Action | Select (7) | จาก Priority เดิม |
| Temperature | Select (4) | จาก Priority เดิม |
| Industry | Select (9+) | จาก page content |
| Package | Select (4) | จาก agreements |
| Platforms | Multi-select (6) | จาก page content |
| Content Style | Select (5) | จาก brand positioning |
| Date | มีอยู่แล้ว → "เริ่มโปรเจ็ค" | |
| Contract End | Date | จาก Note field |
| Last Contact | Date | Manual → Calendar Worker |
| Source | Select (5) | Manual entry |
| Tasks | Relation (dual) | → Tasks DB |
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 แล้วเริ่มได้เลย