Osama Alzain-AI Agent
Shared 8/16/2025
147 views
Visual Workflow
JSON Code
{
"id": "3zSGfDNXQnxEJs36",
"meta": {
"instanceId": "aafd4b92e4f5e937c7c3003ccab9cfe201a0eb557a51d1bad938d976eec1f1d6",
"templateCredsSetupCompleted": true
},
"name": "Osama Alzain-workflow",
"tags": [],
"nodes": [
{
"id": "d64868b2-b6c7-439b-908b-a7be9e9e0387",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
208,
0
],
"parameters": {
"text": "=Give me the the new projects in saudi\nToday's Date{{ $json.timestamp }}",
"options": {},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "ff7adf85-0d38-46bd-becb-45f22f015272",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
80,
192
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "Oq7s0Tcscmoun9ot",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "3be28ce8-bb91-4ea4-80ac-d8bb8a01f04b",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
224,
208
],
"parameters": {
"sessionKey": "my_test_ID",
"sessionIdType": "customKey"
},
"typeVersion": 1.3
},
{
"id": "96b4bd0c-ca00-4784-a8b9-cefb4f40ecb5",
"name": "Wikipedia",
"type": "@n8n/n8n-nodes-langchain.toolWikipedia",
"position": [
688,
208
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8f8fe570-ae6c-4bf9-8736-9532f79ecc7b",
"name": "SerpAPI",
"type": "@n8n/n8n-nodes-langchain.toolSerpApi",
"position": [
544,
224
],
"parameters": {
"options": {}
},
"credentials": {
"serpApi": {
"id": "mW5SHBVJIMPCWsXG",
"name": "SerpAPI account"
}
},
"typeVersion": 1
},
{
"id": "f65304f5-c897-48c0-9c9c-0d97a23817e8",
"name": "OpenWeatherMap",
"type": "n8n-nodes-base.openWeatherMapTool",
"position": [
368,
208
],
"parameters": {
"cityName": "Riyadh, SA"
},
"credentials": {
"openWeatherMapApi": {
"id": "KL3W3w7Y162jrgK9",
"name": "OpenWeatherMap account"
}
},
"typeVersion": 1
},
{
"id": "f3d10904-3b45-4021-9874-6163ffc201ca",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
0
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 8
}
]
}
},
"typeVersion": 1.2
},
{
"id": "daaad4f6-6e5e-46f1-8aed-8b16836ee121",
"name": "Send a message",
"type": "n8n-nodes-base.gmail",
"position": [
592,
0
],
"webhookId": "fff486b8-1377-4f9a-8e1d-fe949a82decc",
"parameters": {
"sendTo": "f7510913@gmail.com",
"message": "={{ $json.output }}",
"options": {},
"subject": "=Daily Briefing {{ $('Schedule Trigger').item.json['Readable date'] }}"
},
"credentials": {
"gmailOAuth2": {
"id": "kbQqZorQAUfoN51V",
"name": "Gmail account"
}
},
"typeVersion": 2.1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "f5090161-5ced-4cc5-9619-44e1545c6d8b",
"connections": {
"SerpAPI": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"Wikipedia": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"OpenWeatherMap": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send a message": {
"main": [
[]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}