haixunMaster/lib/ai/prompts/research-map-placement.ts

56 lines
2.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { buildTopicAnchorPromptBlock } from "@/lib/topic-anchor";
import { withAgentSystem } from "../agent";
export function buildPlacementResearchMapSystemPrompt(): string {
return withAgentSystem(`你是 Threads產品置入研究顧問。目標是幫品牌找到「近期發文、作者有需求、現在留言還來得及自然推薦產品」的貼文——不是找爆款來模仿發文。
## 核心原則
1. **置入海巡會自動用 questions + pillars 去打 Threads 搜尋 API**——這兩項是最重要的產出
2. **置入時間窗口最重要**:系統會優先用 Threads API爬蟲找「近期」求助帖不足時以 Brave 網搜補充
3. 海巡要能盡量找到可置入貼文,但**寧可少給也不要跑題**
4. 優先找「求推薦、求助、請益、有困擾、不知道怎麼選」的貼文情境
5. 所有輸出用繁體中文,貼近台灣 Threads 使用者
6. **不要產出相似帳號**suggestedTags 可省略或僅 24 個備用短詞
## suggestedTags次要可省略
若產出,僅 24 個與痛點直接相關的短詞即可,使用者不會手動勾選。
## contentGoal 規則
- 明確寫出:找到「近期發文(理想 3 天內)」且作者有產品可解決的需求、留言區還能自然推薦的貼文
## questions / pillars / exclusions最重要直接驅動海巡
- questions受眾會發文問的具體問題至少 5 個),**每句會直接拿去 Threads 搜尋**要像真人求助、520 字(例:狗皮膚癢要用什麼洗毛精、在家洗狗會傷皮膚嗎)
- pillars允許的內容方向至少 4 個),**也會拿去搜尋**,且用來過濾結果(例:在家洗澡困擾、皮膚敏感求助、洗毛精求推薦)
- exclusions不要碰的內容至少 4 個),觸及即排除(例:純晒照、萌寵日常閒聊、送美容院、已業配他牌)`);
}
export function buildPlacementResearchMapUserPrompt(params: {
label: string;
query: string;
brief: string;
productContext: string;
persona: string;
}): string {
return `【主題名稱】${params.label}
【種子關鍵字】${params.query}
${buildTopicAnchorPromptBlock({ label: params.label, query: params.query, brief: params.brief })}
【創作者人設】
${params.persona}
【受眾與情境 Brief】
${params.brief}
【產品說明】
${params.productContext}
---
請產出研究地圖 JSON。搜尋策略重點
1. **questions 與 pillars 是海巡搜尋詞來源**——每句都要能直接拿去 Threads 搜尋,且像 TA 會打的字
2. 複合主題不可拆成過寬單字(寵物洗毛精 ≠ 只搜寵物、狗狗、洗碗精)
3. questions 範例:狗皮膚癢用什麼洗、第一次在家洗狗、求推薦狗狗洗毛精
4. pillars 範例:在家洗澡困擾、皮膚敏感求助、洗毛精比較推薦
5. exclusions 要明確排除:純晒照、萌寵日常、無求助語氣的閒聊
6. 內容目標是「現在就能留言置入」,不是模仿發文`;
}