Skip to content

Instantly share code, notes, and snippets.

@bikash119
Last active August 30, 2025 05:20
Show Gist options
  • Save bikash119/ef67e092130b7383702e5b51df867514 to your computer and use it in GitHub Desktop.
Save bikash119/ef67e092130b7383702e5b51df867514 to your computer and use it in GitHub Desktop.
AI Fundamentalist n8n workflow
{
"name": "AI Funamentalist",
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://api.brightdata.com/dca/trigger",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "queue_next",
"value": "1"
},
{
"name": "collector",
"value": "c_mekdzh5iwilsejjtt"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer 8875dd494af4e4c3a1c4fc69c8f10e9179a6f714f931b40a3fad1e04a81b1c4b"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "=[\n {\n \"url\": \"{{ $json.url }}\"\n }\n] ",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-4448,
-1840
],
"id": "599fcb2b-00a1-4e9e-abb2-03cc193221d9",
"name": "Initiate Brightdata scraper"
},
{
"parameters": {
"formTitle": "screener_url",
"formDescription": "Enter the url of scrip on screener website",
"formFields": {
"values": [
{
"fieldLabel": "url",
"placeholder": "https://www.screener.in/company/<scrip_id>/consolidated/",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.2,
"position": [
-4656,
-1840
],
"id": "df8a48ec-7f64-4778-9ad9-6ff61a9e1030",
"name": "On form submission",
"webhookId": "2e518f51-eed2-4f8d-9d4c-4aa58ba88a2b"
},
{
"parameters": {},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
-3808,
-1840
],
"id": "99648b86-a804-4f9a-b5ca-7ea0ef88d6a3",
"name": "Wait",
"webhookId": "16d61308-db4f-4743-906a-ce2698de33ac"
},
{
"parameters": {
"url": "https://api.brightdata.com/dca/dataset",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "brightdataApi",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "={{ $json.collection_id }}"
}
]
},
"options": {
"response": {
"response": {
"responseFormat": "json"
}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-4208,
-1840
],
"id": "98410a68-1dc9-4a8d-86eb-76ec4a3ccbdc",
"name": "Extract Response from BrightData Scraper",
"credentials": {
"brightdataApi": {
"id": "j9tWNNn1GW6rmTzE",
"name": "BrightData account"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "db8f6ddf-c9a6-46c3-a554-4621995f1bf9",
"leftValue": "={{ $('intermediate storage').item.json.dataAvailable }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {
"ignoreCase": false
}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-3648,
-1840
],
"id": "a332bb54-2d02-4f07-b4e8-9e5c322265b8",
"name": "If"
},
{
"parameters": {
"jsCode": "\nreturn $input.first().json"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-3424,
-1792
],
"id": "57f5d6e8-1a8b-4e5c-af78-27e2b60233f9",
"name": "Code"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "891078ee-75f9-44b0-8753-6a3c5fa9445e",
"name": "collection_id",
"value": "={{ $('Initiate Brightdata scraper').item.json.collection_id }}",
"type": "string"
},
{
"id": "1366a796-9a4b-4509-ac3e-9a1fa41bbddc",
"name": "dataAvailable",
"value": "={{ $json.data !== undefined }}",
"type": "boolean"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-4000,
-1840
],
"id": "54f063af-5b0d-43c6-8430-ec16affed9e5",
"name": "intermediate storage"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "90f29e57-124b-4ff2-8d7d-17b69b2672d1",
"name": "data",
"value": "={{ $('Extract Response from BrightData Scraper').item.json.data }}",
"type": "array"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-3440,
-2000
],
"id": "64562045-f138-4073-b829-c56d469cd2fe",
"name": "Document URL List"
},
{
"parameters": {
"method": "POST",
"url": "http://nginx-alb-1863158392.us-east-1.elb.amazonaws.com:5001/ui/gradio_api/call/process_url",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"data\": [\n \"null\",\n \"{{ $json.url }}\",\n [\n \"md\"\n ],\n \"placeholder\",\n \"standard\",\n true,\n false,\n \"easyocr\",\n \"en,fr,de,es\",\n \"dlparse_v4\",\n \"fast\",\n true,\n false,\n false,\n false,\n false,\n false\n ]\n} ",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-3024,
-2000
],
"id": "fe5b4dd4-48d1-4444-8303-091b653173f2",
"name": "HTTP Request",
"executeOnce": true
},
{
"parameters": {
"url": "=http://nginx-alb-1863158392.us-east-1.elb.amazonaws.com:5001/ui/gradio_api/call/process_url/{{ $json.event_id }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-2848,
-2000
],
"id": "2a523be9-0f66-49cf-b4de-8e493a7c6e02",
"name": "HTTP Request1"
},
{
"parameters": {
"method": "POST",
"url": "http://nginx-alb-1863158392.us-east-1.elb.amazonaws.com:5001/ui/gradio_api/call/wait_task_finish",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"data\": [\n \"null\",\n\"{{ $json.guid }}\",\n false\n ]\n} ",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-2496,
-2000
],
"id": "682a5be9-9cd4-45b4-8d17-53a28c41a8a0",
"name": "HTTP Request2"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "4dfe806d-03d4-4b6d-a54f-f72d809e295b",
"name": "guid",
"value": "={{ JSON.parse($json.data.split(\"\\n\")[1].replace('data: ', ''))[0] }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-2672,
-2000
],
"id": "a0cfe5ee-820e-4c0d-a8d6-8511f7565d91",
"name": "Edit Fields"
},
{
"parameters": {
"url": "=http://nginx-alb-1863158392.us-east-1.elb.amazonaws.com:5001/ui/gradio_api/call/wait_task_finish/{{ $json.event_id }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-2320,
-2000
],
"id": "81c152a5-ad5d-4480-ad0c-8621f4cc5096",
"name": "HTTP Request3"
},
{
"parameters": {
"mode": "insert",
"pineconeIndex": {
"__rl": true,
"value": "screener",
"mode": "list",
"cachedResultName": "screener"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.3,
"position": [
-2112,
-2000
],
"id": "d33f76f4-23ed-4301-9494-9f3bf04a9757",
"name": "Pinecone Vector Store",
"credentials": {
"pineconeApi": {
"id": "BQoCJXKDUmXythNy",
"name": "PineconeApi account"
}
}
},
{
"parameters": {
"options": {
"dimensions": 1536
}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
-2176,
-1776
],
"id": "5548b75c-9bc3-4fbd-9255-f4b784d6f44a",
"name": "Embeddings OpenAI",
"credentials": {
"openAiApi": {
"id": "lqRwJeoe0PmNVFve",
"name": "n8n free OpenAI API credits"
}
}
},
{
"parameters": {
"jsonMode": "expressionData",
"jsonData": "={{ JSON.parse($json.data.split(\"\\n\")[1].replace('data: ', ''))[0] }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1.1,
"position": [
-1968,
-1776
],
"id": "d85d0b6e-1d5d-4dc1-bdad-0e2fcd4032e3",
"name": "Default Data Loader"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
-4304,
-1520
],
"id": "b39b001a-39ce-477f-9a2b-c49388353e89",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-sonnet-4-20250514",
"cachedResultName": "Claude 4 Sonnet"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
-4352,
-1232
],
"id": "cd3b68c0-f11f-4e1b-a528-245240369c62",
"name": "Anthropic Chat Model",
"credentials": {
"anthropicApi": {
"id": "wjtHQwsol1gwm1Qm",
"name": "Anthropic account"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
-4512,
-1520
],
"id": "63b5429c-2b44-4cbc-8763-7688a99c0b97",
"name": "When chat message received",
"webhookId": "d09e7070-bf2e-474c-ab22-9e34a38d6761"
},
{
"parameters": {
"mode": "retrieve-as-tool",
"toolDescription": "Learn vector storage",
"pineconeIndex": {
"__rl": true,
"value": "screener",
"mode": "list",
"cachedResultName": "screener"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"typeVersion": 1.3,
"position": [
-4112,
-1328
],
"id": "275b361f-7024-4c0c-850b-f5c9587966e9",
"name": "Pinecone Vector Store1",
"credentials": {
"pineconeApi": {
"id": "BQoCJXKDUmXythNy",
"name": "PineconeApi account"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1.2,
"position": [
-4096,
-1152
],
"id": "4126c5c0-69c4-484c-8ac3-be25003e9a09",
"name": "Embeddings OpenAI2",
"credentials": {
"openAiApi": {
"id": "lqRwJeoe0PmNVFve",
"name": "n8n free OpenAI API credits"
}
}
},
{
"parameters": {
"jsCode": "const urls = $input.first().json.data\nreturn urls.map(obj => obj)"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-3216,
-2000
],
"id": "5369cd7a-96a1-4d4e-ab17-49268294416c",
"name": "Extract Urls"
}
],
"pinData": {},
"connections": {
"Initiate Brightdata scraper": {
"main": [
[
{
"node": "Extract Response from BrightData Scraper",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Initiate Brightdata scraper",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Extract Response from BrightData Scraper": {
"main": [
[
{
"node": "intermediate storage",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Document URL List",
"type": "main",
"index": 0
}
],
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Extract Response from BrightData Scraper",
"type": "main",
"index": 0
}
]
]
},
"intermediate storage": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "HTTP Request3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "Pinecone Vector Store",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_document",
"index": 0
}
]
]
},
"Anthropic Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store1": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Embeddings OpenAI2": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Document URL List": {
"main": [
[
{
"node": "Extract Urls",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store": {
"main": [
[]
]
},
"Extract Urls": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "6f9e2809-6fd4-48a0-ad4a-2b99d00dd2aa",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "1536897660af58950b1b4685cc6544db09f619e7a87306237f475ad797faf437"
},
"id": "YOIc3SQpqwI1HS9t",
"tags": [
{
"createdAt": "2025-08-28T15:15:16.000Z",
"updatedAt": "2025-08-28T15:15:16.000Z",
"id": "vCtYj0TjBt6UQwB8",
"name": "DevTo"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment