mirror of
https://github.com/wassupjay/n8n-free-templates.git
synced 2025-12-29 16:14:46 +00:00
main_commit
This commit is contained in:
355
Misc/disaster_api_sms.json
Normal file
355
Misc/disaster_api_sms.json
Normal file
@@ -0,0 +1,355 @@
|
||||
{
|
||||
"name": "Disaster API SMS",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"content": "Automated workflow: Disaster API SMS",
|
||||
"height": 530,
|
||||
"width": 1100,
|
||||
"color": 5
|
||||
},
|
||||
"id": "69257a08-9220-4154-99e2-37bb863ffbf1",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-480,
|
||||
-240
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"httpMethod": "POST",
|
||||
"path": "disaster-api-sms"
|
||||
},
|
||||
"id": "2d2f47ff-0270-49e9-8eae-b2953001fea5",
|
||||
"name": "Webhook Trigger",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-300,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"chunkSize": 400,
|
||||
"chunkOverlap": 40
|
||||
},
|
||||
"id": "d9372145-e221-48ad-8307-074fb66158c9",
|
||||
"name": "Text Splitter",
|
||||
"type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
-130,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"model": "embed-english-v3.0",
|
||||
"options": {}
|
||||
},
|
||||
"id": "8af454d1-43d4-4d9b-87b6-8b27ae50fbbe",
|
||||
"name": "Embeddings",
|
||||
"type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
70,
|
||||
0
|
||||
],
|
||||
"credentials": {
|
||||
"cohereApi": {
|
||||
"id": "COHERE_API",
|
||||
"name": "Cohere"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "insert",
|
||||
"options": {},
|
||||
"indexName": "disaster_api_sms"
|
||||
},
|
||||
"id": "e6468b01-b39b-415b-af3c-739622e715c8",
|
||||
"name": "Supabase Insert",
|
||||
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
270,
|
||||
0
|
||||
],
|
||||
"credentials": {
|
||||
"supabaseApi": {
|
||||
"id": "SUPABASE_API",
|
||||
"name": "Supabase account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"indexName": "disaster_api_sms"
|
||||
},
|
||||
"id": "d25b5499-42aa-4b97-9051-e11762523d98",
|
||||
"name": "Supabase Query",
|
||||
"type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
270,
|
||||
-180
|
||||
],
|
||||
"credentials": {
|
||||
"supabaseApi": {
|
||||
"id": "SUPABASE_API",
|
||||
"name": "Supabase account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"name": "Supabase",
|
||||
"description": "Vector context"
|
||||
},
|
||||
"id": "8c4ffec5-8b34-4d3d-a598-9244e3ef5aaf",
|
||||
"name": "Vector Tool",
|
||||
"type": "@n8n/n8n-nodes-langchain.toolVectorStore",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
450,
|
||||
-180
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e0077d9b-ebae-4102-b038-beadcdf71f0b",
|
||||
"name": "Window Memory",
|
||||
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
||||
"typeVersion": 1.3,
|
||||
"position": [
|
||||
450,
|
||||
-40
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"id": "1cde59f5-0cfe-40d6-8652-360c1e2606ca",
|
||||
"name": "Chat Model",
|
||||
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
450,
|
||||
-340
|
||||
],
|
||||
"credentials": {
|
||||
"anthropicApi": {
|
||||
"id": "ANTHROPIC_API",
|
||||
"name": "Anthropic"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"promptType": "define",
|
||||
"text": "Process the following data for task 'Disaster API SMS':\n\n{{ $json }}",
|
||||
"options": {
|
||||
"systemMessage": "You are an assistant for Disaster API SMS"
|
||||
}
|
||||
},
|
||||
"id": "de908410-ed39-485d-b33b-c98ebc6edbd6",
|
||||
"name": "RAG Agent",
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
-40
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "append",
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"value": "SHEET_ID",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Disaster API SMS"
|
||||
},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"value": "Log",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Log"
|
||||
},
|
||||
"columns": {
|
||||
"mappingMode": "defineBelow",
|
||||
"value": {
|
||||
"Status": "={{$json[\"RAG Agent\"].text}}"
|
||||
},
|
||||
"schema": []
|
||||
}
|
||||
},
|
||||
"id": "01254f9e-0418-488f-ae6c-8d159c76f4f9",
|
||||
"name": "Append Sheet",
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"typeVersion": 4,
|
||||
"position": [
|
||||
930,
|
||||
-40
|
||||
],
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "SHEETS_API",
|
||||
"name": "Google Sheets account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"channel": "#alerts",
|
||||
"text": "Disaster API SMS error: {$json.error.message}"
|
||||
},
|
||||
"id": "d2328665-5b92-4bfd-b840-7bddb01c99f3",
|
||||
"name": "Slack Alert",
|
||||
"type": "n8n-nodes-base.slack",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
930,
|
||||
120
|
||||
],
|
||||
"credentials": {
|
||||
"slackApi": {
|
||||
"id": "SLACK_API",
|
||||
"name": "Slack"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Webhook Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Text Splitter",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Window Memory",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Text Splitter": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Embeddings",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
],
|
||||
"ai_textSplitter": [
|
||||
[
|
||||
{
|
||||
"node": "Supabase Insert",
|
||||
"type": "ai_textSplitter",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Embeddings": {
|
||||
"ai_embedding": [
|
||||
[
|
||||
{
|
||||
"node": "Supabase Insert",
|
||||
"type": "ai_embedding",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Supabase Query",
|
||||
"type": "ai_embedding",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Supabase Insert": {
|
||||
"ai_document": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
"Supabase Query": {
|
||||
"ai_vectorStore": [
|
||||
[
|
||||
{
|
||||
"node": "Vector Tool",
|
||||
"type": "ai_vectorStore",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Vector Tool": {
|
||||
"ai_tool": [
|
||||
[
|
||||
{
|
||||
"node": "RAG Agent",
|
||||
"type": "ai_tool",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Window Memory": {
|
||||
"ai_memory": [
|
||||
[
|
||||
{
|
||||
"node": "RAG Agent",
|
||||
"type": "ai_memory",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Chat Model": {
|
||||
"ai_languageModel": [
|
||||
[
|
||||
{
|
||||
"node": "RAG Agent",
|
||||
"type": "ai_languageModel",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"RAG Agent": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Append Sheet",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
],
|
||||
"onError": [
|
||||
[
|
||||
{
|
||||
"node": "Slack Alert",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"triggerCount": 1
|
||||
}
|
||||
Reference in New Issue
Block a user