export const PERSONALIZED_WELCOME_EMAIL_PROMPT = `Generate highly personalized HTML content that will be inserted into an email template at the {{intro}} placeholder. User profile data: {{userProfile}} PERSONALIZATION REQUIREMENTS: You MUST create content that is obviously tailored to THIS specific user by: IMPORTANT: Do NOT start the personalized content with "Welcome" since the email header already says "Welcome aboard {{name}}". Use alternative openings like "Thanks for joining", "Great to have you", "You're all set", "Perfect timing", etc. 1. **Direct Reference to User Details**: Extract and use specific information from their profile: - Their exact investment goals or objectives - Their stated risk tolerance level - Their preferred sectors/industries mentioned - Their experience level or background - Any specific stocks/companies they're interested in - Their investment timeline (short-term, long-term, retirement) 2. **Contextual Messaging**: Create content that shows you understand their situation: - New investors → Reference learning/starting their journey - Experienced traders → Reference advanced tools/strategy enhancement - Retirement planning → Reference building wealth over time - Specific sectors → Reference those exact industries by name - Conservative approach → Reference safety and informed decisions - Aggressive approach → Reference opportunities and growth potential 3. **Personal Touch**: Make it feel like it was written specifically for them: - Use their goals in your messaging - Reference their interests directly - Connect features to their specific needs - Make them feel understood and seen CRITICAL FORMATTING REQUIREMENTS: - Return ONLY clean HTML content with NO markdown, NO code blocks, NO backticks - Use SINGLE paragraph only:

content

- Write exactly TWO sentences (add one more sentence than current single sentence) - Keep total content between 35-50 words for readability - Use for key personalized elements (their goals, sectors, etc.) - DO NOT include "Here's what you can do right now:" as this is already in the template - Make every word count toward personalization - Second sentence should add helpful context or reinforce the personalization Example personalized outputs (showing obvious customization with TWO sentences):

Thanks for joining Signalist! As someone focused on technology growth stocks, you'll love our real-time alerts for companies like the ones you're tracking. We'll help you spot opportunities before they become mainstream news.

Great to have you aboard! Perfect for your conservative retirement strategy — we'll help you monitor dividend stocks without overwhelming you with noise. You can finally track your portfolio progress with confidence and clarity.

You're all set! Since you're new to investing, we've designed simple tools to help you build confidence while learning the healthcare sector you're interested in. Our beginner-friendly alerts will guide you without the confusing jargon.

` export const NEWS_SUMMARY_EMAIL_PROMPT = `Generate HTML content for a market news summary email that will be inserted into the NEWS_SUMMARY_EMAIL_TEMPLATE at the {{newsContent}} placeholder. News data to summarize: {{newsData}} CRITICAL FORMATTING REQUIREMENTS: - Return ONLY clean HTML content with NO markdown, NO code blocks, NO backticks - Structure content with clear sections using proper HTML headings and paragraphs - Use these specific CSS classes and styles to match the email template: SECTION HEADINGS (for categories like "Market Highlights", "Top Movers", etc.):

Section Title

PARAGRAPHS (for news content):

Content goes here

STOCK/COMPANY MENTIONS: Stock Symbol for ticker symbols Company Name for company names PERFORMANCE INDICATORS: Use 📈 for gains, 📉 for losses, 📊 for neutral/mixed NEWS ARTICLE STRUCTURE: For each individual news item within a section, use this structure: 1. Article container with visual styling and icon 2. Article title as a subheading 3. Key takeaways in bullet points (2-3 actionable insights) 4. "What this means" section for context 5. "Read more" link to the original article 6. Visual divider between articles ARTICLE CONTAINER: Wrap each article in a clean, simple container:
ARTICLE TITLES:

Article Title Here

BULLET POINTS (minimum 3 concise insights): Use this format with clear, concise explanations (no label needed): INSIGHT SECTION: Add simple context explanation:

💡 Bottom Line: Simple explanation of why this news matters to your money in everyday language.

READ MORE BUTTON:
Read Full Story →
ARTICLE DIVIDER: Close each article container:
SECTION DIVIDERS: Between major sections, use:
Content guidelines: - Organize news into logical sections with icons (📊 Market Overview, 📈 Top Gainers, 📉 Top Losers, 🔥 Breaking News, 💼 Earnings Reports, 🏛️ Economic Data, etc.) - NEVER repeat section headings - use each section type only once per email - For each news article, include its actual headline/title from the news data - Provide MINIMUM 3 CONCISE bullet points (NO "Key Takeaways" label - start directly with bullets) - Each bullet should be SHORT and EASY TO UNDERSTAND - one clear sentence preferred - Use PLAIN ENGLISH - avoid jargon, complex financial terms, or insider language - Explain concepts as if talking to someone new to investing - Include specific numbers but explain what they mean in simple terms - Add "Bottom Line" context in everyday language anyone can understand - Use clean, light design with yellow bullets for better readability - Make each article easy to scan with clear spacing and structure - Always include simple "Read Full Story" buttons with actual URLs - Focus on PRACTICAL insights regular people can understand and use - Explain what the news means for regular investors' money - Keep language conversational and accessible to everyone - Prioritize BREVITY and CLARITY over detailed explanations Example structure:

📊 Market Overview

Stock Market Had Mixed Results Today

💡 Bottom Line: If you own tech stocks, today was good for you. If you're thinking about investing, tech companies might be a smart choice right now.

Read Full Story →

📈 Top Gainers

Apple Stock Jumped After Great Earnings Report

💡 Bottom Line: Apple is making money in different ways (phones AND services), so it's a pretty safe stock to own even when the economy gets shaky.

Read Full Story →
` export const TRADINGVIEW_SYMBOL_MAPPING_PROMPT = `You are an expert in financial markets and trading platforms. Your task is to find the correct TradingView symbol that corresponds to a given Finnhub stock symbol. Stock information from Finnhub: Symbol: {{symbol}} Company: {{company}} Exchange: {{exchange}} Currency: {{currency}} Country: {{country}} IMPORTANT RULES: 1. TradingView uses specific symbol formats that may differ from Finnhub 2. For US stocks: Usually just the symbol (e.g., AAPL for Apple) 3. For international stocks: Often includes exchange prefix (e.g., NASDAQ:AAPL, NYSE:MSFT, LSE:BARC) 4. Some symbols may have suffixes for different share classes 5. ADRs and foreign stocks may have different symbol formats RESPONSE FORMAT: Return ONLY a valid JSON object with this exact structure: { "tradingViewSymbol": "EXCHANGE:SYMBOL", "confidence": "high|medium|low", "reasoning": "Brief explanation of why this mapping is correct" } EXAMPLES: - Apple Inc. (AAPL) from Finnhub → {"tradingViewSymbol": "NASDAQ:AAPL", "confidence": "high", "reasoning": "Apple trades on NASDAQ as AAPL"} - Microsoft Corp (MSFT) from Finnhub → {"tradingViewSymbol": "NASDAQ:MSFT", "confidence": "high", "reasoning": "Microsoft trades on NASDAQ as MSFT"} - Barclays PLC (BARC.L) from Finnhub → {"tradingViewSymbol": "LSE:BARC", "confidence": "high", "reasoning": "Barclays trades on London Stock Exchange as BARC"} Your response must be valid JSON only. Do not include any other text.`