Skip to main content

Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity

Workflow preview

Workflow preview
100%
Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Grok 4 with Perplexity Daily Portolio Advisor. This workflow acts as your personal AI stock a...

Best for

  • Crypto Trading automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatxaigrok, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.perplexitytool, n8n-nodes-base.googlesheetstool, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity
Workflow name
Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

📊 Grok-4 with Perplexity Daily Portolio Advisor.

This workflow acts as your personal AI stock analyst—powered by Grok-4, Perplexity, and Google Sheets—to give you daily, tailored market insights based on your actual investment portfolio.

Every morning, the workflow:

Fetches your current stock holdings from a connected Google Sheet

Uses Perplexity to search and summarize the latest stock market news relevant to your portfolio

Leverages Grok-4 AI to analyze how those news events impact your stocks

Provides buy/sell/hold recommendations and AI-powered investment insights

Emails you a clean, easy-to-read summary—perfect for busy investors

To watch the step-by-step Tutorial build of this workflow, check out: https://youtu.be/OXzsh-Ba-8Y

Google Sheet Template: https://docs.google.com/spreadsheets/d/1074dZk-vhwz6LML5zoiwHdxg89Z8u_mgl7wwzqf3A98/edit?usp=sharing

🧠 What’s Inside: AI Agent: Grok-4 Stock Analyst (via xAI Grok-4)

Tool Integrations:  📄 Google Sheets (Portfolio input)  🔍 Perplexity (News search)  ✍️ GPT Summary Agent (Readable output)  📧 Gmail (Automated delivery)

Schedule: Runs daily at 10:00 AM by default (customizable)

💡 Use Cases: Retail investors seeking personalized news summaries

Portfolio managers automating market analysis

Fintech startups prototyping intelligent investment advisors

Anyone wanting actionable stock updates without reading 10+ articles

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 - Schedule Trigger

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

Block 2 - Grok-4 Stock Analyst Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - xAI Grok Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatXAiGrok - lmChatXAiGrok
Config choices
Version 1

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Perplexity

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

Block 6 - Stock Holdings Portfolio

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 7 - Gmail

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

Block 8 - xAI Grok Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatXAiGrok - lmChatXAiGrok
Config choices
Version 1

Block 9 - Summary Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

3. Summary Table

Workflow Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity
Complexity intermediate
Nodes 14
Categories Crypto Trading, AI RAG
Author Automate With Marc
Published 14 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5994/5994.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 Personalized stock portfolio analysis and recommendations with Grok-4 and Perplexity do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Grok 4 with Perplexity Daily Portolio Advisor. This workflow acts as your personal AI stock a...

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 RAG use case.