Analyze stock sentiment with GPT-4o and create Asana tasks with Slack alerts

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on June 05, 2026

Description


πŸ“˜ Description
This workflow analyzes real-time stock market sentiment and intent from public social media discussions and converts those signals into operations-ready actions. It exposes a webhook endpoint where a stock-market–related query can be submitted (for example, a stock, sector, index, or market event). The workflow then scans Twitter/X and Instagram for recent public discussions that indicate buying interest, selling pressure, fear, uncertainty, or emerging opportunities.
An AI agent classifies each signal by intent type, sentiment, urgency, and strength. These insights are transformed into a prioritized Asana task for market or research teams and a concise Slack alert for leadership visibility. Built-in validation and error handling ensure reliable execution and fast debugging. This automation removes the need for manual social monitoring while keeping teams informed of emerging market risks and opportunities.
⚠️ Deployment Disclaimer
This template is designed for self-hosted n8n installations only.
It relies on external MCP tools and custom AI orchestration that are not supported on n8n Cloud.
βš™οΈ What This Workflow Does (Step-by-Step)
🌐 Receive Stock Market Query (Webhook Trigger)
Accepts an external POST request containing a stock market query.
🧾 Extract Stock Market Query from Payload
Normalizes and prepares the query for analysis.
πŸ”Ž Analyze Social Media for Stock Market Intent (AI)
Scans public Twitter/X and Instagram posts to detect actionable market intent signals.
πŸ“‘ Social Intelligence Data Fetch (MCP Tool)
Retrieves relevant social data from external intelligence sources.
🧠 Transform Market Intent Signals into Ops-Ready Actions (AI)
Structures insights into priorities, summaries, and recommended actions.
🧹 Parse Structured Ops Payload
Validates and safely parses AI-generated JSON for downstream use.
πŸ“‹ Create Asana Task for Market Signal Review
Creates a prioritized task with key signals, context, and recommendations.
πŸ“£ Send Market Risk & Sentiment Alert to Slack
Delivers an executive-friendly alert summarizing risks or opportunities.
🚨 Error Handler β†’ Slack Alert
Posts detailed error information if any workflow step fails.
🧩 Prerequisites
β€’ Self-hosted n8n instance
β€’ OpenAI and Azure OpenAI API credentials
β€’ MCP (Xpoz) social intelligence credentials
β€’ Asana OAuth credentials
β€’ Slack API credentials
πŸ›  Setup Instructions
Deploy the workflow on a self-hosted n8n instance
Configure the webhook endpoint and test with a sample query
Connect OpenAI, Azure OpenAI, MCP, Asana, and Slack credentials
Set the correct Asana workspace and project ID
Select the Slack channel for alerts
πŸ›  Customization Tips
β€’ Adjust intent and sentiment classification rules in AI prompts
β€’ Modify task priority logic or due-date rules
β€’ Extend outputs to email reports or dashboards if required
πŸ’‘ Key Benefits
βœ” Real-time market sentiment detection from social media
βœ” Converts unstructured signals into actionable tasks
βœ” Provides leadership-ready Slack alerts
βœ” Eliminates manual market monitoring
βœ” Built-in validation and error visibility
πŸ‘₯ Perfect For
Market research teams
Investment and strategy teams
Operations and risk teams
Founders and analysts tracking market sentiment

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Asana
n8n-nodes-base.asana
Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Code
n8n-nodes-base.code
MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Slack
n8n-nodes-base.slack