Skip to main content

Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail

Workflow preview

Workflow preview
100%
Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail preview
Open on n8n.io

1. Workflow Overview

Daily Market Brief Automation n8n, Gemini AI, Nifty 50 API & Gmail This workflow automatically generates and emails a concise daily stock market brief at 9:30 AM using real time Nifty 50 data,...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail
Workflow name
Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail

Daily Market Brief Automation

> n8n, Gemini AI, Nifty 50 API & Gmail

This workflow automatically generates and emails a concise daily stock market brief at 9:30 AM using real-time Nifty 50 data, financial news and AI-powered insights.

Quick Implementation Steps

  1. Import the workflow JSON into your n8n account
  2. Configure Google Gemini API credentials
  3. Set your recipient email in Gmail node
  4. Activate the workflow
  5. Sit back and receive daily market summaries automatically

What It Does

This workflow automates the creation of a daily stock market brief by combining real-time stock data and financial news with AI-driven insights.

Every day at 9:30 AM, the workflow fetches the latest Nifty 50 stock prices and financial news from public APIs. It processes stock data to identify top gainers and losers, while simultaneously analyzing news sentiment using Google Gemini AI.

Finally, it generates a crisp, human-readable market summary (under 120 words) and sends it via email—ensuring you stay informed without manual effort.

Who It's For

  • Stock market traders and investors
  • Financial analysts
  • Portfolio managers
  • Business owners tracking market trends
  • Anyone who wants a quick daily market snapshot

Requirements

To use this workflow, you need:

How It Works & Setup Instructions

Step 1: Schedule Trigger

  • Node: Market Open Scheduler
  • Triggers workflow daily at 9:30 AM

You can modify timing based on your market preference.

Step 2: Fetch Data

Stock Prices
  • Node: Fetch Nifty 50 Stock Prices
  • Fetches real-time prices for predefined Nifty 50 stocks
Market News
  • Node: Fetch Market News
  • Retrieves latest financial news

Step 3: Process Stock Data

  1. Extract Price Data
  • Extracts prices object from API response
  1. Normalize Price Data
  • Converts object into array format
  1. Calculate Gainers & Losers
  • Sorts stocks by percentage change
  • Identifies:
  • Top 10 Gainers
  • Top 10 Losers

Step 4: Analyze News with AI

  1. Analyze News Sentiment (AI)
  • Uses Google Gemini to:
  • Extract stock names
  • Determine sentiment (Bullish / Bearish / Mixed)
  • Provide short reasoning
  1. Parse News Response
  • Converts AI output into structured JSON

Step 5: Merge & Validate Data

  • Merge Market Data

  • Combines stock insights and news analysis

  • Validate Data

  • Ensures data is not empty before proceeding

  • Aggregate Dataset

  • Combines all outputs into a single structure

  • Structure Final Payload

  • Prepares:

  • Top gainers

  • Top losers

  • News insights

Step 6: Generate AI Market Brief

Node: Generate Market Brief (AI)

Uses Gemini AI to generate:

  • Nifty trend summary
  • News highlights
  • Top gainers & losers

Output Format:

  • Max 120 words
  • Bullet style
  • Clean and concise

Step 7: Send Email

Node: Send Email Report

Required Setup:

  • Add recipient email in sendTo field
  • Configure Gmail credentials

How To Customize Nodes

Modify Stock List

  • Update symbols inside Fetch Nifty 50 Stock Prices node JSON body

Change Schedule

  • Edit Market Open Scheduler
  • Adjust trigger time as needed

Customize AI Prompts

  • Modify prompts in:
  • Analyze News Sentiment (AI)
  • Generate Market Brief (AI)

You can:

  • Increase word limit
  • Change tone (formal/casual)
  • Add more insights

Customize Email

  • Update subject line in Gmail node
  • Switch to HTML format if needed

Add-ons (Enhancements)

  • Send alerts to Slack/Telegram instead of email
  • Store reports in Google Sheets or database
  • Add historical trend comparison
  • Include sector-wise analysis
  • Add chart/graph attachments
  • Multi-recipient distribution list

Use Case Examples

  1. Daily Investor Briefing
  • Receive quick updates before market decisions
  1. Portfolio Monitoring
  • Track gainers/losers affecting your holdings
  1. Financial Newsletter Automation
  • Use output as ready-to-send content
  1. Trading Desk Alerts
  • Provide morning insights to trading teams
  1. Market Research Support
  • Automate initial research summaries

There can be many more use cases depending on how you extend this workflow.

Troubleshooting Guide

Issue Possible Cause Solution
No email received Gmail not configured Add credentials and recipient email
Empty market brief API returned no data Check API endpoints and responses
AI output not parsed Incorrect JSON format from AI Verify parsing logic in "Parse News Response" node
Workflow not triggering Scheduler misconfigured Check trigger time and timezone
Incorrect gainers/losers Data structure mismatch Validate API response format

Need Help?

If you need assistance with:

  • Setting up this workflow in your environment
  • Customizing AI prompts or logic
  • Adding advanced features or integrations
  • Building similar automation workflows

👉 Reach out to WeblineIndia for expert support.

We’re happy to help you automate smarter and scale faster.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Market Open Scheduler

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Fetch Market News

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 3 - Extract Price Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Normalize Price Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Calculate Gainers & Losers

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Analyze News Sentiment (AI)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1.1

Block 7 - Parse News Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Merge Market Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 9 - Validate Data

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 10 - Aggregate Dataset

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Structure Final Payload

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Generate Market Brief (AI)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1.1

Block 13 - Send Email Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Fetch Nifty 50 Stock Prices1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 17 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail
Complexity advanced
Nodes 20
Categories Crypto Trading, AI Summarization
Author WeblineIndia
Published 27 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15339/15339.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send a daily Nifty 50 market brief using Gemini AI, Nifty 50 API and Gmail do?

Daily Market Brief Automation n8n, Gemini AI, Nifty 50 API & Gmail This workflow automatically generates and emails a concise daily stock market brief at 9:30 AM using real time Nifty 50 data,...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.