AutomationFlowsAI & RAG › Analyze Usd/jpy Rates with AI and Tavily News Search for Email Reporting

Analyze Usd/jpy Rates with AI and Tavily News Search for Email Reporting

Bys3110 @s3110 on n8n.io

Who’s it for

Cron / scheduled trigger★★★★☆ complexityAI-powered12 nodesAgentOpenRouter ChatTool Http RequestOutput Parser StructuredGmailHTTP Request
AI & RAG Trigger: Cron / scheduled Nodes: 12 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #9550 — we link there as the canonical source.

This workflow follows the Agent → Gmail recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Analyze USD/JPY rate and email results every 4 hours",
  "tags": [],
  "nodes": [
    {
      "id": "4c0ddb6c-8600-4415-b43d-5f21ca6f4a20",
      "name": "Run every 4 hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -272,
        288
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 4
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "772686d8-5109-4e73-bfe2-ea825c70fbf5",
      "name": "Note: Schedule",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        64
      ],
      "parameters": {
        "color": 5,
        "width": 200,
        "height": 150,
        "content": "## Schedule\nRuns every 4 hours\n\nStarts the forex analysis pipeline"
      },
      "typeVersion": 1
    },
    {
      "id": "9ca23927-bda5-4914-807c-944744976dbd",
      "name": "Note: Fetch rate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        64
      ],
      "parameters": {
        "width": 200,
        "height": 182,
        "content": "## Fetch current exchange rate\nFetch the latest USD/JPY rate\n\nUses a free HTTP API"
      },
      "typeVersion": 1
    },
    {
      "id": "a13e3fc1-2101-4916-a3dc-1fe6deb79c89",
      "name": "Analyze USD/JPY (AI agent)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        448,
        288
      ],
      "parameters": {
        "text": "=\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u57fa\u306bUSD/JPY\uff08\u30c9\u30eb\u5186\uff09\u306e\u70ba\u66ff\u5206\u6790\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\uff1a\n\n\u73fe\u5728\u306e\u30ec\u30fc\u30c8: {{ $json.rates.JPY }} \u5186/\u30c9\u30eb\n\n\u30bf\u30b9\u30af:\n1. \u6700\u65b0\u306e\u30c9\u30eb\u5186\u95a2\u9023\u30cb\u30e5\u30fc\u30b9\u3092\u691c\u7d22\u3057\u3066\u5206\u6790\n2. \u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u306e\u89b3\u70b9\u304b\u3089\u73fe\u5728\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u5224\u5b9a\n3. \u8cb7\u3044\u30fb\u58f2\u308a\u30fb\u69d8\u5b50\u898b\u306e\u3044\u305a\u308c\u304b\u3092\u63a8\u5968\n4. \u305d\u306e\u6839\u62e0\u3092\u8a73\u3057\u304f\u8aac\u660e\n\n\u5206\u6790\u7d50\u679c\u3092\u65e5\u672c\u8a9e\u3067\u307e\u3068\u3081\u3066\u304f\u3060\u3055\u3044\u3002",
        "options": {
          "systemMessage": "=role: |\n  \u3042\u306a\u305f\u306f\u7d4c\u9a13\u8c4a\u5bcc\u306a\u70ba\u66ff\u30a2\u30ca\u30ea\u30b9\u30c8\u3067\u3059\u3002USD/JPY\uff08\u30c9\u30eb\u5186\uff09\u306e\u5206\u6790\u3092\u884c\u3044\u3001\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3068\u30d5\u30a1\u30f3\u30c0\u30e1\u30f3\u30bf\u30eb\u5206\u6790\u306e\u4e21\u65b9\u306e\u89b3\u70b9\u304b\u3089\u6295\u8cc7\u5224\u65ad\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\n  \u3042\u306a\u305f\u306e\u6700\u3082\u91cd\u8981\u306a\u5f79\u5272\u306f\u300c\u30c4\u30fc\u30eb\u3092\u5fc5\u305a\u6d3b\u7528\u3059\u308b\u3053\u3068\u300d\u3067\u3059\u3002\u7279\u306b\u30cb\u30e5\u30fc\u30b9\u691c\u7d22\u306f\u81ea\u529b\u3067\u7b54\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5fc5\u305a\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\nenvironment: |\n  \u5165\u529b\u3068\u3057\u3066\u73fe\u5728\u306e\u70ba\u66ff\u30ec\u30fc\u30c8\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\n  \u305d\u306e\u5f8c\u3001\u3042\u306a\u305f\u306f\u4ee5\u4e0b\u306e\u6d41\u308c\u3067\u52d5\u4f5c\u3057\u3066\u304f\u3060\u3055\u3044\uff1a\n  1. **Search Forex News** \u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3057\u3001\u6700\u65b0\u306eUSD/JPY\u95a2\u9023\u30cb\u30e5\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3002\n  2. \u53d6\u5f97\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u3092\u5206\u6790\u3057\u3001\u30d5\u30a1\u30f3\u30c0\u30e1\u30f3\u30bf\u30eb\u306e\u89b3\u70b9\u3092\u307e\u3068\u3081\u308b\u3002\n  3. \u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u884c\u3044\u3001\u73fe\u5728\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u5224\u5b9a\u3059\u308b\u3002\n  4. \u300c\u8cb7\u3044\u30fb\u58f2\u308a\u30fb\u69d8\u5b50\u898b\u300d\u306e\u3044\u305a\u308c\u304b\u3092\u5fc5\u305a\u63a8\u5968\u3057\u3001\u305d\u306e\u6839\u62e0\u3092\u8aac\u660e\u3059\u308b\u3002\n  5. \u7d50\u679c\u3092\u69cb\u9020\u5316\uff08recommendation, currentRate, technicalAnalysis, newsAnalysis, reasoning\uff09\u3057\u3066\u8fd4\u3059\u3002\n\ntools:\n  - name: Search Forex News\n    description: USD/JPY\uff08\u30c9\u30eb\u5186\uff09\u306b\u95a2\u3059\u308b\u6700\u65b0\u30cb\u30e5\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3002\n    must_use: true\n  - name: Analysis Output Parser\n    description: \u69cb\u9020\u5316\u3055\u308c\u305f\u51fa\u529b\uff08recommendation, currentRate, technicalAnalysis, newsAnalysis, reasoning\uff09\u3092\u751f\u6210\u3059\u308b\u3002\n    must_use: true\n\nrules: |\n  - \u3059\u3079\u3066\u306e\u56de\u7b54\u306f\u65e5\u672c\u8a9e\u3067\u51fa\u529b\u3059\u308b\u3002\n  - \u30cb\u30e5\u30fc\u30b9\u306e\u53d6\u5f97\u306f\u5fc5\u305a **Search Forex News** \u30c4\u30fc\u30eb\u7d4c\u7531\u3067\u884c\u3044\u3001\u81ea\u5206\u3067\u60f3\u50cf\u3057\u3066\u88dc\u5b8c\u3057\u306a\u3044\u3002\n  - \u51fa\u529b\u306f\u5fc5\u305a **Analysis Output Parser** \u3092\u901a\u3058\u3066\u69cb\u9020\u5316\u3059\u308b\u3002\n  - \u66d6\u6627\u306a\u307e\u307e\u7b54\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30c4\u30fc\u30eb\u3092\u6d3b\u7528\u3057\u3066\u4e0d\u8db3\u60c5\u5831\u3092\u88dc\u3046\u3002"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2
    },
    {
      "id": "bd210702-ef05-4f18-a99d-836628970d18",
      "name": "LLM provider (configure)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        336,
        528
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "b924ba96-6fb4-4f50-ae33-6e63997d4e45",
      "name": "Note: LLM setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        672
      ],
      "parameters": {
        "color": 3,
        "width": 200,
        "height": 150,
        "content": "## LLM setup\nProvide your LLM provider credential in this node\n\nDefault: small/light model"
      },
      "typeVersion": 1
    },
    {
      "id": "88b48c24-c1d2-4de7-89f9-31c557c126f4",
      "name": "Tool: Search Forex News (Tavily)",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        544,
        512
      ],
      "parameters": {
        "url": "https://api.tavily.com/search",
        "method": "POST",
        "jsonBody": "={\n    \"api_key\": \"={{ $json.tavilyApiKey }}\",\n    \"query\": \"{searchTerm}\",\n    \"search_depth\": \"advanced\",\n    \"include_answer\": true,\n    \"topic\": \"finance\",\n    \"include_raw_content\": true,\n    \"max_results\": 5\n}",
        "sendBody": true,
        "specifyBody": "json",
        "toolDescription": "USD/JPY\uff08\u30c9\u30eb\u5186\uff09\u306b\u95a2\u3059\u308b\u6700\u65b0\u30cb\u30e5\u30fc\u30b9\u3092\u691c\u7d22",
        "placeholderDefinitions": {
          "values": [
            {
              "name": "searchTerm",
              "type": "string",
              "description": "Edit the query if you want to focus on specific events (e.g., BoJ, FOMC, yields)."
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "2bf64e09-14c7-4534-9e36-294c39239352",
      "name": "Tool: Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        688,
        512
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"recommendation\": {\n      \"type\": \"string\",\n      \"description\": \"\u8cb7\u3044\u3001\u58f2\u308a\u3001\u69d8\u5b50\u898b\u306e\u3044\u305a\u308c\u304b\u306e\u63a8\u5968\"\n    },\n    \"currentRate\": {\n      \"type\": \"string\",\n      \"description\": \"\u73fe\u5728\u306eUSD/JPY\u30ec\u30fc\u30c8\"\n    },\n    \"technicalAnalysis\": {\n      \"type\": \"string\",\n      \"description\": \"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u306e\u8a73\u7d30\"\n    },\n    \"newsAnalysis\": {\n      \"type\": \"string\",\n      \"description\": \"\u6700\u65b0\u30cb\u30e5\u30fc\u30b9\u306e\u5206\u6790\u7d50\u679c\"\n    },\n    \"reasoning\": {\n      \"type\": \"string\",\n      \"description\": \"\u63a8\u5968\u306e\u6839\u62e0\u3068\u8a73\u7d30\u306a\u8aac\u660e\"\n    }\n  },\n  \"required\": [\"recommendation\", \"currentRate\", \"technicalAnalysis\", \"newsAnalysis\", \"reasoning\"]\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "94430eeb-9636-4509-81fe-7ebe89b04ff4",
      "name": "Note: Email setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        64
      ],
      "parameters": {
        "color": 6,
        "width": 200,
        "height": 182,
        "content": "## Email settings\nConfigure your email credential (Gmail or SMTP)\n\nRecipient is controlled via the **Set (Fields)** node"
      },
      "typeVersion": 1
    },
    {
      "id": "95e39659-8e9c-46c6-8603-ed89ed5d1ee1",
      "name": "Send results via Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        800,
        288
      ],
      "parameters": {
        "sendTo": "={{ $json.notifyEmail }}",
        "message": "={{ JSON.stringify($json.output) }}",
        "options": {},
        "subject": "USD/JPY analysis result"
      },
      "typeVersion": 2.1
    },
    {
      "id": "c9d40300-0332-4409-ba47-349339536b24",
      "name": "Set (Fields) \u2014 Configure me",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        288
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "tavilyApiKey",
              "value": "<YOUR_TAVILY_API_KEY>"
            },
            {
              "name": "notifyEmail",
              "value": "<YOUR_EMAIL_ADDRESS>"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "4e0e0f6f-e9a2-42ba-a633-d04e0f664594",
      "name": "Fetch USD/JPY rate (HTTP)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        288
      ],
      "parameters": {
        "url": "https://api.exchangerate-api.com/v4/latest/USD",
        "options": {}
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Run every 4 hours": {
      "main": [
        [
          {
            "node": "Set (Fields) \u2014 Configure me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM provider (configure)": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze USD/JPY (AI agent)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch USD/JPY rate (HTTP)": {
      "main": [
        [
          {
            "node": "Analyze USD/JPY (AI agent)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze USD/JPY (AI agent)": {
      "main": [
        [
          {
            "node": "Send results via Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set (Fields) \u2014 Configure me": {
      "main": [
        [
          {
            "node": "Fetch USD/JPY rate (HTTP)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Analyze USD/JPY (AI agent)",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Search Forex News (Tavily)": {
      "ai_tool": [
        [
          {
            "node": "Analyze USD/JPY (AI agent)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Who’s it for

Source: https://n8n.io/workflows/9550/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

kisisel asistan. Uses toolWorkflow, toolHttpRequest, toolCalculator, toolThink. Scheduled trigger; 43 nodes.

Tool Workflow, Tool Http Request, Tool Calculator +15
AI & RAG

Automates financial risk evaluation by intelligently consolidating information from five critical sources: financial, operational, legal, insurance, and regulatory systems. Hourly triggers enable cont

HTTP Request, Agent, Output Parser Structured +3
AI & RAG

This workflow automates competitive real estate pricing analysis by combining multiple MLS data sources with AI-powered market intelligence. Designed for real estate professionals, property managers,

HTTP Request, Agent, Output Parser Structured +4
AI & RAG

This n8n template demonstrates how to build an autonomous AI agent that automatically scours the web for the latest news, intelligently summarizes the top stories, and delivers a professional, formatt

Agent, OpenRouter Chat, Tool Http Request +2
AI & RAG

Complete PostgreSQL-backed system: Keyword scoring → AI research → Multi-part content generation → fal.ai Nano Banana image generation → WordPress publishing

WordPress, OpenAI, Perplexity +8