Spaces:
Runtime error
Runtime error
Commit ·
bad1b41
1
Parent(s): b06514c
Connecting Database : Migration from sqlite3 to Postgree
Browse filesFiles changed (6)
- .gitignore+2-1
- backup/configAdded+3
- docker-compose.yml+13-3
- dump.sqlAdded
- sample.jsonAdded+130
- worflows.jsonAdded+474
1234n8n_volume/*.sqlite*.sqlite-wal*.db12345n8n_volume/*.sqlite*.sqlite-wal*.db.env
123{ "encryptionKey": "lfgRSIr7pCVbJNlhuzXUxxdFrEn/wPUv"}5 unmodified lines6789101112131415161718194 unmodified lines242526275 unmodified linescontainer_name: n8nrestart: alwaysports:- "5678:5678"environment:- N8N_HOST=localhost- N8N_PORT=5678- N8N_PROTOCOL=http- NODE_ENV=production- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true- NODE_FUNCTION_ALLOW_EXTERNAL=pythonvolumes:- "E:/cours ifri/Programmation et BD/Docker/n8n-automatisation/n8n_volume:/home/node/.n8n"4 unmodified lines- "8000:8000"volumes:n8n_volume:5 unmodified lines678910111213141516171819202122232425262728294 unmodified lines343536375 unmodified linescontainer_name: n8nrestart: alwaysports:- "7860:5678"environment:- N8N_HOST=0.0.0.0- N8N_PORT=5678- N8N_PROTOCOL=http- NODE_ENV=production- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true- NODE_FUNCTION_ALLOW_EXTERNAL=python- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}- DB_TYPE=postgresdb- DB_POSTGRESDB_HOST=${PGHOST}- DB_POSTGRESDB_PORT=${PGPORT}- DB_POSTGRESDB_DATABASE=${PGDATABASE}- DB_POSTGRESDB_USER=${PGUSER}- DB_POSTGRESDB_PASSWORD=${PGPASSWORD}- DB_POSTGRESDB_SSL_ENABLED=true- DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=falsevolumes:- "E:/cours ifri/Programmation et BD/Docker/n8n-automatisation/n8n_volume:/home/node/.n8n"4 unmodified lines- "8000:8000"volumes:n8n_volume:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130{ "nodes": [ { "parameters": { "chatId": "6082428873", "text": "=_hello_\nWhat's happens today\n{{ $json.explanation }}\n\n", "additionalFields": { "appendAttribution": false, "parse_mode": "HTML" } }, "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ 304, -16 ], "id": "5e060d6a-6430-49c8-ba7e-1c988192c2de", "name": "Send a text message", "webhookId": "0c1cefb9-feb2-40f1-8d56-fd3efdfd7251", "credentials": { "telegramApi": { "id": "xtyS4FnQD7jP4b6g", "name": "Telegram account" } } }, { "parameters": { "rule": { "interval": [ { "field": "seconds" } ] } }, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [ -176, -16 ], "id": "b79d01c3-9f5a-4c72-ac2d-2e96df4b031d", "name": "Schedule Trigger" }, { "parameters": { "operation": "sendPhoto", "chatId": "6082428873", "file": "={{ $('Get the astronomy picture of the day').item.json.url }}", "additionalFields": {} }, "type": "n8n-nodes-base.telegram", "typeVersion": 1.2, "position": [ 512, -16 ], "id": "1ef30f8b-1d20-4414-b1cc-dd57e62c63ba", "name": "Send a photo message", "webhookId": "c8d34612-6add-4096-bc20-a55d90625c9a", "credentials": { "telegramApi": { "id": "xtyS4FnQD7jP4b6g", "name": "Telegram account" } } }, { "parameters": { "additionalFields": {} }, "type": "n8n-nodes-base.nasa", "typeVersion": 1, "position": [ 112, -16 ], "id": "c9cc9387-ce74-4aab-a3d7-fbc2d505f448", "name": "Get the astronomy picture of the day", "credentials": { "nasaApi": { "id": "FnPqtSq3RyHqM6Ay", "name": "NASA account" } } } ], "connections": { "Send a text message": { "main": [ [ { "node": "Send a photo message", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "Get the astronomy picture of the day", "type": "main", "index": 0 } ] ] }, "Get the astronomy picture of the day": { "main": [ [ { "node": "Send a text message", "type": "main", "index": 0 } ] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": true, "instanceId": "48f9007a4d0e1a91936b441574a682e3216460c6ca816348665f2c35d7390c3f" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474{ "nodes": [ { "parameters": { "updates": [ "message" ], "additionalFields": {} }, "id": "f9970906-4d66-4985-a8fb-46a83253031e", "name": "Listen for incoming events", "type": "n8n-nodes-base.telegramTrigger", "position": [ -1120, 80 ], "webhookId": "0474fc6c-1a7d-4a9d-bc34-54b3257ad414", "typeVersion": 1, "credentials": { "telegramApi": { "id": "xtyS4FnQD7jP4b6g", "name": "Telegram account" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "allow_1", "name": "allow", "type": "string", "value": "<chat id>" } ] }, "options": {} }, "id": "911b7e65-1f7c-4681-865b-40a8cc8c4170", "name": "AllowList", "type": "n8n-nodes-base.set", "position": [ -896, 80 ], "typeVersion": 3.4 }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "loose", "version": 3 }, "combinator": "and", "conditions": [ { "id": "auth_check", "operator": { "type": "number", "operation": "equals" }, "leftValue": "={{ $('Listen for incoming events').first().json.message.from.id }}", "rightValue": "={{ $json.allow }}" } ] }, "looseTypeValidation": true, "options": {} }, "id": "342754af-d745-4d8f-aab0-d4f81bc1743c", "name": "If1", "type": "n8n-nodes-base.if", "position": [ -672, 80 ], "typeVersion": 2.3 }, { "parameters": { "fields": { "values": [ { "name": "text", "stringValue": "={{ $('Listen for incoming events').item.json.message.text || '' }}" }, { "name": "sessionId", "stringValue": "={{ $('Listen for incoming events').item.json.message.from.id }}" } ] }, "options": {} }, "id": "46702015-eacb-45a0-8a82-1baa5cc13bc4", "name": "Voice or Text", "type": "n8n-nodes-base.set", "position": [ -448, 80 ], "typeVersion": 3.2 }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "combinator": "and", "conditions": [ { "id": "voice_check", "operator": { "type": "string", "operation": "empty", "singleValue": true }, "leftValue": "={{ $('Listen for incoming events').item.json.message.text }}", "rightValue": "" } ] }, "options": {} }, "id": "8884e905-9c26-47c6-b1c9-1b4ed640896b", "name": "If", "type": "n8n-nodes-base.if", "position": [ -224, 80 ], "typeVersion": 2.2 }, { "parameters": { "resource": "file", "fileId": "={{ $('Listen for incoming events').item.json.message.voice.file_id }}", "additionalFields": {} }, "id": "1603f070-eac2-40f6-9997-cc19b448ada1", "name": "Get Voice File", "type": "n8n-nodes-base.telegram", "position": [ 0, 0 ], "webhookId": "7731f83c-2346-4983-8916-c1360836de7d", "typeVersion": 1.1 }, { "parameters": { "resource": "audio", "operation": "transcribe", "options": {} }, "id": "616213f1-01ae-4e07-a85d-da85a75df75f", "name": "Speech to Text", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [ 224, 0 ], "typeVersion": 1.3 }, { "parameters": { "promptType": "define", "text": "={{ $json.text }}", "options": { "systemMessage": "You are a helpful assistant.\n\nToday's date is {{ $now }}.\n\nGuidelines:\n- When fetching emails, filter out any promotional emails.\n- When summarizing emails, include Sender, Message date, subject, and brief summary of email.\n- if the user did not specify a date in the request assume they are asking for today\n- Use baserow tool to answer questions about tasks\n- When answering questions about calendar events, filter out events that don't apply to the question. For example, the question is about events for today, only reply with events for today. Don't mention future events if it's more than 1 week away" } }, "id": "f4aad433-122b-4247-b159-6d2a40549938", "name": "Angie, AI Assistant", "type": "@n8n/n8n-nodes-langchain.agent", "position": [ 704, 80 ], "typeVersion": 3.1 }, { "parameters": { "options": {} }, "id": "03a33ec8-b4f0-4e98-9fe6-616bda6b5a41", "name": "OpenAI Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 448, 304 ], "typeVersion": 1 }, { "parameters": { "sessionIdType": "customKey", "sessionKey": "angie_session_default", "contextWindowLength": 10 }, "id": "9b74e818-3241-4e65-beec-063ce2be804d", "name": "Simple Memory", "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", "position": [ 576, 304 ], "typeVersion": 1.3 }, { "parameters": { "databaseId": 146496, "tableId": 372174, "additionalOptions": {} }, "id": "6e15db3c-0e61-4b44-b002-351dd739398b", "name": "Tasks", "type": "n8n-nodes-base.baserowTool", "position": [ 704, 304 ], "typeVersion": 1 }, { "parameters": { "descriptionType": "manual", "toolDescription": "Useful for getting contact information. For example emails or phone numbers.", "databaseId": 146496, "tableId": 372177, "additionalOptions": {} }, "id": "5566f43b-eb18-4bc8-9ba9-f3fc466253e8", "name": "Contacts", "type": "n8n-nodes-base.baserowTool", "position": [ 832, 304 ], "typeVersion": 1 }, { "parameters": { "operation": "getAll", "calendar": { "__rl": true, "mode": "list", "value": "user@example.com" }, "options": { "timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('date', 'the date after which to fetch the messages in format YYYY-MM-DDTHH:MM:SS') }}", "fields": "=items(summary, start(dateTime))" } }, "id": "bf450ea8-0144-4cf6-bb99-3d479b37063b", "name": "Google Calendar", "type": "n8n-nodes-base.googleCalendarTool", "position": [ 960, 304 ], "typeVersion": 1.1 }, { "parameters": { "chatId": "={{ $('Listen for incoming events').first().json.message.from.id }}", "text": "={{ $json.output }}", "additionalFields": { "appendAttribution": false, "parse_mode": "Markdown" } }, "id": "e9cf83cb-b0f3-4309-96a9-e081d9c329e6", "name": "Telegram", "type": "n8n-nodes-base.telegram", "position": [ 1296, 80 ], "webhookId": "40027a52-0dce-4542-a6ec-496040e9d094", "typeVersion": 1.1 }, { "parameters": { "operation": "getAll", "filters": {} }, "id": "7b64557f-b030-4e62-ab52-f39abeb2794e", "name": "Get many messages in Gmail", "type": "n8n-nodes-base.gmailTool", "position": [ 1088, 304 ], "webhookId": "48dd8198-8fd5-4cfc-897c-72cbc15d319f", "typeVersion": 2.2 } ], "connections": { "Listen for incoming events": { "main": [ [ { "node": "AllowList", "type": "main", "index": 0 } ] ] }, "AllowList": { "main": [ [ { "node": "If1", "type": "main", "index": 0 } ] ] }, "If1": { "main": [ [ { "node": "Voice or Text", "type": "main", "index": 0 } ] ] }, "Voice or Text": { "main": [ [ { "node": "If", "type": "main", "index": 0 } ] ] }, "If": { "main": [ [ { "node": "Get Voice File", "type": "main", "index": 0 } ], [ { "node": "Angie, AI Assistant", "type": "main", "index": 0 } ] ] }, "Get Voice File": { "main": [ [ { "node": "Speech to Text", "type": "main", "index": 0 } ] ] }, "Speech to Text": { "main": [ [ { "node": "Angie, AI Assistant", "type": "main", "index": 0 } ] ] }, "Angie, AI Assistant": { "main": [ [ { "node": "Telegram", "type": "main", "index": 0 } ] ] }, "OpenAI Chat Model": { "ai_languageModel": [ [ { "node": "Angie, AI Assistant", "type": "ai_languageModel", "index": 0 } ] ] }, "Simple Memory": { "ai_memory": [ [ { "node": "Angie, AI Assistant", "type": "ai_memory", "index": 0 } ] ] }, "Tasks": { "ai_tool": [ [ { "node": "Angie, AI Assistant", "type": "ai_tool", "index": 0 } ] ] }, "Contacts": { "ai_tool": [ [ { "node": "Angie, AI Assistant", "type": "ai_tool", "index": 0 } ] ] }, "Google Calendar": { "ai_tool": [ [ { "node": "Angie, AI Assistant", "type": "ai_tool", "index": 0 } ] ] }, "Get many messages in Gmail": { "ai_tool": [ [ { "node": "Angie, AI Assistant", "type": "ai_tool", "index": 0 } ] ] } }, "pinData": {}, "meta": { "instanceId": "48f9007a4d0e1a91936b441574a682e3216460c6ca816348665f2c35d7390c3f" }}.gitignore+2-1
backup/configAdded+3
docker-compose.yml+13-3
dump.sqlAdded
sample.jsonAdded+130
worflows.jsonAdded+474