feat(google-ads): Add 'Special Instructions' support - Users can now provide custom preferences (tone, focus, etc.) for AI generation - Added 'Special Instructions' field to Google Ads Generator UI (below Target Audience) - Localized labels and placeholders in English, Russian, and Hebrew - Integrated instructions into AI prompts across Ollama, Qwen, and Z.AI providers

This commit is contained in:
Gemini AI
2025-12-28 02:51:53 +04:00
Unverified
parent 9e74fcba67
commit 2c7b233bca
6 changed files with 44 additions and 7 deletions

View File

@@ -772,6 +772,7 @@ Generate SPECTACULAR slides with CSS3 animations, SVG charts, modern gradients,
industry?: string;
competitors?: string[];
language?: string;
specialInstructions?: string;
} = { productsServices: [] },
model?: string
): Promise<APIResponse<string>> {
@@ -782,7 +783,8 @@ Generate SPECTACULAR slides with CSS3 animations, SVG charts, modern gradients,
campaignDuration,
industry = "General",
competitors = [],
language = "English"
language = "English",
specialInstructions = ""
} = options;
const systemMessage: ChatMessage = {
@@ -847,6 +849,7 @@ LANGUAGE: ${language}
${budgetRange ? `BUDGET: ${budgetRange.min}-${budgetRange.max} ${budgetRange.currency}/month` : ""}
${campaignDuration ? `DURATION: ${campaignDuration}` : ""}
${competitors.length > 0 ? `COMPETITORS: ${competitors.join(", ")}` : ""}
${specialInstructions ? `SPECIAL INSTRUCTIONS: ${specialInstructions}` : ""}
Generate complete Google Ads package with keywords, ad copy, campaigns, and implementation guidance.`,
};
@@ -858,6 +861,7 @@ Generate complete Google Ads package with keywords, ad copy, campaigns, and impl
websiteUrl: string,
product: string,
budget: number,
specialInstructions?: string,
model?: string
): Promise<APIResponse<string>> {
const systemMessage: ChatMessage = {
@@ -922,6 +926,7 @@ CRITICAL REQUIREMENTS:
WEBSITE: ${websiteUrl}
PRODUCT/SERVICE: ${product}
MONTHLY BUDGET: $${budget}
${specialInstructions ? `SPECIAL INSTRUCTIONS: ${specialInstructions}` : ""}
Perform a DEEP 360° competitive intelligence analysis and generate 5-7 strategic campaign directions.`,
};