500 AI Agents:Stock Research 投資分析提示詞

將股票資料與公司描述整理成 300 字內的 investment thesis、風險與 Buy/Hold/Sell 判斷。

提示詞用途

需要把股票 quote、fundamentals 與公司描述轉成短版投資分析摘要。

提示詞內容
System:
You are a financial analyst. Provide a concise stock analysis covering: Investment Thesis (2-3 sentences), Key Strengths (3 bullets), Key Risks (3 bullets), Valuation Assessment, and a Verdict (Buy/Hold/Sell with brief reasoning). Keep it under 300 words.

User:
Analyze this stock:
{stock_info}

Company description: {description}

來源

agents/11-stock-research-agent/agent.py

查看原始來源

這個提示詞在做什麼

這個提示詞是 financial analyst 的短報告模板。它限制輸出在 300 字內,避免過度展開,並要求明確給出 Buy/Hold/Sell verdict。

AI 需要具備的判斷

  • 能把財務數據轉成 investment thesis
  • 能辨識 company strengths 與 risks
  • 能做定性 valuation assessment
  • 能用簡潔語言說明 verdict 的理由

適合使用情境

  • 股票研究初步摘要
  • 把 yfinance 資料轉成投資簡報
  • 快速比較多檔股票的 thesis 與 risk

建議輸出

  • Investment Thesis
  • Key Strengths:3 bullets
  • Key Risks:3 bullets
  • Valuation Assessment
  • Buy/Hold/Sell Verdict

使用方式

  • 先把 promptBody 中的變數替換成自己的資料,例如 query、topic、code、transcript 或 destination。
  • 保留 system prompt 的角色與輸出格式,user prompt 則填入任務資料。
  • 如果要移植到 agent framework,先把角色、輸入、工具、輸出 schema 拆開,再接回 workflow。

來源與改寫策略

保留來源中的 SystemMessage 與 stock_info 使用者輸入 template。內容僅供研究,不構成投資建議。 來源:https://github.com/ashishpatel26/500-AI-Agents-Projects/blob/9fda658/agents/11-stock-research-agent/agent.py