fixed docker
This commit is contained in:
@@ -180,13 +180,20 @@ Return JSON:
|
||||
const analysis = JSON.parse(jsonStr)
|
||||
|
||||
return {
|
||||
id: result.url,
|
||||
title: result.title,
|
||||
url: result.url,
|
||||
platform: result.source,
|
||||
source: result.source,
|
||||
snippet: result.snippet.slice(0, 300),
|
||||
relevanceScore: analysis.relevanceScore || 0,
|
||||
painPoints: analysis.painPoints || [],
|
||||
suggestedApproach: analysis.suggestedApproach || ''
|
||||
emotionalIntensity: (analysis.painPoints || []).length > 2 ? "high" : (analysis.painPoints || []).length > 0 ? "medium" : "low",
|
||||
intent: "looking",
|
||||
matchedKeywords: [],
|
||||
matchedProblems: analysis.painPoints || [],
|
||||
status: "new",
|
||||
suggestedApproach: analysis.suggestedApproach || '',
|
||||
softPitch: false,
|
||||
}
|
||||
} catch (e) {
|
||||
// Fallback simple analysis
|
||||
@@ -195,13 +202,20 @@ Return JSON:
|
||||
const relevance = Math.min(overlap / Math.max(product.keywords.length * 0.5, 1), 1)
|
||||
|
||||
return {
|
||||
id: result.url,
|
||||
title: result.title,
|
||||
url: result.url,
|
||||
platform: result.source,
|
||||
source: result.source,
|
||||
snippet: result.snippet.slice(0, 300),
|
||||
relevanceScore: relevance,
|
||||
painPoints: ['Related to product domain'],
|
||||
suggestedApproach: 'Share relevant insights about their problem'
|
||||
emotionalIntensity: "low",
|
||||
intent: "looking",
|
||||
matchedKeywords: product.keywords.slice(0, 5),
|
||||
matchedProblems: ['Related to product domain'],
|
||||
status: "new",
|
||||
suggestedApproach: 'Share relevant insights about their problem',
|
||||
softPitch: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user