{
  "name": "Generate comprehensive research reports with Gemini AI and Tavily Search for Japanese users",
  "nodes": [
    {
      "id": "bdf85255-f3d9-4973-90a7-88728b1d0aec",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        120,
        0
      ]
    },
    {
      "id": "81ece876-1fb4-44d0-b739-6c2885faf6f4",
      "name": "Query Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        0
      ]
    },
    {
      "id": "c3d07289-c5eb-486d-b72b-ac254081c5d2",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        700,
        200
      ]
    },
    {
      "id": "54a580ae-8e1e-466e-b16a-03b595098e2f",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        880,
        200
      ]
    },
    {
      "id": "56ed43ed-3130-4943-a437-47f7a5dfcbf8",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1180,
        180
      ]
    },
    {
      "id": "0ace29b7-067d-4bf0-9ea4-a34d2f38ae67",
      "name": "Tavily_Search_Tool",
      "type": "@tavily/n8n-nodes-tavily.tavilyTool",
      "position": [
        1340,
        180
      ]
    },
    {
      "id": "4ff9b87a-4f50-4080-8bad-ca38c8292c1c",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1660,
        180
      ]
    },
    {
      "id": "1801caa0-471a-4a9b-a86e-625118a56024",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2120,
        0
      ]
    },
    {
      "id": "5d706b1d-7878-4e5d-8a4a-c11998060d3e",
      "name": "Research Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1180,
        0
      ]
    },
    {
      "id": "c8e7f969-72d9-41f8-a553-6a75b0bc27d2",
      "name": "Report Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1660,
        0
      ]
    },
    {
      "id": "78256843-744f-4113-aae8-70122c93f19b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -260
      ],
      "parameters": {
        "width": 560,
        "height": 560,
        "content": "## 📋 Simple Deep Research for Japanese Users\n\n**このワークフローについて**\n\nこのワークフローは、日本語ユーザー向けの自動調査・分析システムです。質問を入力すると、AIが最適な検索クエリを生成し、Tavilyで複数の視点から情報を調査し、統合された包括的なHTMLレポートをメールで送信します。\n\n**主な機能：**\n- 質問から3つの最適化された検"
      }
    },
    {
      "id": "5bf63a62-71c9-4b71-92f1-35220c0acf98",
      "name": "query",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        0
      ]
    },
    {
      "id": "29036268-0dce-406d-b478-550e1d3ecaee",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -400
      ],
      "parameters": {
        "width": 280,
        "height": 760,
        "content": "## 🎯 Step 1: Query Input Setup\n**Edit Fields - クエリ設定**\n\nここでユーザーの質問を設定します。デフォルトでは「n8nとdifyの違い」が設定されています。\n\n**カスタマイズ方法：**\n- `query`フィールドの値を変更\n- 日本語で質問を入力\n- 比較・分析・調査系の質問が効果的\n"
      }
    },
    {
      "id": "b8a3c415-4643-4a0a-bcfa-46cb9aaff345",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -400
      ],
      "parameters": {
        "width": 400,
        "height": 760,
        "content": "## 🧠 Step 2: AI Query Generation\n**Query Generator - クエリ最適化**\n\nGoogle Gemini 2.5-flashを使用して、入力された質問から3つの最適化された検索クエリを生成します。\n\n**処理内容：**\n- 日本語質問を分析\n- 検索に適したキーワードを抽出\n- 英語クエリも必要に応じて生成\n- 構造化出力でquery1, query"
      }
    },
    {
      "id": "5417921f-5cf9-445a-a731-4ea0f242271b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -400
      ],
      "parameters": {
        "width": 460,
        "height": 720,
        "content": "## 🔍 Step 3: Multi-Query Research\n**Research Agent - 調査実行**\n\n生成された3つのクエリを使用してTavilyで調査を実行します。\n\n**調査設定：**\n- `search_depth`: \"advanced\"\n- `max_results`: 10\n- `include_answer`: \"advanced\"\n\n**処理内容：**\n- 各ク"
      }
    },
    {
      "id": "5e73dace-b2dc-462a-b311-257799145ae1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        -400
      ],
      "parameters": {
        "width": 400,
        "height": 720,
        "content": "## 📊 Step 4: Report Generation\n**Report Agent - レポート作成**\n\n収集した調査結果を統合し、構造化されたHTMLレポートを生成します。\n\n**レポート特徴：**\n- 包括的で理解しやすい構造\n- 重複と矛盾を排除\n- HTML形式で視覚的に見やすい\n- ユーザーの質問に対する直接的な回答\n\n**使用モデル：** Google Gemini 2.5-"
      }
    },
    {
      "id": "cf3d13de-00b5-4dee-9f92-33735ee627f2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2020,
        -400
      ],
      "parameters": {
        "width": 340,
        "height": 720,
        "content": "## 📧 Step 5: Email Delivery\n**Send a message - レポート送信**\n\n完成したHTMLレポートをGmail経由で送信します。\n\n**送信設定：**\n- 送信先：Toで送信先を設定\n- 件名：入力された質問\n- 本文：HTMLレポート\n\n**カスタマイズ：** 送信先メールアドレスを適切に変更してください"
      }
    },
    {
      "id": "5575b0b2-68ef-4e9c-8cdf-b01bdc858f69",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        340
      ],
      "parameters": {
        "width": 560,
        "height": 360,
        "content": "## 💡 Customization Tips\n\n**クエリの最適化**\n- 具体的で明確な質問を入力\n- 比較分析系の質問が特に効果的\n- 日本語での入力を推奨\n\n**レポート品質向上**\n- より詳細な調査が必要な場合はmax_resultsを増加\n- クエリの数を3つ以上に増やす\n- 特定分野に特化する場合はsystem messageを調整\n\n**配信設定**\n- 複数の宛先に送信する場合"
      }
    }
  ],
  "connections": {
    "query": {
      "main": [
        [
          {
            "node": "Query Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Report Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Agent": {
      "main": [
        [
          {
            "node": "Report Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Generator": {
      "main": [
        [
          {
            "node": "Research Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tavily_Search_Tool": {
      "ai_tool": [
        [
          {
            "node": "Research Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Query Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Query Generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Research Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Report Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}