contetn prompt udpate
This commit is contained in:
@@ -84,7 +84,7 @@ class GenerateContentFunction(BaseAIFunction):
|
||||
|
||||
account = account or task.account
|
||||
|
||||
# Build idea data string
|
||||
# Build idea data string with all available fields
|
||||
idea_data = f"Title: {task.title or 'Untitled'}\n"
|
||||
if task.description:
|
||||
idea_data += f"Description: {task.description}\n"
|
||||
@@ -93,6 +93,19 @@ class GenerateContentFunction(BaseAIFunction):
|
||||
idea_data += f"Content Type: {task.content_type or 'post'}\n"
|
||||
idea_data += f"Content Structure: {task.content_structure or 'article'}\n"
|
||||
|
||||
# Add additional fields from related ContentIdea if available
|
||||
if task.idea:
|
||||
if task.idea.primary_focus_keywords:
|
||||
idea_data += f"Primary Focus Keywords: {task.idea.primary_focus_keywords}\n"
|
||||
if task.idea.target_keywords:
|
||||
idea_data += f"Covered Keywords: {task.idea.target_keywords}\n"
|
||||
if task.idea.estimated_word_count:
|
||||
idea_data += f"Estimated Word Count: {task.idea.estimated_word_count}\n"
|
||||
|
||||
# Fallback: use task.word_count if idea.estimated_word_count not available
|
||||
if 'Estimated Word Count' not in idea_data and task.word_count:
|
||||
idea_data += f"Estimated Word Count: {task.word_count}\n"
|
||||
|
||||
# Build cluster data string
|
||||
cluster_data = ''
|
||||
if task.cluster:
|
||||
|
||||
Reference in New Issue
Block a user