name stringlengths 2 299 | nodes stringlengths 2 426k | connections stringlengths 2 8.15k |
|---|---|---|
Qualify replies from Pipedrive persons with AI | [{"id": "97b36168-7fa8-4a97-a6cc-c42496918c4c", "name": "Search Person in CRM", "type": "n8n-nodes-base.pipedrive", "position": [-880, 400], "parameters": {"term": "={{ $json.from.value[0].address }}", "limit": 1, "resource": "person", "operation": "search", "additionalFields": {"includeFields": ""}}, "credentials": {"pipedriveApi": {"id": "MdJQDtRDHnpwuVYP", "name": "Pipedrive LinkedUp"}}, "typeVersion": 1}, {"id": "2a17582b-9375-4a01-87d9-a50f573b83db", "name": "In campaign?", "type": "n8n-nodes-base.if", "position": [-420, 400], "parameters": {"conditions": {"string": [{"value1": "={{ $json.in_campaign }}", "value2": "True"}]}}, "typeVersion": 1}, {"id": "2a8d509f-8ac2-4f45-a905-f34552833381", "name": "Get person from CRM", "type": "n8n-nodes-base.pipedrive", "position": [-640, 400], "parameters": {"personId": "={{ $json.id }}", "resource": "person", "operation": "get", "resolveProperties": true}, "credentials": {"pipedriveApi": {"id": "MdJQDtRDHnpwuVYP", "name": "Pipedrive LinkedUp"}}, "typeVersion": 1}, {"id": "b9c6f3d3-1a6d-4144-8e77-3a3c6e5282d8", "name": "Is interested?", "type": "n8n-nodes-base.openAi", "position": [-180, 380], "parameters": {"model": "gpt-4", "prompt": {"messages": [{"content": "=You are the best sales development representative in the world. You send cold email messages daily to CEOs and founders of companies. You do this to persuade them to make contact. This could be a phone call or a video meeting. \n\nYour task is to assess whether someone is interested in meeting up or calling sometime. You do this by attentively evaluating their response.\n\nThis is the email:\n{{ $('Get email').item.json.text }}\n\nThe response format should be:\n{\"interested\": [yes/no],\n\"reason\": reason\n}\n\nJSON:"}]}, "options": {}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "qPBzqgpCRxncJ90K", "name": "OpenAi account 2"}}, "typeVersion": 1}, {"id": "f1eb438d-f002-4082-8481-51565df13f5c", "name": "Get email", "type": "n8n-nodes-base.set", "position": [-1100, 400], "parameters": {"fields": {"values": [{"name": "email", "stringValue": "={{ $json.text }}"}]}, "options": {}}, "typeVersion": 3.2}, {"id": "78461c36-ba54-4f0f-a38e-183bfafa576c", "name": "Create deal in CRM", "type": "n8n-nodes-base.pipedrive", "position": [460, 360], "parameters": {"title": "={{ $('Get person from CRM').item.json.Name }} Deal", "additionalFields": {}}, "credentials": {"pipedriveApi": {"id": "MdJQDtRDHnpwuVYP", "name": "Pipedrive LinkedUp"}}, "typeVersion": 1}, {"id": "efe07661-9afc-4184-b558-e1f547b6721f", "name": "IF interested", "type": "n8n-nodes-base.if", "position": [240, 380], "parameters": {"conditions": {"string": [{"value1": "={{ $json.interested }}", "value2": "yes"}]}}, "typeVersion": 1}, {"id": "7c2b7b59-9d68-4d8c-9b9f-a36ea47526c9", "name": "Get response", "type": "n8n-nodes-base.code", "position": [20, 380], "parameters": {"mode": "runOnceForEachItem", "jsCode": "let interested = JSON.parse($json[\"message\"][\"content\"]).interested\nlet reason = JSON.parse($json[\"message\"][\"content\"]).reason\n\nreturn {json:{\n interested: interested,\n reason: reason\n}}"}, "typeVersion": 1}, {"id": "53f51f8c-5995-4bcd-a038-3018834942e6", "name": "Email box 1", "type": "n8n-nodes-base.gmailTrigger", "position": [-1300, 400], "parameters": {"simple": false, "filters": {"labelIds": []}, "options": {}, "pollTimes": {"item": [{"mode": "everyMinute"}]}}, "typeVersion": 1}, {"id": "bb1254ec-676a-4edc-bf4a-a1c66bac78bb", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-1880, 360], "parameters": {"width": 452.37174177689576, "height": 462.1804790107177, "content": "## About the workflow\nThe workflow reads every reply that is received from a cold email campaign and qualifies if the lead is interested in a meeting. If the lead is interested, a deal is made in pipedrive. You can add as many email inboxes as you need!\n\n## Setup:\n- Add credentials to the Gmail, OpenAI and Pipedrive Nodes.\n- Add a in_campaign field in Pipedrive for persons. In Pipedrive click on your credentials at the top right, go to company settings > Data fields > Person and click on add custom field. Single option [TRUE/FALSE].\n- If you have only one email inbox, you can delete one of the Gmail nodes.\n- If you have more than two email inboxes, you can duplicate a Gmail node as many times as you like. Just connect it to the Get email node, and you are good to go!\n- In the Gmail inbox nodes, select Inbox under label names and uncheck Simplify."}, "typeVersion": 1}, {"id": "c1aaee97-11f4-4e9d-9a71-90ca3f5773a9", "name": "Email box 2", "type": "n8n-nodes-base.gmailTrigger", "position": [-1300, 600], "parameters": {"simple": false, "filters": {"labelIds": []}, "options": {}, "pollTimes": {"item": [{"mode": "everyMinute"}]}}, "typeVersion": 1}] | {"Get email": {"main": [[{"node": "Search Person in CRM", "type": "main", "index": 0}]]}, "Email box 1": {"main": [[{"node": "Get email", "type": "main", "index": 0}]]}, "Email box 2": {"main": [[{"node": "Get email", "type": "main", "index": 0}]]}, "Get response": {"main": [[{"node": "IF interested", "type": "main", "index": 0}]]}, "In campaign?": {"main": [[{"node": "Is interested?", "type": "main", "index": 0}]]}, "IF interested": {"main": [[{"node": "Create deal in CRM", "type": "main", "index": 0}]]}, "Is interested?": {"main": [[{"node": "Get response", "type": "main", "index": 0}]]}, "Get person from CRM": {"main": [[{"node": "In campaign?", "type": "main", "index": 0}]]}, "Search Person in CRM": {"main": [[{"node": "Get person from CRM", "type": "main", "index": 0}]]}} |
Cockpit:Collection:createEntry updateEntry getAllEntries:Singleton:get:Form:submit | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "768b2ddf-9888-4361-8f1e-3a4dff195e6b"}, {"parameters": {"operation": "create", "collection": "FixedCollection", "dataFieldsUi": {"field": [{"name": "Name", "value": "=entry{{Date.now()}}"}]}}, "name": "Cockpit", "type": "n8n-nodes-base.cockpit", "typeVersion": 1, "position": [550, 180], "credentials": {"cockpitApi": {"id": "81", "name": "Cockpit API creds"}}, "id": "a731c3d7-ffb7-493e-a3ac-9fdef8776801"}, {"parameters": {"operation": "update", "collection": "FixedCollection", "id": "={{$node[\"Cockpit\"].json[\"_id\"]}}", "dataFieldsUi": {"field": [{"name": "Name", "value": "=UpdatedEntry{{Date.now()}}"}]}}, "name": "Cockpit1", "type": "n8n-nodes-base.cockpit", "typeVersion": 1, "position": [700, 180], "credentials": {"cockpitApi": {"id": "81", "name": "Cockpit API creds"}}, "id": "be0de116-a348-436c-8903-a78f2d9978f3"}, {"parameters": {"collection": "FixedCollection", "limit": 1, "options": {}}, "name": "Cockpit2", "type": "n8n-nodes-base.cockpit", "typeVersion": 1, "position": [850, 180], "credentials": {"cockpitApi": {"id": "81", "name": "Cockpit API creds"}}, "id": "e151e242-d0a9-43d9-8003-632b4f8569ad"}, {"parameters": {"resource": "singleton", "singleton": "FixedSingleton"}, "name": "Cockpit3", "type": "n8n-nodes-base.cockpit", "typeVersion": 1, "position": [550, 350], "credentials": {"cockpitApi": {"id": "81", "name": "Cockpit API creds"}}, "id": "b1f38f40-c544-496f-bcb9-3957a755a497"}, {"parameters": {"resource": "form", "form": "FixedForm", "dataFieldsUi": {"field": [{"name": "name", "value": "=name{{Date.now()}}"}, {"name": "tag", "value": "=tag{{Date.now()}}"}]}}, "name": "Cockpit4", "type": "n8n-nodes-base.cockpit", "typeVersion": 1, "position": [550, 500], "credentials": {"cockpitApi": {"id": "81", "name": "Cockpit API creds"}}, "id": "9567077a-58f2-453e-8d36-35d4c68e9510"}] | {"Cockpit": {"main": [[{"node": "Cockpit1", "type": "main", "index": 0}]]}, "Cockpit1": {"main": [[{"node": "Cockpit2", "type": "main", "index": 0}]]}, "Start": {"main": [[{"node": "Cockpit", "type": "main", "index": 0}, {"node": "Cockpit3", "type": "main", "index": 0}, {"node": "Cockpit4", "type": "main", "index": 0}]]}} |
Autonomous AI crawler | [{"id": "6cdc45e5-1fa4-47fe-b80a-0e1560996936", "name": "Text", "type": "@n8n/n8n-nodes-langchain.toolWorkflow", "position": [1460, 980], "parameters": {"name": "text_retrieval_tool", "source": "parameter", "description": "Call this tool to return all text from the given website. Query should be full website URL.", "workflowJson": "{\n \"nodes\": [\n {\n \"parameters\": {},\n \"id\": \"05107436-c9cb-419b-ae8a-b74d309a130d\",\n \"name\": \"Execute workflow\",\n \"type\": \"n8n-nodes-base.manualTrigger\",\n \"typeVersion\": 1,\n \"position\": [\n 2220,\n 620\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"253c2b17-c749-4f0a-93e8-5ff74f1ce49b\",\n \"name\": \"domain\",\n \"value\": \"={{ $json.query }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"bb8be616-3227-4705-8520-1827069faacd\",\n \"name\": \"Set domain\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 2440,\n 620\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"ed0f1505-82b6-4393-a0d8-088055137ec9\",\n \"name\": \"domain\",\n \"value\": \"={{ $json.domain.startsWith(\\\"http\\\") ? $json.domain : \\\"http://\\\" + $json.domain }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"bdf29340-f135-489f-848e-1c7fa43a01df\",\n \"name\": \"Add protocool to domain\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 2640,\n 620\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"2b1c7ff8-06a7-448b-99b7-5ede4b2e0bf0\",\n \"name\": \"response\",\n \"value\": \"={{ $json.data }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"9f0aa264-08c1-459a-bb99-e28599fe8f76\",\n \"name\": \"Set response\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 3300,\n 620\n ]\n },\n {\n \"parameters\": {\n \"url\": \"={{ $json.domain }}\",\n \"options\": {}\n },\n \"id\": \"cec7c8e8-bf5e-43d5-aa41-876293dbec78\",\n \"name\": \"Get website\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [\n 2860,\n 620\n ]\n },\n {\n \"parameters\": {\n \"html\": \"={{ $json.data }}\",\n \"options\": {\n \"ignore\": \"a,img\"\n }\n },\n \"id\": \"1af94fcb-bca3-45c4-9277-18878c75d417\",\n \"name\": \"Convert HTML to Markdown\",\n \"type\": \"n8n-nodes-base.markdown\",\n \"typeVersion\": 1,\n \"position\": [\n 3080,\n 620\n ]\n }\n ],\n \"connections\": {\n \"Execute workflow\": {\n \"main\": [\n [\n {\n \"node\": \"Set domain\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Set domain\": {\n \"main\": [\n [\n {\n \"node\": \"Add protocool to domain\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Add protocool to domain\": {\n \"main\": [\n [\n {\n \"node\": \"Get website\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Get website\": {\n \"main\": [\n [\n {\n \"node\": \"Convert HTML to Markdown\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Convert HTML to Markdown\": {\n \"main\": [\n [\n {\n \"node\": \"Set response\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n },\n \"pinData\": {}\n}", "requestOptions": {}}, "typeVersion": 1.1}, {"id": "af8efccb-ba3c-44de-85f7-b932d7a2e3ca", "name": "URLs", "type": "@n8n/n8n-nodes-langchain.toolWorkflow", "position": [1640, 980], "parameters": {"name": "url_retrieval_tool", "source": "parameter", "description": "Call this tool to return all URLs from the given website. Query should be full website URL.", "workflowJson": "{\n \"nodes\": [\n {\n \"parameters\": {},\n \"id\": \"05107436-c9cb-419b-ae8a-b74d309a130d\",\n \"name\": \"Execute workflow\",\n \"type\": \"n8n-nodes-base.manualTrigger\",\n \"typeVersion\": 1,\n \"position\": [\n 2200,\n 740\n ]\n },\n {\n \"parameters\": {\n \"operation\": \"extractHtmlContent\",\n \"extractionValues\": {\n \"values\": [\n {\n \"key\": \"output\",\n \"cssSelector\": \"a\",\n \"returnValue\": \"attribute\",\n \"returnArray\": true\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"1972e13e-d923-45e8-9752-e4bf45faaccf\",\n \"name\": \"Retrieve URLs\",\n \"type\": \"n8n-nodes-base.html\",\n \"typeVersion\": 1.2,\n \"position\": [\n 3060,\n 740\n ]\n },\n {\n \"parameters\": {\n \"fieldToSplitOut\": \"output\",\n \"options\": {}\n },\n \"id\": \"19703fbc-05ff-4d80-ab53-85ba6d39fc3f\",\n \"name\": \"Split out URLs\",\n \"type\": \"n8n-nodes-base.splitOut\",\n \"typeVersion\": 1,\n \"position\": [\n 3280,\n 740\n ]\n },\n {\n \"parameters\": {\n \"compare\": \"selectedFields\",\n \"fieldsToCompare\": \"href\",\n \"options\": {}\n },\n \"id\": \"5cc988e7-de9b-4177-b5e7-edb3842202c8\",\n \"name\": \"Remove duplicated\",\n \"type\": \"n8n-nodes-base.removeDuplicates\",\n \"typeVersion\": 1,\n \"position\": [\n 3720,\n 740\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"04ced063-09f0-496c-9b28-b8095f9e2297\",\n \"name\": \"href\",\n \"value\": \"={{ $json.href.startsWith(\\\"/\\\") ? $('Add protocool to domain (URL)').item.json[\\\"domain\\\"] + $json.href : $json.href }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"includeOtherFields\": true,\n \"include\": \"selected\",\n \"includeFields\": \"title\",\n \"options\": {}\n },\n \"id\": \"4715a25d-93a7-4056-8768-e3f886a1a0c9\",\n \"name\": \"Set domain to path\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 3940,\n 740\n ]\n },\n {\n \"parameters\": {\n \"conditions\": {\n \"options\": {\n \"caseSensitive\": true,\n \"leftValue\": \"\",\n \"typeValidation\": \"strict\"\n },\n \"conditions\": [\n {\n \"id\": \"d01ea6a8-7e75-40d4-98f2-25d42b245f36\",\n \"leftValue\": \"={{ $json.href.isUrl() }}\",\n \"rightValue\": \"\",\n \"operator\": {\n \"type\": \"boolean\",\n \"operation\": \"true\",\n \"singleValue\": true\n }\n }\n ],\n \"combinator\": \"and\"\n },\n \"options\": {}\n },\n \"id\": \"353deefb-ae69-440c-95b6-fdadacf4bf91\",\n \"name\": \"Filter out invalid URLs\",\n \"type\": \"n8n-nodes-base.filter\",\n \"typeVersion\": 2,\n \"position\": [\n 4160,\n 740\n ]\n },\n {\n \"parameters\": {\n \"aggregate\": \"aggregateAllItemData\",\n \"include\": \"specifiedFields\",\n \"fieldsToInclude\": \"title,href\",\n \"options\": {}\n },\n \"id\": \"9f87be8c-72d7-4ab1-b297-dc7069b2dd11\",\n \"name\": \"Aggregate URLs\",\n \"type\": \"n8n-nodes-base.aggregate\",\n \"typeVersion\": 1,\n \"position\": [\n 4380,\n 740\n ]\n },\n {\n \"parameters\": {\n \"conditions\": {\n \"options\": {\n \"caseSensitive\": true,\n \"leftValue\": \"\",\n \"typeValidation\": \"strict\"\n },\n \"conditions\": [\n {\n \"id\": \"5b9b7353-bd04-4af2-9480-8de135ff4223\",\n \"leftValue\": \"={{ $json.href }}\",\n \"rightValue\": \"\",\n \"operator\": {\n \"type\": \"string\",\n \"operation\": \"exists\",\n \"singleValue\": true\n }\n }\n ],\n \"combinator\": \"and\"\n },\n \"options\": {}\n },\n \"id\": \"35c8323a-5350-403a-9c2d-114b0527e395\",\n \"name\": \"Filter out empty hrefs\",\n \"type\": \"n8n-nodes-base.filter\",\n \"typeVersion\": 2,\n \"position\": [\n 3500,\n 740\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"253c2b17-c749-4f0a-93e8-5ff74f1ce49b\",\n \"name\": \"domain\",\n \"value\": \"={{ $json.query }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"d9f6a148-6c8c-4a58-89f5-4e9cfcd8d910\",\n \"name\": \"Set domain (URL)\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 2400,\n 740\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"ed0f1505-82b6-4393-a0d8-088055137ec9\",\n \"name\": \"domain\",\n \"value\": \"={{ $json.domain.startsWith(\\\"http\\\") ? $json.domain : \\\"http://\\\" + $json.domain }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"1f974444-da58-4a47-a9c3-ba3091fc1e96\",\n \"name\": \"Add protocool to domain (URL)\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 2620,\n 740\n ]\n },\n {\n \"parameters\": {\n \"url\": \"={{ $json.domain }}\",\n \"options\": {}\n },\n \"id\": \"31d7c7d4-8f61-402b-858d-63dd68ac69ee\",\n \"name\": \"Get website (URL)\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [\n 2840,\n 740\n ]\n },\n {\n \"parameters\": {\n \"assignments\": {\n \"assignments\": [\n {\n \"id\": \"53c1c016-7983-4eba-a91d-da2a0523d805\",\n \"name\": \"response\",\n \"value\": \"={{ JSON.stringify($json.data) }}\",\n \"type\": \"string\"\n }\n ]\n },\n \"options\": {}\n },\n \"id\": \"f4b6df77-96be-4b12-9a8b-ae9b7009f13d\",\n \"name\": \"Set response (URL)\",\n \"type\": \"n8n-nodes-base.set\",\n \"typeVersion\": 3.3,\n \"position\": [\n 4600,\n 740\n ]\n }\n ],\n \"connections\": {\n \"Execute workflow\": {\n \"main\": [\n [\n {\n \"node\": \"Set domain (URL)\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Retrieve URLs\": {\n \"main\": [\n [\n {\n \"node\": \"Split out URLs\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Split out URLs\": {\n \"main\": [\n [\n {\n \"node\": \"Filter out empty hrefs\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Remove duplicated\": {\n \"main\": [\n [\n {\n \"node\": \"Set domain to path\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Set domain to path\": {\n \"main\": [\n [\n {\n \"node\": \"Filter out invalid URLs\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Filter out invalid URLs\": {\n \"main\": [\n [\n {\n \"node\": \"Aggregate URLs\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Aggregate URLs\": {\n \"main\": [\n [\n {\n \"node\": \"Set response (URL)\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Filter out empty hrefs\": {\n \"main\": [\n [\n {\n \"node\": \"Remove duplicated\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Set domain (URL)\": {\n \"main\": [\n [\n {\n \"node\": \"Add protocool to domain (URL)\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Add protocool to domain (URL)\": {\n \"main\": [\n [\n {\n \"node\": \"Get website (URL)\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Get website (URL)\": {\n \"main\": [\n [\n {\n \"node\": \"Retrieve URLs\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n },\n \"pinData\": {}\n}", "requestOptions": {}}, "typeVersion": 1.1}, {"id": "725dc9d9-dc10-4895-aedb-93ecd7494d76", "name": "OpenAI Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [1300, 980], "parameters": {"model": "gpt-4o", "options": {"temperature": 0, "responseFormat": "json_object"}, "requestOptions": {}}, "credentials": {"openAiApi": {"id": "Qp9mop4DylpfqiTH", "name": "OpenAI (avirago@avirago.pl)"}}, "typeVersion": 1}, {"id": "2b9aa18b-e72e-486a-b307-db50e408842b", "name": "JSON Parser", "type": "@n8n/n8n-nodes-langchain.outputParserStructured", "position": [1800, 980], "parameters": {"schemaType": "manual", "inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"social_media\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"platform\": {\n \"type\": \"string\",\n \"description\": \"The name of the social media platform (e.g., LinkedIn, Instagram)\"\n },\n \"urls\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"format\": \"uri\",\n \"description\": \"A URL for the social media platform\"\n }\n }\n },\n \"required\": [\"platform\", \"urls\"],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\"platforms\"],\n \"additionalProperties\": false\n}\n", "requestOptions": {}}, "typeVersion": 1.2}, {"id": "87dcfe83-01f3-439c-8175-7da3d96391b4", "name": "Map company name and website", "type": "n8n-nodes-base.set", "position": [1400, 300], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "ae484e44-36bc-4d88-9772-545e579a261c", "name": "company_name", "type": "string", "value": "={{ $json.name }}"}, {"id": "c426ab19-649c-4443-aabb-eb0826680452", "name": "company_website", "type": "string", "value": "={{ $json.website }}"}]}}, "typeVersion": 3.3}, {"id": "a904bd16-b470-4c98-ac05-50bbc09bf24b", "name": "Execute workflow", "type": "n8n-nodes-base.manualTrigger", "position": [540, 620], "parameters": {}, "typeVersion": 1}, {"id": "a9801b62-a691-457c-a52f-ac0d68c8e8b3", "name": "Get companies", "type": "n8n-nodes-base.supabase", "position": [780, 620], "parameters": {"tableId": "companies_input", "operation": "getAll"}, "credentials": {"supabaseApi": {"id": "TZeFGe5qO3z7X5Zk", "name": "Supabase (workfloows@gmail.com)"}}, "typeVersion": 1}, {"id": "40d8fe8a-2975-4ea5-b6ac-46e19d158eea", "name": "Select company name and website", "type": "n8n-nodes-base.set", "position": [1040, 620], "parameters": {"include": "selected", "options": {}, "assignments": {"assignments": []}, "includeFields": "name,website", "includeOtherFields": true}, "typeVersion": 3.3}, {"id": "20aa3aea-f1f6-435c-a511-d4e8db047c6d", "name": "Set social media array", "type": "n8n-nodes-base.set", "position": [1800, 720], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "a6e109b7-9333-44e8-aa13-590aeb91a56b", "name": "social_media", "type": "array", "value": "={{ $json.output.social_media }}"}]}}, "typeVersion": 3.3}, {"id": "53f64ebf-8d9f-4718-9a33-aaae06e9cf9a", "name": "Merge all data", "type": "n8n-nodes-base.merge", "position": [2040, 620], "parameters": {"mode": "combine", "options": {}, "combinationMode": "mergeByPosition"}, "typeVersion": 2.1}, {"id": "e38e590e-cc1c-485f-b6c4-e7631f1c8381", "name": "Insert new row", "type": "n8n-nodes-base.supabase", "position": [2260, 620], "parameters": {"tableId": "companies_output", "dataToSend": "autoMapInputData"}, "credentials": {"supabaseApi": {"id": "TZeFGe5qO3z7X5Zk", "name": "Supabase (workfloows@gmail.com)"}}, "typeVersion": 1}, {"id": "aac08494-b324-4307-a5c5-5d5345cc9070", "name": "Convert HTML to Markdown", "type": "n8n-nodes-base.markdown", "position": [2100, 1314], "parameters": {"html": "={{ $json.data }}", "options": {"ignore": "a,img"}}, "typeVersion": 1}, {"id": "ca6733cb-973f-4e7b-9d52-48f1af2e08e3", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [1420, 940], "parameters": {"color": 5, "width": 157.8125, "height": 166.55000000000004, "content": ""}, "typeVersion": 1}, {"id": "4acd71c9-9e31-43fc-bda6-66d6a057306b", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [1600, 940], "parameters": {"color": 4, "width": 157.8125, "height": 166.55000000000004, "content": ""}, "typeVersion": 1}, {"id": "359adcd6-6bb9-4d64-8dde-6a45b0439fd6", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [1420, 1180], "parameters": {"color": 5, "width": 1117.5005339977713, "height": 329.45390772033636, "content": "### Text scraper tool\nThis tool is designed to return all text from the given webpage.\n\n\ud83d\udca1 **Consider adding proxy for better crawling accuracy.**\n"}, "typeVersion": 1}, {"id": "84133903-dcec-4c0c-8684-fdeb49f5702d", "name": "Retrieve URLs", "type": "n8n-nodes-base.html", "position": [2120, 1700], "parameters": {"options": {}, "operation": "extractHtmlContent", "extractionValues": {"values": [{"key": "output", "cssSelector": "a", "returnArray": true, "returnValue": "attribute"}]}}, "typeVersion": 1.2}, {"id": "2ebffed6-5517-47ff-9fcd-5ce503aa3b63", "name": "Split out URLs", "type": "n8n-nodes-base.splitOut", "position": [2340, 1700], "parameters": {"options": {}, "fieldToSplitOut": "output"}, "typeVersion": 1}, {"id": "215da9b2-0c0d-4d0e-b5f9-9887be75b0c4", "name": "Remove duplicated", "type": "n8n-nodes-base.removeDuplicates", "position": [2780, 1700], "parameters": {"compare": "selectedFields", "options": {}, "fieldsToCompare": "href"}, "typeVersion": 1}, {"id": "55825a1c-9351-413c-858a-c44cd3078f11", "name": "Set domain to path", "type": "n8n-nodes-base.set", "position": [3000, 1700], "parameters": {"include": "selected", "options": {}, "assignments": {"assignments": [{"id": "04ced063-09f0-496c-9b28-b8095f9e2297", "name": "href", "type": "string", "value": "={{ $json.href.startsWith(\"/\") ? $('Add protocool to domain (URL)').item.json[\"domain\"] + $json.href : $json.href }}"}]}, "includeFields": "title", "includeOtherFields": true}, "typeVersion": 3.3}, {"id": "57858d59-2727-4291-9dc6-238101de25ea", "name": "Filter out invalid URLs", "type": "n8n-nodes-base.filter", "position": [3220, 1700], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "d01ea6a8-7e75-40d4-98f2-25d42b245f36", "operator": {"type": "boolean", "operation": "true", "singleValue": true}, "leftValue": "={{ $json.href.isUrl() }}", "rightValue": ""}]}}, "typeVersion": 2}, {"id": "0e487a35-8a6c-48f7-9048-fe66a5a346e8", "name": "Aggregate URLs", "type": "n8n-nodes-base.aggregate", "position": [3440, 1700], "parameters": {"include": "specifiedFields", "options": {}, "aggregate": "aggregateAllItemData", "fieldsToInclude": "title,href"}, "typeVersion": 1}, {"id": "0062af28-8727-4ed4-b283-e250146c2085", "name": "Filter out empty hrefs", "type": "n8n-nodes-base.filter", "position": [2560, 1700], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "5b9b7353-bd04-4af2-9480-8de135ff4223", "operator": {"type": "string", "operation": "exists", "singleValue": true}, "leftValue": "={{ $json.href }}", "rightValue": ""}]}}, "typeVersion": 2}, {"id": "995e04f2-f5e3-48b8-879e-913f3a9fb657", "name": "Set domain (text)", "type": "n8n-nodes-base.set", "position": [1460, 1314], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "253c2b17-c749-4f0a-93e8-5ff74f1ce49b", "name": "domain", "type": "string", "value": "={{ $json.query }}"}]}}, "typeVersion": 3.3}, {"id": "c88f1008-00f8-4285-b595-a936e1f925a5", "name": "Add protocool to domain (text)", "type": "n8n-nodes-base.set", "position": [1660, 1314], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "ed0f1505-82b6-4393-a0d8-088055137ec9", "name": "domain", "type": "string", "value": "={{ $json.domain.startsWith(\"http\") ? $json.domain : \"http://\" + $json.domain }}"}]}}, "typeVersion": 3.3}, {"id": "3bc68a89-8bab-423a-b4bf-4739739aeb07", "name": "Get website (text)", "type": "n8n-nodes-base.httpRequest", "position": [1880, 1314], "parameters": {"url": "={{ $json.domain }}", "options": {}}, "typeVersion": 4.2}, {"id": "9d4782c3-872b-4e3c-9f8c-02cfea7a8ff2", "name": "Set response (text)", "type": "n8n-nodes-base.set", "position": [2320, 1314], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "2b1c7ff8-06a7-448b-99b7-5ede4b2e0bf0", "name": "response", "type": "string", "value": "={{ $json.data }}"}]}}, "typeVersion": 3.3}, {"id": "2b6ffbd9-892d-4246-b47c-86ad51362ac9", "name": "Set domain (URL)", "type": "n8n-nodes-base.set", "position": [1460, 1700], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "253c2b17-c749-4f0a-93e8-5ff74f1ce49b", "name": "domain", "type": "string", "value": "={{ $json.query }}"}]}}, "typeVersion": 3.3}, {"id": "2477677e-262e-45a3-99c3-06607b5ae270", "name": "Get website (URL)", "type": "n8n-nodes-base.httpRequest", "position": [1900, 1700], "parameters": {"url": "={{ $json.domain }}", "options": {}}, "typeVersion": 4.2}, {"id": "4f84eb31-7ad4-4b10-8043-b474fc7f367a", "name": "Set response (URL)", "type": "n8n-nodes-base.set", "position": [3660, 1700], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "53c1c016-7983-4eba-a91d-da2a0523d805", "name": "response", "type": "string", "value": "={{ JSON.stringify($json.data) }}"}]}}, "typeVersion": 3.3}, {"id": "2d2288dd-2ab5-41a1-984c-ff7c5bbab8d1", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [1420, 1560], "parameters": {"color": 4, "width": 2467.2678721043376, "height": 328.79842054012374, "content": "### URL scraper tool\nThis tool is designed to return all links (URLs) from the given webpage.\n\n\ud83d\udca1 **Consider adding proxy for better crawling accuracy.**"}, "typeVersion": 1}, {"id": "61c1b30f-38e5-44a5-a8be-edd4df1b13e5", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [720, 400], "parameters": {"width": 221.7729148148145, "height": 400.16865185185225, "content": "### Get companies from database\nRetrieve names and websites of companies from Supabase table to process crawling.\n\n\ud83d\udca1 **You can replace Supabase with other database of your choice.**"}, "typeVersion": 1}, {"id": "b6c6643a-4450-4576-b9c3-e28bc9ebed5d", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [980, 429.32034814814835], "parameters": {"width": 221.7729148148145, "height": 370.14757037037066, "content": "### Set parameters for execution\nPass only `name` and `website` values from database. \n\n\u26a0\ufe0f **If you use other field namings, update this node.**"}, "typeVersion": 1}, {"id": "52196e71-c2c2-4ec9-91ab-f7ebc9874d6c", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [1360, 536.6201859111013], "parameters": {"width": 339.7128777777775, "height": 328.4957622370491, "content": "### Crawling agent (retrieve social media profile links)\nCrawl website to extract social media profile links and return them in unified JSON format.\n\n\ud83d\udca1 **You can change type of retrieved data by editing prompt and parser schema.**"}, "typeVersion": 1}, {"id": "ea11931b-c1c7-43c4-a728-f10479863e38", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "position": [2200, 435.3819888888892], "parameters": {"width": 221.7729148148145, "height": 364.786662962963, "content": "### Insert data to database\nAdd new rows in database table with extracted data.\n\n\ud83d\udca1 **You can replace Supabase with other database of your choice.**"}, "typeVersion": 1}, {"id": "bc3d3337-a5b9-45ec-bb73-810cea9c0e73", "name": "Add protocool to domain (URL)", "type": "n8n-nodes-base.set", "position": [1680, 1700], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "ed0f1505-82b6-4393-a0d8-088055137ec9", "name": "domain", "type": "string", "value": "={{ $json.domain.startsWith(\"http\") ? $json.domain : \"http://\" + $json.domain }}"}]}}, "typeVersion": 3.3}, {"id": "db91703c-0133-4030-a9b5-fc3ab4331784", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [0, 660], "parameters": {"color": 3, "width": 369.60264559047334, "height": 256.26672065702303, "content": "## \u26a0\ufe0f Note\n\n1. Complete video guide for this workflow is available [on my YouTube](https://youtu.be/2W09puFZwtY). \n2. Remember to add your credentials and configure nodes.\n3. If you like this workflow, please subscribe to [my YouTube channel](https://www.youtube.com/@workfloows) and/or [my newsletter](https://workfloows.com/).\n\n**Thank you for your support!**"}, "typeVersion": 1}, {"id": "54530733-f8dc-44c7-a645-6f279e9a2c21", "name": "Sticky Note9", "type": "n8n-nodes-base.stickyNote", "position": [0, 420], "parameters": {"color": 7, "width": 369.93062670813185, "height": 212.09880341753203, "content": "## Autonomous AI crawler\nThis workflow autonomously navigates through given websites and retrieves social media profile links. \n\n\ud83d\udca1 **You can modify this workflow to retrieve other type of data (e.g. contact details or company profile summary).**"}, "typeVersion": 1}, {"id": "b43aee3c-47b5-47fd-89c4-7d213b26b4ca", "name": "Crawl website", "type": "@n8n/n8n-nodes-langchain.agent", "position": [1400, 720], "parameters": {"text": "=Retrieve social media profile URLs from this website: {{ $json.website }}", "options": {"systemMessage": "You are an automated web crawler tasked with extracting social media URLs from a webpage provided by the user. You have access to a text retrieval tool to gather all text content from the page and a URL retrieval tool to identify and navigate through links on the page. Utilize the URLs retrieved to crawl additional pages. Your objective is to provide a unified JSON output containing the extracted data (links to all possible social media profiles from the website)."}, "promptType": "define", "hasOutputParser": true}, "retryOnFail": true, "typeVersion": 1.6}] | {"Text": {"ai_tool": [[{"node": "Crawl website", "type": "ai_tool", "index": 0}]]}, "URLs": {"ai_tool": [[{"node": "Crawl website", "type": "ai_tool", "index": 0}]]}, "JSON Parser": {"ai_outputParser": [[{"node": "Crawl website", "type": "ai_outputParser", "index": 0}]]}, "Crawl website": {"main": [[{"node": "Set social media array", "type": "main", "index": 0}]]}, "Get companies": {"main": [[{"node": "Select company name and website", "type": "main", "index": 0}]]}, "Retrieve URLs": {"main": [[{"node": "Split out URLs", "type": "main", "index": 0}]]}, "Aggregate URLs": {"main": [[{"node": "Set response (URL)", "type": "main", "index": 0}]]}, "Merge all data": {"main": [[{"node": "Insert new row", "type": "main", "index": 0}]]}, "Split out URLs": {"main": [[{"node": "Filter out empty hrefs", "type": "main", "index": 0}]]}, "Execute workflow": {"main": [[{"node": "Get companies", "type": "main", "index": 0}]]}, "Set domain (URL)": {"main": [[{"node": "Add protocool to domain (URL)", "type": "main", "index": 0}]]}, "Get website (URL)": {"main": [[{"node": "Retrieve URLs", "type": "main", "index": 0}]]}, "OpenAI Chat Model": {"ai_languageModel": [[{"node": "Crawl website", "type": "ai_languageModel", "index": 0}]]}, "Remove duplicated": {"main": [[{"node": "Set domain to path", "type": "main", "index": 0}]]}, "Set domain (text)": {"main": [[{"node": "Add protocool to domain (text)", "type": "main", "index": 0}]]}, "Get website (text)": {"main": [[{"node": "Convert HTML to Markdown", "type": "main", "index": 0}]]}, "Set domain to path": {"main": [[{"node": "Filter out invalid URLs", "type": "main", "index": 0}]]}, "Filter out empty hrefs": {"main": [[{"node": "Remove duplicated", "type": "main", "index": 0}]]}, "Set social media array": {"main": [[{"node": "Merge all data", "type": "main", "index": 1}]]}, "Filter out invalid URLs": {"main": [[{"node": "Aggregate URLs", "type": "main", "index": 0}]]}, "Convert HTML to Markdown": {"main": [[{"node": "Set response (text)", "type": "main", "index": 0}]]}, "Map company name and website": {"main": [[{"node": "Merge all data", "type": "main", "index": 0}]]}, "Add protocool to domain (URL)": {"main": [[{"node": "Get website (URL)", "type": "main", "index": 0}]]}, "Add protocool to domain (text)": {"main": [[{"node": "Get website (text)", "type": "main", "index": 0}]]}, "Select company name and website": {"main": [[{"node": "Crawl website", "type": "main", "index": 0}, {"node": "Map company name and website", "type": "main", "index": 0}]]}} |
Detect hallucinations using specialised Ollama model bespoke-minicheck | [{"id": "cbc036f7-b0e1-4eb4-94c3-7571c67a1efe", "name": "Code", "type": "n8n-nodes-base.code", "position": [-120, 40], "parameters": {"mode": "runOnceForEachItem", "jsCode": "// Get the input text\nconst text = $input.item.json.text;\n\n// Ensure text is not null or undefined\nif (!text) {\n throw new Error('Input text is empty');\n}\n\n// Function to split text into sentences while preserving dates and list items\nfunction splitIntoSentences(text) {\n const monthNames = '(?:Januar|Februar|M\u00e4rz|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)';\n const datePattern = `(?:\\\\d{1,2}\\\\.\\\\s*(?:${monthNames}|\\\\d{1,2}\\\\.)\\\\s*\\\\d{2,4})`;\n \n // Split by sentence-ending punctuation, but not within dates or list items\n const regex = new RegExp(`(?<=[.!?])\\\\s+(?=[A-Z\u00c4\u00d6\u00dc]|$)(?!${datePattern}|\\\\s*[-\u2022]\\\\s)`, 'g');\n \n return text.split(regex)\n .map(sentence => sentence.trim())\n .filter(sentence => sentence !== '');\n}\n\n// Split the text into sentences\nconst sentences = splitIntoSentences(text);\n\n// Output a single object with an array of sentences\nreturn { json: { sentences: sentences } };"}, "typeVersion": 2}, {"id": "faae4740-a529-4275-be0e-b079c3bfde58", "name": "Split Out1", "type": "n8n-nodes-base.splitOut", "position": [340, -180], "parameters": {"options": {"destinationFieldName": "claim"}, "fieldToSplitOut": "sentences"}, "typeVersion": 1}, {"id": "c3944f89-e267-4df0-8fc4-9281eac4e759", "name": "Basic LLM Chain4", "type": "@n8n/n8n-nodes-langchain.chainLlm", "position": [640, -40], "parameters": {"text": "=Document: {{ $('Merge1').item.json.facts }}\nClaim: {{ $json.claim }}", "promptType": "define"}, "typeVersion": 1.5}, {"id": "4e53c7f1-ab9f-42be-a253-9328b209fc68", "name": "Ollama Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatOllama", "position": [700, 160], "parameters": {"model": "bespoke-minicheck:latest", "options": {}}, "credentials": {"ollamaApi": {"id": "DeuK54dDNrCCnXHl", "name": "Ollama account"}}, "typeVersion": 1}, {"id": "0252e47e-0e50-4024-92a0-74b554c8cbd1", "name": "When clicking \u2018Test workflow\u2019", "type": "n8n-nodes-base.manualTrigger", "position": [-760, 40], "parameters": {}, "typeVersion": 1}, {"id": "8dd3f67c-e36f-4b03-8f9f-9b52ea23e0ed", "name": "Edit Fields", "type": "n8n-nodes-base.set", "position": [-460, 40], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "55748f38-486f-495f-91ec-02c1d49acf18", "name": "facts", "type": "string", "value": "Sara Beery came to MIT as an assistant professor in MIT\u2019s Department of Electrical Engineering and Computer Science (EECS) eager to focus on ecological challenges. She has fashioned her research career around the opportunity to apply her expertise in computer vision, machine learning, and data science to tackle real-world issues in conservation and sustainability. Beery was drawn to the Institute\u2019s commitment to \u201ccomputing for the planet,\u201d and set out to bring her methods to global-scale environmental and biodiversity monitoring.\n\nIn the Pacific Northwest, salmon have a disproportionate impact on the health of their ecosystems, and their complex reproductive needs have attracted Beery\u2019s attention. Each year, millions of salmon embark on a migration to spawn. Their journey begins in freshwater stream beds where the eggs hatch. Young salmon fry (newly hatched salmon) make their way to the ocean, where they spend several years maturing to adulthood. As adults, the salmon return to the streams where they were born in order to spawn, ensuring the continuation of their species by depositing their eggs in the gravel of the stream beds. Both male and female salmon die shortly after supplying the river habitat with the next generation of salmon."}, {"id": "7d8e29db-4a4b-47c5-8c93-fda1e72137a7", "name": "text", "type": "string", "value": "MIT's AI Pioneer Tackles Salmon Conservation Professor Sara Beery, a rising star in MIT's Department of Electrical Engineering and Computer Science, is revolutionizing ecological conservation through cutting-edge technology. Specializing in computer vision, machine learning, and data science, Beery has set her sights on addressing real-world sustainability challenges. Her current focus? The vital salmon populations of the Pacific Northwest. These fish play a crucial role in their ecosystems, with their complex life cycle spanning from freshwater streams to the open ocean and back again. Beery's innovative approach uses AI to monitor salmon migration patterns, providing unprecedented insights into their behavior and habitat needs. Beery's work has led to the development of underwater AI cameras that can distinguish between different salmon species with 99.9% accuracy. Her team has also created a revolutionary \"salmon translator\" that can predict spawning locations based on fish vocalizations. As climate change threatens these delicate ecosystems, Beery's research offers hope for more effective conservation strategies. By harnessing the power of technology, she's not just studying nature \u2013 she's actively working to preserve it for future generations."}]}}, "typeVersion": 3.4}, {"id": "25849b47-1550-464c-9e70-e787712e5765", "name": "Merge", "type": "n8n-nodes-base.merge", "position": [1120, -160], "parameters": {"mode": "combine", "options": {}, "combineBy": "combineByPosition"}, "typeVersion": 3}, {"id": "eaea7ef4-a5d5-42b8-b262-e9a4bd6b7281", "name": "Filter", "type": "n8n-nodes-base.filter", "position": [1340, -160], "parameters": {"options": {}, "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "20a4ffd6-0dd0-44f9-97bc-7d891f689f4d", "operator": {"name": "filter.operator.equals", "type": "string", "operation": "equals"}, "leftValue": "={{ $json.text }}", "rightValue": "No"}]}}, "typeVersion": 2.2}, {"id": "9f074bdb-b1a6-4c36-be1c-203f78092657", "name": "When Executed by Another Workflow", "type": "n8n-nodes-base.executeWorkflowTrigger", "position": [-760, -200], "parameters": {"workflowInputs": {"values": [{"name": "facts"}, {"name": "text"}]}}, "typeVersion": 1.1}, {"id": "0a08ac40-b497-4f6e-ac2c-2213a00d63f2", "name": "Aggregate", "type": "n8n-nodes-base.aggregate", "position": [1560, -160], "parameters": {"options": {}, "aggregate": "aggregateAllItemData"}, "typeVersion": 1}, {"id": "b0d79886-01fc-43c7-88fe-a7a5b8b56b35", "name": "Merge1", "type": "n8n-nodes-base.merge", "position": [80, -180], "parameters": {"mode": "combine", "options": {}, "combineBy": "combineByPosition"}, "typeVersion": 3}, {"id": "82640408-9db4-4a12-9136-1a22985b609b", "name": "Basic LLM Chain", "type": "@n8n/n8n-nodes-langchain.chainLlm", "position": [1780, -160], "parameters": {"text": "={{ $json.data }}", "messages": {"messageValues": [{"message": "You are a fact-checking assistant. Your task is to analyze a list of statements, each accompanied by a \"yes\" or \"no\" indicating whether the statement is correct. Follow these guidelines:\n\n1. Review Process:\n a) Carefully read through each statement and its corresponding yes/no answer.\n b) Identify which statements are marked as incorrect (no).\n c) Ignore chit-chat sentences or statements that don't contain factual information.\n d) Count the total number of incorrect factual statements.\n\n2. Statement Classification:\n - Factual Statements: Contains specific information, data, or claims that can be verified.\n - Chit-chat/Non-factual: General comments, introductions, or transitions that don't present verifiable facts.\n\n3. Summary Structure:\n a) Overview: Provide a brief summary of the number of factual errors found.\n b) List of Problems: Enumerate the incorrect factual statements.\n c) Final Assessment: Offer a concise evaluation of the overall state of the article's factual accuracy.\n\n4. Prioritization:\n - Focus only on the factual statements marked as incorrect (no).\n - Ignore statements marked as correct (yes) and non-factual chit-chat.\n\n5. Feedback Tone:\n - Maintain a neutral and objective tone.\n - Present the information factually without additional commentary.\n\n6. Output Format:\n Present your summary in the following structure:\n\n ## Problem Summary\n [Number] incorrect factual statements were identified in the article.\n\n ## List of Incorrect Factual Statements\n 1. [First incorrect factual statement]\n 2. [Second incorrect factual statement]\n 3. [Third incorrect factual statement]\n (Continue listing all incorrect factual statements)\n\n ## Final Assessment\n Based on the number of incorrect factual statements:\n - If 0-1 errors: The article appears to be highly accurate and may only need minor factual adjustments.\n - If 2-3 errors: The article requires some revision to address these factual inaccuracies.\n - If 4 or more errors: The article needs significant revision to improve its factual accuracy.\n\nRemember, your role is to provide a clear, concise summary of the incorrect factual statements to help the writing team quickly understand what needs to be addressed. Ignore any chit-chat or non-factual statements in your analysis and summary."}]}, "promptType": "define"}, "typeVersion": 1.5}, {"id": "719054ef-0863-4e52-8390-23313c750aac", "name": "Ollama Model", "type": "@n8n/n8n-nodes-langchain.lmOllama", "position": [1880, 60], "parameters": {"model": "qwen2.5:1.5b", "options": {}}, "credentials": {"ollamaApi": {"id": "DeuK54dDNrCCnXHl", "name": "Ollama account"}}, "typeVersion": 1}, {"id": "6595eb25-32ce-49f5-a013-b87d7f3c65d3", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [1480, -320], "parameters": {"width": 860, "height": 600, "content": "## Build a summary\n\nThis is useful to run it in an agentic workflow. You may remove the summary part and return the raw array with the found issues."}, "typeVersion": 1}, {"id": "9f6cde97-d2a7-44e4-b715-321ec1e68bd3", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [-240, -320], "parameters": {"width": 760, "height": 600, "content": "## Split into sentences"}, "typeVersion": 1}, {"id": "1ceb8f3c-c00b-4496-82b2-20578550c4be", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [540, -320], "parameters": {"width": 920, "height": 600, "content": "## Fact checking\n\nThis use a small ollama model that is specialized on that task: https://ollama.com/library/bespoke-minicheck\n\nYou have to install it before use with `ollama pull bespoke-minicheck`."}, "typeVersion": 1}, {"id": "6e340925-d4e5-4fe1-ba9d-a89a23b68226", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [-860, -20], "parameters": {"width": 600, "height": 300, "content": "## Test workflow\n"}, "typeVersion": 1}, {"id": "5561d606-93d2-4887-839d-8ce2230ff30c", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [-860, -320], "parameters": {"width": 600, "height": 280, "content": "## Entrypoint to use in other workflows\n"}, "typeVersion": 1}] | {"Code": {"main": [[{"node": "Merge1", "type": "main", "index": 1}]]}, "Merge": {"main": [[{"node": "Filter", "type": "main", "index": 0}]]}, "Filter": {"main": [[{"node": "Aggregate", "type": "main", "index": 0}]]}, "Merge1": {"main": [[{"node": "Split Out1", "type": "main", "index": 0}]]}, "Aggregate": {"main": [[{"node": "Basic LLM Chain", "type": "main", "index": 0}]]}, "Split Out1": {"main": [[{"node": "Merge", "type": "main", "index": 0}, {"node": "Basic LLM Chain4", "type": "main", "index": 0}]]}, "Edit Fields": {"main": [[{"node": "Code", "type": "main", "index": 0}, {"node": "Merge1", "type": "main", "index": 0}]]}, "Ollama Model": {"ai_languageModel": [[{"node": "Basic LLM Chain", "type": "ai_languageModel", "index": 0}]]}, "Basic LLM Chain4": {"main": [[{"node": "Merge", "type": "main", "index": 1}]]}, "Ollama Chat Model": {"ai_languageModel": [[{"node": "Basic LLM Chain4", "type": "ai_languageModel", "index": 0}]]}, "When Executed by Another Workflow": {"main": [[{"node": "Code", "type": "main", "index": 0}, {"node": "Merge1", "type": "main", "index": 0}]]}, "When clicking \u2018Test workflow\u2019": {"main": [[{"node": "Edit Fields", "type": "main", "index": 0}]]}} |
Build Your Own Image Search Using AI Object Detection, CDN and ElasticSearchBuild Your Own Image Search Using AI Object Detection, CDN and ElasticSearch | [{"id": "6359f725-1ede-4b05-bc19-05a7e85c0865", "name": "When clicking \"Test workflow\"", "type": "n8n-nodes-base.manualTrigger", "position": [680, 292], "parameters": {}, "typeVersion": 1}, {"id": "9e1e61c7-f5fd-4e8a-99a6-ccc5a24f5528", "name": "Fetch Source Image", "type": "n8n-nodes-base.httpRequest", "position": [1000, 292], "parameters": {"url": "={{ $json.source_image }}", "options": {}}, "typeVersion": 4.2}, {"id": "9b1b94cf-3a7d-4c43-ab6c-8df9824b5667", "name": "Split Out Results Only", "type": "n8n-nodes-base.splitOut", "position": [1428, 323], "parameters": {"options": {}, "fieldToSplitOut": "result"}, "typeVersion": 1}, {"id": "fcbaf6c3-2aee-4ea1-9c5e-2833dd7a9f50", "name": "Filter Score >= 0.9", "type": "n8n-nodes-base.filter", "position": [1608, 323], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "367d83ef-8ecf-41fe-858c-9bfd78b0ae9f", "operator": {"type": "number", "operation": "gte"}, "leftValue": "={{ $json.score }}", "rightValue": 0.9}]}}, "typeVersion": 2}, {"id": "954ce7b0-ef82-4203-8706-17cfa5e5e3ff", "name": "Crop Object From Image", "type": "n8n-nodes-base.editImage", "position": [2080, 432], "parameters": {"width": "={{ $json.box.xmax - $json.box.xmin }}", "height": "={{ $json.box.ymax - $json.box.ymin }}", "options": {"format": "jpeg", "fileName": "={{ $binary.data.fileName.split('.')[0].urlEncode()+'-'+$json.label.urlEncode() + '-' + $itemIndex }}.jpg"}, "operation": "crop", "positionX": "={{ $json.box.xmin }}", "positionY": "={{ $json.box.ymin }}"}, "typeVersion": 1}, {"id": "40027456-4bf9-4eea-8d71-aa28e69b29e5", "name": "Set Variables", "type": "n8n-nodes-base.set", "position": [840, 292], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "9e95d951-8530-4a80-bd00-6bb55623a71f", "name": "CLOUDFLARE_ACCOUNT_ID", "type": "string", "value": ""}, {"id": "66807a90-63a1-4d4e-886e-e8abf3019a34", "name": "model", "type": "string", "value": "@cf/facebook/detr-resnet-50"}, {"id": "a13ccde6-e6e3-46f4-afa3-2134af7bc765", "name": "source_image", "type": "string", "value": "https://images.pexels.com/photos/2293367/pexels-photo-2293367.jpeg?auto=compress&cs=tinysrgb&w=600"}, {"id": "0734fc55-b414-47f7-8b3e-5c880243f3ed", "name": "elasticsearch_index", "type": "string", "value": "n8n-image-search"}]}}, "typeVersion": 3.3}, {"id": "c3d8c5e3-546e-472c-9e6e-091cf5cee3c3", "name": "Use Detr-Resnet-50 Object Classification", "type": "n8n-nodes-base.httpRequest", "position": [1248, 324], "parameters": {"url": "=https://api.cloudflare.com/client/v4/accounts/{{ $('Set Variables').item.json.CLOUDFLARE_ACCOUNT_ID }}/ai/run/{{ $('Set Variables').item.json.model }}", "method": "POST", "options": {}, "sendBody": true, "contentType": "binaryData", "authentication": "predefinedCredentialType", "inputDataFieldName": "data", "nodeCredentialType": "cloudflareApi"}, "credentials": {"cloudflareApi": {"id": "qOynkQdBH48ofOSS", "name": "Cloudflare account"}}, "typeVersion": 4.2}, {"id": "3c7aa2fc-9ca1-41ba-a10d-aa5930d45f18", "name": "Upload to Cloudinary", "type": "n8n-nodes-base.httpRequest", "position": [2380, 380], "parameters": {"url": "https://api.cloudinary.com/v1_1/daglih2g8/image/upload", "method": "POST", "options": {}, "sendBody": true, "sendQuery": true, "contentType": "multipart-form-data", "authentication": "genericCredentialType", "bodyParameters": {"parameters": [{"name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data"}]}, "genericAuthType": "httpQueryAuth", "queryParameters": {"parameters": [{"name": "upload_preset", "value": "n8n-workflows-preset"}]}}, "credentials": {"httpQueryAuth": {"id": "sT9jeKzZiLJ3bVPz", "name": "Cloudinary API"}}, "typeVersion": 4.2}, {"id": "3c4e1f04-a0ba-4cce-b82a-aa3eadc4e7e1", "name": "Create Docs In Elasticsearch", "type": "n8n-nodes-base.elasticsearch", "position": [2580, 380], "parameters": {"indexId": "={{ $('Set Variables').item.json.elasticsearch_index }}", "options": {}, "fieldsUi": {"fieldValues": [{"fieldId": "image_url", "fieldValue": "={{ $json.secure_url.replace('upload','upload/f_auto,q_auto') }}"}, {"fieldId": "source_image_url", "fieldValue": "={{ $('Set Variables').item.json.source_image }}"}, {"fieldId": "label", "fieldValue": "={{ $('Crop Object From Image').item.json.label }}"}, {"fieldId": "metadata", "fieldValue": "={{ JSON.stringify(Object.assign($('Crop Object From Image').item.json, { filename: $json.original_filename })) }}"}]}, "operation": "create", "additionalFields": {}}, "credentials": {"elasticsearchApi": {"id": "dRuuhAgS7AF0mw0S", "name": "Elasticsearch account"}}, "typeVersion": 1}, {"id": "292c9821-c123-44fa-9ba1-c37bf84079bc", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [620, 120], "parameters": {"color": 7, "width": 541.1455500767354, "height": 381.6388867600897, "content": "## 1. Get Source Image\n[Read more about setting variables for your workflow](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.set)\n\nFor this demo, we'll manually define an image to process. In production however, this image can come from a variety of sources such as drives, webhooks and more."}, "typeVersion": 1}, {"id": "863271dc-fb9d-4211-972d-6b57336073b4", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [1180, 80], "parameters": {"color": 7, "width": 579.7748008857744, "height": 437.4680103498263, "content": "## 2. Use Detr-Resnet-50 Object Classification\n[Learn more about Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/)\n\nNot all AI workflows need an LLM! As in this example, we're using a non-LLM vision model to parse the source image and return what objects are contained within. The image search feature we're building will be based on the objects in the image making for a much more granular search via object association.\n\nWe'll use the Cloudflare Workers AI service which conveniently provides this model via API use."}, "typeVersion": 1}, {"id": "b73b45da-0436-4099-b538-c6b3b84822f2", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [1800, 260], "parameters": {"color": 7, "width": 466.35460775498495, "height": 371.9272151757119, "content": "## 3. Crop Objects Out of Source Image\n[Read more about Editing Images in n8n](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.editimage)\n\nWith our objects identified by their bounding boxes, we can \"cut\" them out of the source image as separate images."}, "typeVersion": 1}, {"id": "465bd842-8a35-49d8-a9ff-c30d164620db", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [2300, 180], "parameters": {"color": 7, "width": 478.20345439832454, "height": 386.06196032653685, "content": "## 4. Index Object Images In ElasticSearch\n[Read more about using ElasticSearch](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.elasticsearch)\n\nBy storing the newly created object images externally and indexing them in Elasticsearch, we now have a foundation for our Image Search service which queries by object association."}, "typeVersion": 1}, {"id": "6a04b4b5-7830-410d-9b5b-79acb0b1c78b", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [1800, -220], "parameters": {"color": 7, "width": 328.419768654291, "height": 462.65463700396174, "content": "Fig 1. Result of Classification\n"}, "typeVersion": 1}, {"id": "8f607951-ba41-4362-8323-e8b4b96ad122", "name": "Fetch Source Image Again", "type": "n8n-nodes-base.httpRequest", "position": [1880, 432], "parameters": {"url": "={{ $('Set Variables').item.json.source_image }}", "options": {}}, "typeVersion": 4.2}, {"id": "6933f67d-276b-4908-8602-654aa352a68b", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [220, 120], "parameters": {"width": 359.6648027457353, "height": 352.41026669883723, "content": "## Try It Out!\n### This workflow does the following:\n* Downloads an image\n* Uses an object classification AI model to identify objects in the image.\n* Crops the objects out from the original image into new image files.\n* Indexes the image's object in an Elasticsearch Database to enable image search.\n\n### Need Help?\nJoin the [Discord](https://discord.com/invite/XPKeKXeB7d) or ask in the [Forum](https://community.n8n.io/)!\n\nHappy Hacking!"}, "typeVersion": 1}, {"id": "35615ed5-43e8-43f0-95fe-1f95a1177d69", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [800, 280], "parameters": {"width": 172.9365918827757, "height": 291.6881468483679, "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ud83d\udea8**Required**\n* Set your variables here first!"}, "typeVersion": 1}] | {"Set Variables": {"main": [[{"node": "Fetch Source Image", "type": "main", "index": 0}]]}, "Fetch Source Image": {"main": [[{"node": "Use Detr-Resnet-50 Object Classification", "type": "main", "index": 0}]]}, "Filter Score >= 0.9": {"main": [[{"node": "Fetch Source Image Again", "type": "main", "index": 0}]]}, "Upload to Cloudinary": {"main": [[{"node": "Create Docs In Elasticsearch", "type": "main", "index": 0}]]}, "Crop Object From Image": {"main": [[{"node": "Upload to Cloudinary", "type": "main", "index": 0}]]}, "Split Out Results Only": {"main": [[{"node": "Filter Score >= 0.9", "type": "main", "index": 0}]]}, "Fetch Source Image Again": {"main": [[{"node": "Crop Object From Image", "type": "main", "index": 0}]]}, "When clicking \"Test workflow\"": {"main": [[{"node": "Set Variables", "type": "main", "index": 0}]]}, "Use Detr-Resnet-50 Object Classification": {"main": [[{"node": "Split Out Results Only", "type": "main", "index": 0}]]}} |
MicrosoftOutlook:Folder:create get getAll getChildren delete:Message send getAll get getMime update delete:FolderMessage:getAll:Draft:create update get delete send:MessageAttachment:add getAll get download | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "c8853916-a370-410c-8c96-fec280e24502"}, {"parameters": {"subject": "=Subject {{Date.now()}}", "bodyContent": "=Test {{(new Date).toUTCString()}}", "toRecipients": "node8qa@gmail.com", "additionalFields": {}}, "name": "Microsoft Outlook", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [450, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "75eee31d-df00-4fe7-8c29-0dca953fcec5"}, {"parameters": {"operation": "getAll", "limit": 1, "additionalFields": {}}, "name": "Microsoft Outlook1", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [750, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "7b0b82c4-5e02-4819-a2af-748eee795377"}, {"parameters": {"operation": "get", "messageId": "={{$node[\"Microsoft Outlook1\"].json[\"id\"]}}", "additionalFields": {}}, "name": "Microsoft Outlook2", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [900, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "e11bc3e4-d5fc-496a-b601-939ea3edf709"}, {"parameters": {"operation": "getMime", "messageId": "={{$node[\"Microsoft Outlook1\"].json[\"id\"]}}"}, "name": "Microsoft Outlook3", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1200, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "4d18fe05-dc23-47f9-b0bf-776ea266ad94"}, {"parameters": {"operation": "update", "messageId": "={{$node[\"Microsoft Outlook2\"].json[\"id\"]}}", "updateFields": {"bodyContent": "=Updated{{$node[\"Microsoft Outlook2\"].json[\"body\"][\"content\"]}}"}}, "name": "Microsoft Outlook4", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1350, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "eba271aa-7a39-45c4-b74c-79be4d600f5e"}, {"parameters": {"operation": "delete", "messageId": "={{$node[\"Microsoft Outlook1\"].json[\"id\"]}}"}, "name": "Microsoft Outlook5", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1800, 300], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "631bf979-dfac-4acc-b038-c2efbbc4eb61"}, {"parameters": {"resource": "draft", "subject": "=Draft{{Date.now()}}", "bodyContent": "=draft test{{(new Date).toUTCString()}}", "additionalFields": {"toRecipients": " node8qa@gmail.com "}}, "name": "Microsoft Outlook6", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [450, 500], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "d52c068a-caec-4b41-8f2b-6ecb09eeff45"}, {"parameters": {"resource": "draft", "operation": "update", "messageId": "={{$node[\"Microsoft Outlook6\"].json[\"id\"]}}", "updateFields": {"bodyContent": "=Updated{{$node[\"Microsoft Outlook6\"].json[\"body\"][\"content\"]}}"}}, "name": "Microsoft Outlook7", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [600, 500], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "d9f97b7a-cd2d-476a-bc98-65c622adafae"}, {"parameters": {"resource": "draft", "operation": "get", "messageId": "={{$node[\"Microsoft Outlook6\"].json[\"id\"]}}", "additionalFields": {}}, "name": "Microsoft Outlook8", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [900, 500], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "d8668bc3-43db-4ba9-ab40-a5bd7fd0ea32"}, {"parameters": {"resource": "draft", "operation": "delete", "messageId": "={{$node[\"Microsoft Outlook6\"].json[\"id\"]}}"}, "name": "Microsoft Outlook9", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1050, 500], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "5c319460-5c69-4622-953a-7bcaee892d07"}, {"parameters": {"resource": "draft", "subject": "=Draft{{Date.now()}}", "bodyContent": "=draft test{{Date.now()}}", "additionalFields": {"toRecipients": " node8qa@gmail.com "}}, "name": "Microsoft Outlook10", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1350, 500], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "4fefb565-502a-4a8d-a9a4-db2b208d7b12"}, {"parameters": {"resource": "draft", "operation": "send", "messageId": "={{$node[\"Microsoft Outlook10\"].json[\"id\"]}}", "additionalFields": {"recipients": "node8qa@gmail.com"}}, "name": "Microsoft Outlook11", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [2650, 550], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "c1d8d7e4-8d6d-4ca4-9e05-e0ad702a586d"}, {"parameters": {"operation": "delete", "messageId": "={{$node[\"Microsoft Outlook13\"].json[\"id\"]}}"}, "name": "Microsoft Outlook12", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [3100, 550], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "0e1e8c29-065e-43e2-9751-46b580640c73"}, {"parameters": {"operation": "getAll", "limit": 1, "additionalFields": {}}, "name": "Microsoft Outlook13", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [2950, 550], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "c4ba0930-587d-47a4-8a4b-a3b3ba7ed3f2"}, {"parameters": {"resource": "folder", "displayName": "=Folder{{(new Date).toUTCString()}}"}, "name": "Microsoft Outlook14", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [450, 140], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "3b783dbb-0e38-4cdb-8931-a83c2e542a9e"}, {"parameters": {"resource": "folder", "operation": "get", "folderId": "={{$node[\"Microsoft Outlook14\"].json[\"id\"]}}", "additionalFields": {}}, "name": "Microsoft Outlook15", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [750, 140], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "c829334b-0ac4-4440-b3bd-537f659608f7"}, {"parameters": {"resource": "folder", "operation": "getAll", "limit": 1, "additionalFields": {"filter": "startsWith(displayName,'Folder')"}}, "name": "Microsoft Outlook16", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [900, 140], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "d446756b-e052-4869-9d2d-7d4af3c155f3"}, {"parameters": {"resource": "folder", "operation": "getChildren", "folderId": "={{$node[\"Microsoft Outlook14\"].json[\"id\"]}}", "limit": 1, "additionalFields": {}}, "name": "Microsoft Outlook17", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1200, 140], "alwaysOutputData": true, "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "8f732179-076b-4375-96ef-396c41ec4f22"}, {"parameters": {"resource": "folder", "operation": "delete", "folderId": "={{$node[\"Microsoft Outlook14\"].json[\"id\"]}}"}, "name": "Microsoft Outlook18", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1350, 140], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "a4b7d61c-74c1-4595-9698-6b1fa7a73842"}, {"parameters": {"resource": "folderMessage", "operation": "getAll", "folderId": "AQMkADAwATNiZmYAZC0zODgAZC1jYjlmLTAwAi0wMAoALgAAA7ObUbW4UV9AtQb9CKQozz8BAIHMmBimhDVHlaNbe8JltA4AAAIBCQAAAA==", "limit": 1, "additionalFields": {}}, "name": "Microsoft Outlook19", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1650, 350], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "891fb969-79f6-4832-a3d0-b2d938fe757a"}, {"parameters": {"resource": "messageAttachment", "messageId": "={{$node[\"Microsoft Outlook10\"].json[\"id\"]}}", "additionalFields": {"fileName": "test"}}, "name": "Microsoft Outlook20", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [1750, 650], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "d7131b8a-1656-4ad0-baa0-860456471bb1"}, {"parameters": {"mode": "jsonToBinary", "options": {"keepSource": false}}, "name": "Move Binary Data", "type": "n8n-nodes-base.moveBinaryData", "typeVersion": 1, "position": [1600, 650], "id": "9f86213f-ce39-4b3e-a9e9-7327d421f7cb"}, {"parameters": {"values": {"string": [{"name": "data", "value": "dGVzdCBmb3IgbWljcm9zb2Z0IG91dGxvb2s="}]}, "options": {}}, "name": "Set", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [1450, 650], "id": "b909a6f3-09d4-450f-be31-6c771fa96f08"}, {"parameters": {"resource": "messageAttachment", "operation": "getAll", "messageId": "={{$node[\"Microsoft Outlook10\"].json[\"id\"]}}", "additionalFields": {}}, "name": "Microsoft Outlook21", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [2050, 650], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "3b59dfb0-2204-4073-81fb-9629e95969bb"}, {"parameters": {"resource": "messageAttachment", "operation": "get", "messageId": "={{$node[\"Microsoft Outlook10\"].json[\"id\"]}}", "attachmentId": "={{$node[\"Microsoft Outlook21\"].json[\"id\"]}}", "additionalFields": {}}, "name": "Microsoft Outlook22", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [2200, 650], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "20c4215c-8ab5-4621-872e-1799140f546d"}, {"parameters": {"resource": "messageAttachment", "operation": "download", "messageId": "={{$node[\"Microsoft Outlook10\"].json[\"id\"]}}", "attachmentId": "={{$node[\"Microsoft Outlook21\"].json[\"id\"]}}"}, "name": "Microsoft Outlook23", "type": "n8n-nodes-base.microsoftOutlook", "typeVersion": 1, "position": [2490, 650], "credentials": {"microsoftOutlookOAuth2Api": {"id": "72", "name": "Microsoft Outlook OAuth2 creds"}}, "id": "5118f8c3-c5e5-417e-8d38-0970f7f56414"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second", "type": "n8n-nodes-base.function", "position": [1050, 140], "typeVersion": 1, "id": "94e105e3-0637-4064-8514-af332eb2827f"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second1", "type": "n8n-nodes-base.function", "position": [610, 140], "typeVersion": 1, "id": "18598ace-99d1-4b66-91c7-e644a87016c5"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second2", "type": "n8n-nodes-base.function", "position": [600, 300], "typeVersion": 1, "id": "ba10706c-633c-4cad-968a-f3f18e9c9920"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second3", "type": "n8n-nodes-base.function", "position": [1050, 300], "typeVersion": 1, "id": "b0f039ce-0731-4f9a-ba87-bc15d53769b8"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second4", "type": "n8n-nodes-base.function", "position": [1500, 350], "typeVersion": 1, "id": "418bceb9-6a77-464f-a4e1-8e1f9405e334"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second5", "type": "n8n-nodes-base.function", "position": [2800, 550], "typeVersion": 1, "id": "340d3c0c-faf5-4743-8c1b-f00c6541d8ca"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second6", "type": "n8n-nodes-base.function", "position": [2350, 650], "typeVersion": 1, "id": "e46a32dd-2110-4e2d-9c6e-d871edba8fe2"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second7", "type": "n8n-nodes-base.function", "position": [1900, 650], "typeVersion": 1, "id": "67a411cf-4505-4c21-aa92-1936ccdb0149"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second8", "type": "n8n-nodes-base.function", "position": [1940, 300], "typeVersion": 1, "id": "26cac095-afb7-41c7-85a9-44dbdf916e9f"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second9", "type": "n8n-nodes-base.function", "position": [750, 500], "typeVersion": 1, "id": "e1fe7a57-75ee-4154-a288-6a4a740b7375"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(800);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.8 second10", "type": "n8n-nodes-base.function", "position": [1200, 500], "typeVersion": 1, "id": "571afdbd-30e6-45d6-9848-d9c6d71b5ba4"}] | {"Microsoft Outlook": {"main": [[{"node": "Sleep 0.8 second2", "type": "main", "index": 0}]]}, "Microsoft Outlook1": {"main": [[{"node": "Microsoft Outlook2", "type": "main", "index": 0}]]}, "Microsoft Outlook2": {"main": [[{"node": "Sleep 0.8 second3", "type": "main", "index": 0}]]}, "Microsoft Outlook3": {"main": [[{"node": "Microsoft Outlook4", "type": "main", "index": 0}]]}, "Microsoft Outlook4": {"main": [[{"node": "Sleep 0.8 second4", "type": "main", "index": 0}]]}, "Microsoft Outlook5": {"main": [[{"node": "Sleep 0.8 second8", "type": "main", "index": 0}]]}, "Start": {"main": [[{"node": "Microsoft Outlook", "type": "main", "index": 0}, {"node": "Microsoft Outlook14", "type": "main", "index": 0}]]}, "Microsoft Outlook6": {"main": [[{"node": "Microsoft Outlook7", "type": "main", "index": 0}]]}, "Microsoft Outlook7": {"main": [[{"node": "Sleep 0.8 second9", "type": "main", "index": 0}]]}, "Microsoft Outlook8": {"main": [[{"node": "Microsoft Outlook9", "type": "main", "index": 0}]]}, "Microsoft Outlook10": {"main": [[{"node": "Set", "type": "main", "index": 0}]]}, "Microsoft Outlook11": {"main": [[{"node": "Sleep 0.8 second5", "type": "main", "index": 0}]]}, "Microsoft Outlook13": {"main": [[{"node": "Microsoft Outlook12", "type": "main", "index": 0}]]}, "Microsoft Outlook9": {"main": [[{"node": "Sleep 0.8 second10", "type": "main", "index": 0}]]}, "Microsoft Outlook14": {"main": [[{"node": "Sleep 0.8 second1", "type": "main", "index": 0}]]}, "Microsoft Outlook15": {"main": [[{"node": "Microsoft Outlook16", "type": "main", "index": 0}]]}, "Microsoft Outlook16": {"main": [[{"node": "Sleep 0.8 second", "type": "main", "index": 0}]]}, "Microsoft Outlook17": {"main": [[{"node": "Microsoft Outlook18", "type": "main", "index": 0}]]}, "Microsoft Outlook19": {"main": [[{"node": "Microsoft Outlook5", "type": "main", "index": 0}]]}, "Move Binary Data": {"main": [[{"node": "Microsoft Outlook20", "type": "main", "index": 0}]]}, "Set": {"main": [[{"node": "Move Binary Data", "type": "main", "index": 0}]]}, "Microsoft Outlook20": {"main": [[{"node": "Sleep 0.8 second7", "type": "main", "index": 0}]]}, "Microsoft Outlook21": {"main": [[{"node": "Microsoft Outlook22", "type": "main", "index": 0}]]}, "Microsoft Outlook22": {"main": [[{"node": "Sleep 0.8 second6", "type": "main", "index": 0}]]}, "Microsoft Outlook23": {"main": [[{"node": "Microsoft Outlook11", "type": "main", "index": 0}]]}, "Sleep 0.8 second": {"main": [[{"node": "Microsoft Outlook17", "type": "main", "index": 0}]]}, "Sleep 0.8 second1": {"main": [[{"node": "Microsoft Outlook15", "type": "main", "index": 0}]]}, "Sleep 0.8 second2": {"main": [[{"node": "Microsoft Outlook1", "type": "main", "index": 0}]]}, "Sleep 0.8 second3": {"main": [[{"node": "Microsoft Outlook3", "type": "main", "index": 0}]]}, "Sleep 0.8 second4": {"main": [[{"node": "Microsoft Outlook19", "type": "main", "index": 0}]]}, "Sleep 0.8 second5": {"main": [[{"node": "Microsoft Outlook13", "type": "main", "index": 0}]]}, "Sleep 0.8 second6": {"main": [[{"node": "Microsoft Outlook23", "type": "main", "index": 0}]]}, "Sleep 0.8 second7": {"main": [[{"node": "Microsoft Outlook21", "type": "main", "index": 0}]]}, "Sleep 0.8 second8": {"main": [[{"node": "Microsoft Outlook6", "type": "main", "index": 0}]]}, "Sleep 0.8 second9": {"main": [[{"node": "Microsoft Outlook8", "type": "main", "index": 0}]]}, "Sleep 0.8 second10": {"main": [[{"node": "Microsoft Outlook10", "type": "main", "index": 0}]]}} |
AWSRekognition:Image:analyze | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "b1f09994-6b4a-4979-bfc4-ec27ba3003ff"}, {"parameters": {"type": "detectText", "binaryData": true, "additionalFields": {}}, "name": "AWS Rekognition", "type": "n8n-nodes-base.awsRekognition", "typeVersion": 1, "position": [700, 300], "credentials": {"aws": {"id": "124", "name": "AWS creds"}}, "id": "9dd43252-32fd-469a-9698-7f486fc51bb5"}, {"parameters": {"functionCode": "item = {\n json:{},\n binary:{\n data: {\n data: 'iVBORw0KGgoAAAANSUhEUgAAAdAAAABqCAMAAAA7pfCVAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAqUExURQAAADhNW/9tWv9tWjhNW/9tWv9tWjhNW6teWv9tWjhNWzhNW/9tWjhNW0y9HhoAAAAMdFJOUwDD4n+KTrBCECcoZqF2YcgAAAnPSURBVHja7Z3ZmqsgDIDLvti+/+tO9wKSBFCsdsjV+U7HavnJQhLwdDqgKCWEUOo05AfECX5+CRcD6sFFfWi+mNoxKr+D8450aOlBxepzXvRQ0kM6T36GhLsxPL/EcxD9NZ6D6PH8J85zED2a6DMlegzSgUScaRFjmA5rcLVQSolEa/lYvBxUQfXLXToxVPSYwqHoJ4p9h4oeRRQczUbGeOQADxjiOmR9OgLdfaQMbsVNVDjmJ0M/Ogbz+9ZU83OFZNxkaHSHzf02ziqagFEVI849Ks68CqoBdI+LyzLJJWzdALoHsbqBZz7q6QfUGsnY5SqMyclvMSpKX0UcsNBg+XnvQO10Z/kRJnszfTuh45maNp5b+lB5yYjsmowKfgk/cKqgRsRWUa5nl7xM2yTEDqajqpFnduL2WIdOF1BkX6slnH0Y3iP50UYHmkemiCB4ZZ79iLr377uPz5FUNFmwaOWKHe48VcTXdzzmcvkCUfFJnKhjJaZjBdWuagJoxBuvNKnthRDTDejTANljhUXiXFnycnD2T5/Xt7hhfMumOz0TLWFYt2ERhwRaX8LUQH+f0x3axHxAzuTj3qkXUD375zpBqGrcqueuF9oafSs0kip1uvebKE0vUhcpqIRCpS4q6t4D4lYMipx41bN4XQbqcyG1yU80NI3M1q18XnZba0ozMPj5EO2SMtKPyfqYp6v001jBG/fqpcrCkVBHN0QxBQudtTqt3xaXWZh1F5vr1m6nEZlR4yVjnq2DgVvCdEsUo5qygovWLBPyWZ+VS0BUrDw/amY+VDeB9m3ypnWjaEgKLnOhObPaN859B3lrbHmFVYD4dmQXUd6rNXo9vdFGiDdQzL92AnoLRW6nR6yfvCm3ZvguP7seUPQRV4zxUaCyN9BOybhyotQuvxWBwi0rxRbKTvKpY4xBBes3ULtEQ41k3aqor6r7ve5u2kIO1cYzx2xB+dLlzW4mog6SPZ/xNElJLD/SE5bgmwPNZSFsUktlJUFxWEhHac5Sy6YeCxgZ8foK5qLyZUZJs+oZ/eoHN8vK0uweC3zmF2ZqpZnSOLMVQJEg2mTLtLMJU1DN0k2hZ24qLCxfxo28XCsyHfsYHlNcOEEWm2auvdHXQROnhOhlPgdncw2qul+Yx7DopFsdHPxUs/ntyjSFo+E50JgMUUI/BA4HZTrOU3kpbIJTtmweMKVlGA8Nua0BKlFnQHRSxFkY/kr4uZgpJ1cSb1eW2EUFzYGO9YQU6FRRCrNgC1Eur5B8mW+uopJ/LEurtAoKMGIFnGuDBV2ZgFQ0mjxiM6BIxZoh+aDUO7GMRYyBWgbfyVcAZdU8A6Icto8aVVEBu0qVL1PGumu3AhpWrNlNiHGOC6J29t8S4hDGLLMbyUVAZdJRaq4iZY6ow6BxrHzMkdBHZDQxWXX07LHwt9/7KZukCxUvC+Oi8Kp8reV2o2l+o5clDwvjxOoy/CKG+c/QbERhr5xVs1y2RhfGSqGg1lOHbllkwqz+59AYpKnWo7XN1HKyyQQR5kRMgCjmDL6qoHMFSlx4uJHUpAEBXs0q24DCG3IV/bvaDBLZU7VNWdUjxpDWXVvTXAYBZdDPiKfMPZTmaDXLNfc/8/oO255AZ8sGhioOHN0wykR7aG60A53w1U/cY0GMcVELratOOmxx8JdBl4ETmi6CeVoCqKlKPZUBZfhqNph9lsyVF21aqM4Pb3KQm0FjWV+UWyhbfLAig9wMlGx98aG5J7yaaHOhONBtDuYzeCgLf1aaksm5OOzTVqCMNNoyuP+/AGoRoNgSQZp5OlwivUZZ3HIhUIv+jORP/L8wubImojRJRDnfJ2pBoOzUAWhJJ5P8zKj/EBT5CqA2A87LS1nELHsAlQUL2SDy+gfLFlYTUcostrhmDS4TfQ+gRT7482gatbllO3MzvUN7SizICqCgWkdIp5qwZy2grOTKSzTyCsNyO9I0EoxOWFbJp/7ObpdAkfJ2uDi1FQuTpUCL1rGfmzhE06Jql8W0VxV8tmFyPgZqygcPzQIESjp9AagsAxrXyCzIE233SoMc4Ds3K581A53KtBpQ630AVVCdWlEFbg74RHiX31YF7magjOjqydtchg75xiY3jUdfbVfJ/iNOrkz4cydh0rsS+8qNWlCWA6ViD7NjoGq2Ve8qJU1isz1hPHOhgCcBZXPdqx1MKLcRUGrw8ia5L9CiZUv0RwVrk3wEoxpWNKVtnMneRl5/XloPoOYLQGVBV5KNHpzefQltP6WngkLstCjGWXq8xk8CnQp2pSaWg8oHgYk6cioITKthoIKvkIxYAvSyI5NbUlBNfbtq3axEEM1ZanolCp/UWZUCXhQUmf0EReRDhdF3UbEL83Uo0SwxEij2lTVEW4BKXBt8PjHYGagkVTRTHYA3LBFjiBx8m58IFFB861QF0UWJhfxFRGKhE1BP9ZllnxoCQ78+F3B49I413uKWy4m2ALVoUXwCRrYz0JPET0iCelJVBqkuOulL15y2QRyaoVsj7lWABmOH9JWlK4jeQD3aAePhDrUUqS7d8JdmhzC3u7gRWPcE6sEGvrB+BnTlVQG15imWTgpLhOiEtk5Z9dwPyLVQVdlz976QOF0TPXhq7kC5bj3BpglovLHlc2XciOKbgHry8cAsP4M6xsOaHvvOy9/Qo+GSBPIjPTTT/1WBXpi8Ss6L3j+b7ptOGNo8Xwj0fiNfAjR5pmTbKXsrtZEV+9u6CXJgVpzhCM4xE7xeRUuBJubQU/v2YP0hgMYPgwKdmejkqdiVOGObnZ5ORMUwGwH6YcervWgjULwtF+366wiUnmdf44kdgIxsX3S8tn2lFShBFDkDUBKrxCVAKaL+9D0BjyhH3auqTeoSQCWiDazugHIcqC8HOiFAT9j2cPbVl+GWvESAo+sdvQJQjwyehbYTMjSBJE+0LUCBYs90gk61+aq5LaoFAHGPq4xzCaCxOsxwy5IDgcqA+mKg+DOd4h3hn4j4+++qpuuoFg+PS27i2VMg9+Ile0vGjiSDBx3DdrPezy+BFOV2JN3sYfKPhz/TaX6UmDSnPQivt7iNJ+0uEvMkIaXxp92In6R8PNW0m6ei3KgmgqnxLt+9idUD6I+JGEB/TLBXNlM+1I7hOxhStzzKHfINpJoX7zY88PtS/5U49T6bTKOdJny8Pf1wbLGwSJxHTHQ40TBRdR4W94AuFew3FJvuFR6ylvB8q5ni2+7mH9JFRe8vCbiK4N1euzNkUxVd2Jg7ZGeBbuf3EA75htHt+p6zIVsvXb5zBNmQDYkOB3pAEcPe/pofhd42PHK4BxUrCt8rOeQwyxfdtFV1yI61NKyVajG08yf0VCkhlBowy+UP8oj4tnqDbLEAAAAASUVORK5CYII=', // Base64 encoded binary data (required)\n mimeType: 'image/png',\n fileExtension: 'png',\n fileName: 'n8n-logo.png',\n }\n }\n}\n\nreturn [item];"}, "name": "Function", "type": "n8n-nodes-base.function", "typeVersion": 1, "position": [500, 300], "id": "1d29136d-934f-4913-bd1c-d34a2881c9c8"}] | {"Start": {"main": [[{"node": "Function", "type": "main", "index": 0}]]}, "Function": {"main": [[{"node": "AWS Rekognition", "type": "main", "index": 0}]]}} |
ExecuteCommand | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "596a5418-e61d-41ab-84eb-64e07630b23e"}, {"parameters": {"command": "=echo 'test' > /tmp/{{$node[\"Set\"].json[\"filename\"]}}"}, "name": "Execute Command", "type": "n8n-nodes-base.executeCommand", "typeVersion": 1, "position": [660, 300], "notesInFlow": true, "notes": "write file to /tmp", "id": "9c118fb2-edad-441a-b8a8-f1c843a37bd5"}, {"parameters": {"filePath": "=/tmp/{{$node[\"Set\"].json[\"filename\"]}}"}, "name": "Read Binary File", "type": "n8n-nodes-base.readBinaryFile", "typeVersion": 1, "position": [860, 300], "notesInFlow": true, "notes": "read file", "id": "af6e6941-e34e-4b5d-a236-3bccd5bd4cfd"}, {"parameters": {"values": {"string": [{"name": "filename", "value": "=filename{{Date.now()}}"}]}, "options": {}}, "name": "Set", "type": "n8n-nodes-base.set", "typeVersion": 1, "position": [450, 300], "notesInFlow": true, "notes": "generate filename", "id": "8864d17b-8310-4460-810c-d43da4e967ff"}, {"parameters": {"functionCode": "testData= 'dGVzdAo='\nif($node['Execute Command'].json['exitCode']!==0 || items[0].binary.data.data !== testData){\n throw new Error('Error Execute Command in node');\n}\nreturn items;"}, "name": "Function", "type": "n8n-nodes-base.function", "typeVersion": 1, "position": [1050, 300], "notesInFlow": true, "notes": "verify file content", "id": "0a60312c-4030-496b-ad24-3acebff5eca1"}, {"parameters": {"command": "=rm /tmp/{{$node[\"Set\"].json[\"filename\"]}}"}, "name": "Execute Command1", "type": "n8n-nodes-base.executeCommand", "typeVersion": 1, "position": [1250, 300], "notesInFlow": true, "notes": "remove file from /tmp", "id": "ede3e595-c571-4155-85bd-14e39fe78049"}] | {"Start": {"main": [[{"node": "Set", "type": "main", "index": 0}]]}, "Execute Command": {"main": [[{"node": "Read Binary File", "type": "main", "index": 0}]]}, "Set": {"main": [[{"node": "Execute Command", "type": "main", "index": 0}]]}, "Read Binary File": {"main": [[{"node": "Function", "type": "main", "index": 0}]]}, "Function": {"main": [[{"node": "Execute Command1", "type": "main", "index": 0}]]}} |
Ask a human | [{"id": "a60c8572-56c1-4bf3-8352-a6419a475887", "name": "Window Buffer Memory", "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", "position": [900, 760], "parameters": {}, "typeVersion": 1.1}, {"id": "b4f2e26c-903b-46b8-bd8b-110fd64de9e4", "name": "Not sure?", "type": "@n8n/n8n-nodes-langchain.toolWorkflow", "position": [1120, 760], "parameters": {"name": "dont_know_tool", "fields": {"values": [{"name": "chatInput", "stringValue": "={{ $('Chat Trigger').item.json.chatInput }}"}]}, "workflowId": "={{ $workflow.id}}", "description": "Use this tool if you don't know the answer to the user's question, or if you're not very confident about your answer."}, "typeVersion": 1}, {"id": "951cc691-b422-4ce6-901f-b7feb3afd1ad", "name": "Execute Workflow Trigger", "type": "n8n-nodes-base.executeWorkflowTrigger", "position": [540, 1360], "parameters": {}, "typeVersion": 1}, {"id": "194ba9c0-e256-449a-8da7-ac5339123a99", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [500, 1020], "parameters": {"color": 7, "width": 1118.3459011229047, "height": 775.3931210698682, "content": "### Sub-workflow: Custom tool\nThe agent above can call this workflow. It checks if the user has supplied an email address. If they haven't it prompts them to provide one. If they have, it messages a customer support channel for help."}, "typeVersion": 1}, {"id": "38c6b363-45a7-4e72-9e40-8c0df3cc480f", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [500, 460], "parameters": {"color": 7, "width": 927.5, "height": 486.5625, "content": "### Main workflow: AI agent using custom tool"}, "typeVersion": 1}, {"id": "0389315b-e48d-4b00-b9a1-899302b1b094", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [1060, 700], "parameters": {"color": 5, "width": 197.45572294791873, "height": 179.21380662202682, "content": "**This tool calls the sub-workflow below**"}, "typeVersion": 1}, {"id": "fb11064a-4cf5-4110-9e39-af24a3225164", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [700, 680], "parameters": {"color": 2, "width": 150, "height": 213.44323866265472, "content": "**Set your credentials**"}, "typeVersion": 1}, {"id": "d689021d-0a46-4dff-a01a-0b01ecdd198b", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [1020, 1180], "parameters": {"color": 2, "width": 178.0499248677781, "height": 250.57252651663197, "content": "**Set your credentials and Slack details**"}, "typeVersion": 1}, {"id": "0926cd61-c0b8-4bae-ae65-9afd130d17cd", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [340, 520], "parameters": {"color": 4, "width": 185.9375, "height": 214.8397420554627, "content": "## Try it out\n\nSelect **Chat** at the bottom and enter:\n\n_Hi! Please respond to this as if you don't know the answer to my query._"}, "typeVersion": 1}, {"id": "cde69dfe-252e-4a05-8d56-fa79431df5d8", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [1580, 1600], "parameters": {"height": 144.50520156238127, "content": "## Next steps\n\nLearn more about [Advanced AI in n8n](https://docs.n8n.io/advanced-ai/)"}, "typeVersion": 1}, {"id": "927b775a-47f6-4067-a1a5-5f13dea28e45", "name": "Chat Trigger", "type": "@n8n/n8n-nodes-langchain.chatTrigger", "position": [600, 520], "webhookId": "785e0c0c-12e5-4249-9abe-47bb131975cb", "parameters": {}, "typeVersion": 1}, {"id": "971e7b90-c2d8-4292-9da8-732d7d399f04", "name": "Prompt the user to provide an email", "type": "n8n-nodes-base.code", "position": [1060, 1520], "parameters": {"jsCode": "response = {\"response\":\"I'm sorry I don't know the answer. Please repeat your question and include your email address so I can request help.\"};\nreturn response;"}, "typeVersion": 2}, {"id": "6f5a21b3-c145-46c8-8e69-660100c4a6fc", "name": "Confirm that we've messaged a human", "type": "n8n-nodes-base.code", "position": [1300, 1260], "parameters": {"jsCode": "response = {\"response\": \"Thank you for getting in touch. I've messaged a human to help.\"}\nreturn response;"}, "typeVersion": 2}, {"id": "8b17da5e-e392-4028-91b0-bc02d34e46ed", "name": "AI Agent", "type": "@n8n/n8n-nodes-langchain.agent", "position": [820, 520], "parameters": {"options": {"systemMessage": "Try to answer the user's question. When you can't answer, or you're not confident of the answer, use the appropriate tool. When you use the dont_know_tool, respond with the message from the tool."}}, "typeVersion": 1.2}, {"id": "990ecd3b-6aa0-4b17-8d01-d606b9164fa8", "name": "Check if user has provided email", "type": "n8n-nodes-base.if", "position": [760, 1360], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "5e21e7c5-db60-4111-bb17-c289ae0fc159", "operator": {"type": "string", "operation": "regex"}, "leftValue": "={{ $('Execute Workflow Trigger').item.json.chatInput }}", "rightValue": "/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9_-]+)/gi"}]}}, "typeVersion": 2}, {"id": "d14da0ae-06ca-422b-b5b6-e7759e74c787", "name": "Message Slack for help", "type": "n8n-nodes-base.slack", "position": [1060, 1260], "parameters": {"text": "={{ \"A user had a question the bot couldn't answer. Here's their message: \" + $('Execute Workflow Trigger').item.json.chatInput }}", "select": "channel", "channelId": {"__rl": true, "mode": "name", "value": ""}, "otherOptions": {}}, "typeVersion": 2.1}, {"id": "278391c7-6945-495e-a4f1-74fb8fcc3549", "name": "GPT4", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [740, 740], "parameters": {"model": "gpt-4", "options": {"temperature": 0.2}}, "typeVersion": 1}] | {"GPT4": {"ai_languageModel": [[{"node": "AI Agent", "type": "ai_languageModel", "index": 0}]]}, "Not sure?": {"ai_tool": [[{"node": "AI Agent", "type": "ai_tool", "index": 0}]]}, "Chat Trigger": {"main": [[{"node": "AI Agent", "type": "main", "index": 0}]]}, "Window Buffer Memory": {"ai_memory": [[{"node": "AI Agent", "type": "ai_memory", "index": 0}]]}, "Message Slack for help": {"main": [[{"node": "Confirm that we've messaged a human", "type": "main", "index": 0}]]}, "Execute Workflow Trigger": {"main": [[{"node": "Check if user has provided email", "type": "main", "index": 0}]]}, "Check if user has provided email": {"main": [[{"node": "Message Slack for help", "type": "main", "index": 0}], [{"node": "Prompt the user to provide an email", "type": "main", "index": 0}]]}} |
Dynamically generate HTML page from user request using OpenAI Structured Output | [{"id": "b1d9659f-4cd0-4f87-844d-32b2af1dcf13", "name": "Respond to Webhook", "type": "n8n-nodes-base.respondToWebhook", "position": [2160, 380], "parameters": {"options": {"responseHeaders": {"entries": [{"name": "Content-Type", "value": "text/html; charset=UTF-8"}]}}, "respondWith": "text", "responseBody": "={{ $json.html }}"}, "typeVersion": 1.1}, {"id": "5ca8ad3e-7702-4f07-af24-d38e94fdc4ec", "name": "Open AI - Using Structured Output", "type": "n8n-nodes-base.httpRequest", "position": [1240, 380], "parameters": {"url": "https://api.openai.com/v1/chat/completions", "method": "POST", "options": {}, "jsonBody": "={\n \"model\": \"gpt-4o-2024-08-06\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a user interface designer and copy writter. Your job is to help users visualize their website ideas. You design elegant and simple webs, with professional text. You use Tailwind framework\"\n },\n {\n \"role\": \"user\",\n \"content\": \"{{ $json.query.query }}\"\n }\n ],\n \"response_format\":\n{\n \"type\": \"json_schema\",\n \"json_schema\": {\n \"name\": \"ui\",\n \"description\": \"Dynamically generated UI\",\n \"strict\": true,\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of the UI component\",\n \"enum\": [\n \"div\",\n \"span\",\n \"a\",\n \"p\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n \"ul\",\n \"ol\",\n \"li\",\n \"img\",\n \"button\",\n \"input\",\n \"textarea\",\n \"select\",\n \"option\",\n \"label\",\n \"form\",\n \"table\",\n \"thead\",\n \"tbody\",\n \"tr\",\n \"th\",\n \"td\",\n \"nav\",\n \"header\",\n \"footer\",\n \"section\",\n \"article\",\n \"aside\",\n \"main\",\n \"figure\",\n \"figcaption\",\n \"blockquote\",\n \"q\",\n \"hr\",\n \"code\",\n \"pre\",\n \"iframe\",\n \"video\",\n \"audio\",\n \"canvas\",\n \"svg\",\n \"path\",\n \"circle\",\n \"rect\",\n \"line\",\n \"polyline\",\n \"polygon\",\n \"g\",\n \"use\",\n \"symbol\"\n]\n },\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label of the UI component, used for buttons or form fields\"\n },\n \"children\": {\n \"type\": \"array\",\n \"description\": \"Nested UI components\",\n \"items\": {\n \"$ref\": \"#\"\n }\n },\n \"attributes\": {\n \"type\": \"array\",\n \"description\": \"Arbitrary attributes for the UI component, suitable for any element using Tailwind framework\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the attribute, for example onClick or className\"\n },\n \"value\": {\n \"type\": \"string\",\n \"description\": \"The value of the attribute using the Tailwind framework classes\"\n }\n },\n \"additionalProperties\": false,\n \"required\": [\"name\", \"value\"]\n }\n }\n },\n \"required\": [\"type\", \"label\", \"children\", \"attributes\"],\n \"additionalProperties\": false\n }\n }\n}\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "predefinedCredentialType", "headerParameters": {"parameters": [{"name": "Content-Type", "value": "application/json"}]}, "nodeCredentialType": "openAiApi"}, "credentials": {"openAiApi": {"id": "WqzqjezKh8VtxdqA", "name": "OpenAi account - Baptiste"}}, "typeVersion": 4.2}, {"id": "24e5ca73-a3b3-4096-8c66-d84838d89b0c", "name": "OpenAI - JSON to HTML", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [1420, 380], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "GPT-4O-MINI"}, "options": {"temperature": 0.2}, "messages": {"values": [{"role": "system", "content": "You convert a JSON to HTML. \nThe JSON output has the following fields:\n- html: the page HTML\n- title: the page title"}, {"content": "={{ $json.choices[0].message.content }}"}]}, "jsonOutput": true}, "credentials": {"openAiApi": {"id": "WqzqjezKh8VtxdqA", "name": "OpenAi account - Baptiste"}}, "typeVersion": 1.3}, {"id": "c50bdc84-ba59-4f30-acf7-496cee25068d", "name": "Format the HTML result", "type": "n8n-nodes-base.html", "position": [1940, 380], "parameters": {"html": "<!DOCTYPE html>\n\n<html>\n<head>\n <meta charset=\"UTF-8\" />\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <title>{{ $json.message.content.title }}</title>\n</head>\n<body>\n{{ $json.message.content.html }}\n</body>\n</html>"}, "typeVersion": 1.2}, {"id": "193093f4-b1ce-4964-ab10-c3208e343c69", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [1134, 62], "parameters": {"color": 7, "width": 638, "height": 503, "content": "## Generate HTML from user query\n\n**HTTP Request node**\n- Send the user query to OpenAI, with a defined JSON response format - *using HTTP Request node as it has not yet been implemented in the OpenAI nodes*\n- The response format is inspired by the [Structured Output defined in OpenAI Introduction post](https://openai.com/index/introducing-structured-outputs-in-the-api)\n- The output is a JSON containing HTML components and attributed\n\n\n**OpenAI node**\n- Format the response from the previous node from JSON format to HTML format"}, "typeVersion": 1}, {"id": "0371156a-211f-4d92-82b1-f14fe60d4b6b", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [0, 60], "parameters": {"color": 7, "width": 768, "height": 503, "content": "## Workflow: Dynamically generate an HTML page from a user request using OpenAI Structured Output\n\n**Overview**\n- This workflow is a experiment to build HTML pages from a user input using the new Structured Output from OpenAI.\n- The Structured Output could be used in a variety of cases. Essentially, it guarantees the output from the GPT will follow a defined structure (JSON object).\n- It uses Tailwind CSS to make it slightly nicer, but any\n\n**How it works**\n- Once active, go to the production URL and add what you'd like to build as the parameter \"query\"\n- Example: https://production_url.com?query=a%20signup%20form\n- OpenAI nodes will first output the UI as a JSON then convert it to HTML\n- Finally, the response is integrated in a HTML container and rendered to the user\n\n**Further thoughts**\n- Results are not yet amazing, it is hard to see the direct value of such an experiment\n- But it showcase the potential of the Structured Output. Being able to guarantee the output format is key to build robust AI applications."}, "typeVersion": 1}, {"id": "06380781-5189-4d99-9ecd-d8913ce40fd5", "name": "Webhook", "type": "n8n-nodes-base.webhook", "position": [820, 380], "webhookId": "d962c916-6369-431a-9d80-af6e6a50fdf5", "parameters": {"path": "d962c916-6369-431a-9d80-af6e6a50fdf5", "options": {"allowedOrigins": "*"}, "responseMode": "responseNode"}, "typeVersion": 2}] | {"Webhook": {"main": [[{"node": "Open AI - Using Structured Output", "type": "main", "index": 0}]]}, "OpenAI - JSON to HTML": {"main": [[{"node": "Format the HTML result", "type": "main", "index": 0}]]}, "Format the HTML result": {"main": [[{"node": "Respond to Webhook", "type": "main", "index": 0}]]}, "Open AI - Using Structured Output": {"main": [[{"node": "OpenAI - JSON to HTML", "type": "main", "index": 0}]]}} |
NeurochainAI Basic API Integration | [{"id": "da34bd1a-4e4e-4133-acad-939d0cc96596", "name": "Telegram Trigger", "type": "n8n-nodes-base.telegramTrigger", "position": [-1740, 880], "webhookId": "05885608-5344-4dcf-81ad-4550b9a01241", "parameters": {"updates": ["*"], "additionalFields": {}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.1}, {"id": "3b3f4b00-6b3b-4346-8fcc-7ab75bcfe838", "name": "Code", "type": "n8n-nodes-base.code", "notes": "Extract the URL from the previous node", "position": [80, 260], "parameters": {"jsCode": "// O valor vem como um array com uma string, ent\u00e3o precisamos pegar o primeiro item do array\nconst rawUrl = $json.choices[0].text;\n\n// Remover colchetes e aspas (se existirem) e pegar o primeiro elemento do array\nconst imageUrl = JSON.parse(rawUrl)[0];\n\nreturn {\n json: {\n imageUrl: imageUrl\n }\n};"}, "notesInFlow": true, "typeVersion": 2}, {"id": "ccb91a15-96b5-42aa-a6ae-ff7ae79d1e8f", "name": "HTTP Request3", "type": "n8n-nodes-base.httpRequest", "position": [240, 260], "parameters": {"url": "={{ $json.imageUrl }}", "options": {}}, "typeVersion": 4.2}, {"id": "588899b6-a68e-407e-b12f-f05c205674c5", "name": "Telegram2", "type": "n8n-nodes-base.telegram", "position": [-520, 500], "parameters": {"text": "\u231b", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "replyMarkup": "inlineKeyboard", "additionalFields": {"appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "e1534b69-d93d-4e8b-a3c4-adbc17c1dacd", "name": "Telegram1", "type": "n8n-nodes-base.telegram", "position": [440, 260], "parameters": {"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "operation": "sendPhoto", "binaryData": true, "additionalFields": {"caption": "=*Prompt:* `{{ $('Code1').item.json.cleanMessage }}`", "parse_mode": "Markdown", "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "88ba4ced-bdd0-408e-94e1-9e54ed4d1b5d", "name": "Telegram4", "type": "n8n-nodes-base.telegram", "position": [620, 260], "parameters": {"chatId": "={{ $('Telegram2').item.json.result.chat.id }}", "messageId": "={{ $('Telegram2').item.json.result.message_id }}", "operation": "deleteMessage"}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "251a026e-ebfa-44f5-9c80-f30e5c142e23", "name": "Telegram3", "type": "n8n-nodes-base.telegram", "position": [260, 700], "parameters": {"text": "={{ $json.error.message }}", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "replyMarkup": "inlineKeyboard", "inlineKeyboard": {"rows": [{"row": {"buttons": [{"text": "\ud83d\udd04 Retry", "additionalFields": {"callback_data": "=response= Fluxretry: {{ $('Code1').item.json.cleanMessage }}"}}]}}]}, "additionalFields": {"appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "fb71a62a-9cf8-4abf-baa4-885ae4b1a290", "name": "Telegram5", "type": "n8n-nodes-base.telegram", "position": [480, 700], "parameters": {"chatId": "={{ $('Telegram2').item.json.result.chat.id }}", "messageId": "={{ $('Telegram2').item.json.result.message_id }}", "operation": "deleteMessage"}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "0f9bcdf0-0008-447a-900c-6afe5b9d53fe", "name": "Telegram6", "type": "n8n-nodes-base.telegram", "position": [260, 520], "parameters": {"text": "=*Prompt too short*", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "replyMarkup": "inlineKeyboard", "additionalFields": {"parse_mode": "Markdown", "appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "d805548a-7379-456c-9bc3-f5fafeb86aed", "name": "Telegram7", "type": "n8n-nodes-base.telegram", "position": [480, 520], "parameters": {"chatId": "={{ $('Telegram2').item.json.result.chat.id }}", "messageId": "={{ $('Telegram2').item.json.result.message_id }}", "operation": "deleteMessage"}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "a3e521a3-aff0-4d31-9a69-626f70f86ae2", "name": "NeurochainAI - REST API", "type": "n8n-nodes-base.httpRequest", "onError": "continueErrorOutput", "position": [-680, 1280], "parameters": {"url": "https://ncmb.neurochain.io/tasks/message", "method": "POST", "options": {}, "jsonBody": "={\n \"model\": \"Meta-Llama-3.1-8B-Instruct-Q6_K.gguf\",\n \"prompt\": \"You must respond directly to the user's message, and the message the user sent you is the following message: {{ $('Telegram Trigger').item.json.message.text }}\",\n \"max_tokens\": 1024,\n \"temperature\": 0.6,\n \"top_p\": 0.95,\n \"frequency_penalty\": 0,\n \"presence_penalty\": 1.1\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "headerParameters": {"parameters": [{"name": "Authorization", "value": "=Bearer YOUR-API-KEY-HERE"}, {"name": "Content-Type", "value": "application/json"}]}}, "typeVersion": 4.2, "alwaysOutputData": false}, {"id": "5fea3a8b-3e1b-4c69-b734-3f9dc7647e4b", "name": "TYPING - ACTION", "type": "n8n-nodes-base.telegram", "position": [-1100, 1280], "parameters": {"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "operation": "sendChatAction"}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "ca183e3d-2bef-4d80-bbb7-c712a0290b2b", "name": "AI Response", "type": "n8n-nodes-base.telegram", "position": [-360, 1000], "parameters": {"text": "={{ $json.choices[0].text }}", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "additionalFields": {"parse_mode": "Markdown", "appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "27e65f30-e58e-457d-b3b7-2b74267554e1", "name": "No response", "type": "n8n-nodes-base.telegram", "position": [-140, 1240], "parameters": {"text": "=*No response from worker*", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "additionalFields": {"parse_mode": "Markdown", "appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "02cf4dfa-558f-4968-ad09-19f1e40735b0", "name": "Prompt too short", "type": "n8n-nodes-base.telegram", "position": [-140, 1400], "parameters": {"text": "=*Prompt too short*", "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}", "replyMarkup": "inlineKeyboard", "additionalFields": {"parse_mode": "Markdown", "appendAttribution": false, "reply_to_message_id": "={{ $('Telegram Trigger').item.json.message.message_id }}"}}, "credentials": {"telegramApi": {"id": "VPtf3hBnwGucAQtu", "name": "TEMPLATE"}}, "typeVersion": 1.2}, {"id": "943d31e4-3745-49ea-9669-8a560a486cc4", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-400, 1220], "parameters": {"color": 3, "width": 460.4333621829785, "height": 347.9769162173868, "content": "## ERROR"}, "typeVersion": 1}, {"id": "6b5d142f-8d8c-493f-81e7-cedb4e95cd31", "name": "Switch2", "type": "n8n-nodes-base.switch", "position": [-380, 1380], "parameters": {"rules": {"values": [{"conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"operator": {"type": "string", "operation": "equals"}, "leftValue": "={{ $json.error.message }}", "rightValue": "=500 - \"{\\\"error\\\":true,\\\"msg\\\":\\\"No response from worker\\\"}\""}]}}, {"conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "ef851d57-0618-4fe7-8469-a30971a05ee5", "operator": {"type": "string", "operation": "notEquals"}, "leftValue": "{{ $json.error.message }}", "rightValue": "400 - \"{\\\"error\\\":true,\\\"msg\\\":\\\"Prompt string is invalid\\\"}\""}]}}]}, "options": {}}, "typeVersion": 3.2}, {"id": "77651cb7-2530-46b2-89eb-7ac07f39a3ba", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [-400, 860], "parameters": {"color": 4, "width": 459.0810102677459, "height": 350.68162004785273, "content": "## SUCCESS\nThis node will send the AI \u200b\u200bresponse directly to the Telegram chat."}, "typeVersion": 1}, {"id": "5dce8414-fe7a-450a-a414-553d3e5e01cd", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [-830.8527430805248, 861.5987888475245], "parameters": {"color": 5, "width": 411.78262099325127, "height": 705.0354263931183, "content": "## HTTP REQUEST\n\nReplace **MODEL** with the desired AI model from the NeurochainAI dashboard.\n\nReplace YOUR-API-KEY-HERE with your actual NeurochainAI API key.\n\n**Models:**\nMeta-Llama-3.1-8B-Instruct-Q8_0.gguf\nMeta-Llama-3.1-8B-Instruct-Q6_K.gguf\nMistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom-io\nMistral-7B-Instruct-v0.2-GPTQ-Neurochain-custom\nMistral-7B-OpenOrca-GPTQ\nMistral-7B-Instruct-v0.1-gguf-q8_0.gguf\nMistral-7B-Instruct-v0.2-GPTQ\ningredient-extractor-mistral-7b-instruct-v0.1-gguf-q8_0.gguf"}, "typeVersion": 1}, {"id": "3540e1fa-01f8-4b5e-ad7a-1b1c5cd90d08", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [-840, 220], "parameters": {"color": 6, "width": 236.80242230495116, "height": 535.7153791682382, "content": "## This node removes the /flux prefix."}, "typeVersion": 1}, {"id": "6720b734-c0ae-4c88-adb6-3931467c780d", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [220, 444], "parameters": {"color": 3, "width": 593.1328365275054, "height": 403.9345258807414, "content": "## ERROR"}, "typeVersion": 1}, {"id": "30332278-399d-4c8f-8470-dfb967764455", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [-320, 220], "parameters": {"color": 5, "width": 384.60321058533617, "height": 538.7613862505775, "content": "## HTTP REQUEST\n\nReplace **MODEL** with the desired AI model from the NeurochainAI dashboard.\n\nReplace YOUR-API-KEY-HERE with your actual NeurochainAI API key.\n\n**Models:**\nsuper-flux1-schnell-gguf\nflux1-schnell-gguf"}, "typeVersion": 1}, {"id": "09f17d6a-6229-49ad-b77b-243712552f2b", "name": "Code1", "type": "n8n-nodes-base.code", "position": [-780, 480], "parameters": {"jsCode": "// Acessa a mensagem original que est\u00e1 em $json.message.text\nconst userMessage = $json.message.text;\n\n// Remover o prefixo '/flux' e qualquer espa\u00e7o extra ap\u00f3s o comando\nconst cleanMessage = userMessage.replace(/^\\/flux\\s*/, '');\n\n// Retornar a mensagem limpa\nreturn {\n json: {\n cleanMessage: cleanMessage\n }\n};"}, "typeVersion": 2}, {"id": "0c809796-9776-4238-94b8-0779ad390bc6", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [-580, 220], "parameters": {"height": 535.7153791682384, "content": "## This node sends an emoji to indicate that the prompt is being processed."}, "typeVersion": 1}, {"id": "19043710-a61a-46d0-9ab9-bcdf9c94f800", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "position": [220, 80], "parameters": {"color": 4, "width": 596.5768511548468, "height": 350.68162004785273, "content": "## SUCCESS\nThis node will send the AI \u200b\u200bresponse directly to the Telegram chat."}, "typeVersion": 1}, {"id": "e5715001-75a3-4da3-84bb-9aad193fe680", "name": "Switch", "type": "n8n-nodes-base.switch", "position": [-1420, 880], "parameters": {"rules": {"values": [{"outputKey": "Flux", "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose"}, "combinator": "and", "conditions": [{"id": "f5df9de6-0650-42e4-9a6e-8d1becf16c51", "operator": {"type": "string", "operation": "startsWith"}, "leftValue": "={{ $json.message.text }}", "rightValue": "/flux"}]}, "renameOutput": true}, {"outputKey": "text", "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose"}, "combinator": "and", "conditions": [{"id": "a49ecf63-3f68-4e21-a015-d0cbc227c230", "operator": {"type": "string", "operation": "contains"}, "leftValue": "={{ $json.message.text }}", "rightValue": "@NCNAI_BOT"}]}, "renameOutput": true}, {"outputKey": "DM Text", "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": false, "typeValidation": "loose"}, "combinator": "and", "conditions": [{"id": "d5ac0c9f-858a-4040-b72e-ae7b522ff60e", "operator": {"name": "filter.operator.equals", "type": "string", "operation": "equals"}, "leftValue": "={{ $json.message.chat.type }}", "rightValue": "private"}]}, "renameOutput": true}]}, "options": {"ignoreCase": true}, "looseTypeValidation": true}, "typeVersion": 3.2}, {"id": "0ebdea59-8518-4078-b07a-9aa24c5e79b5", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [-1840, 200], "parameters": {"width": 623.6530631885605, "height": 648.96526541807, "content": "## Instructions for Using the Template\nFollow these steps to set up and use this template:\n\n**Create a Telegram Bot**:\n- Open Telegram and search for BotFather.\n- Use the ``/newbot`` command to create your bot.\n- Follow the prompts and copy the Token provided at the end.\n-------------\n**Obtain a NeurochainAI API Key:**\n\n- Log in to the NeurochainAI Dashboard.\n- Generate an **API Key** under the Inference As Service section.\n- Ensure your account has sufficient credits for usage.\n-------------\n **Configure Telegram Nodes:**\n- Locate all Telegram nodes in the workflow and add your Telegram Bot Token to each node's credentials.\n-------------\n**Configure HTTP Request Nodes:**\n\n- Identify the NeurochainAI - Rest API and NeurochainAI - Flux nodes in the workflow.\nIn each node:\n- Enter your desired model in the Model field.\n- Replace ``YOUR-API-KEY-HERE`` with your API Key in the headers or configuration section.\n-------------\n**Save and Test:**\n- Save the workflow in N8N.\n- Test the workflow by interacting with your Telegram bot to trigger text and image generation tasks."}, "typeVersion": 1}, {"id": "06642d6b-f8e2-48b6-87e3-5f51af75d357", "name": "NeurochainAI - Flux", "type": "n8n-nodes-base.httpRequest", "onError": "continueErrorOutput", "position": [-180, 540], "parameters": {"url": "https://ncmb.neurochain.io/tasks/tti", "method": "POST", "options": {}, "jsonBody": "={\n \"model\": \"flux1-schnell-gguf\",\n \"prompt\": \"Generate an image that matches exactly this: {{ $('Code1').item.json.cleanMessage }}\",\n \"size\": \"1024x1024\",\n \"quality\": \"standard\",\n \"n\": 1,\n \"seed\": {{ Math.floor(Math.random() * 999) + 1 }}\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "headerParameters": {"parameters": [{"name": "Authorization", "value": "=Bearer YOUR-API-KEY-HERE"}, {"name": "Content-Type", "value": "application/json"}]}}, "typeVersion": 4.2, "alwaysOutputData": false}, {"id": "92820069-3e65-4385-8b79-9b04dd1d3b03", "name": "Switch1", "type": "n8n-nodes-base.switch", "position": [100, 600], "parameters": {"rules": {"values": [{"conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"operator": {"type": "string", "operation": "equals"}, "leftValue": "={{ $json.error.message }}", "rightValue": "400 - \"{\\\"error\\\":true,\\\"msg\\\":\\\"Prompt string is invalid\\\"}\""}]}}, {"conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "ef851d57-0618-4fe7-8469-a30971a05ee5", "operator": {"type": "string", "operation": "notEquals"}, "leftValue": "{{ $json.error.message }}", "rightValue": "400 - \"{\\\"error\\\":true,\\\"msg\\\":\\\"Prompt string is invalid\\\"}\""}]}}]}, "options": {}}, "typeVersion": 3.2}] | {"Code": {"main": [[{"node": "HTTP Request3", "type": "main", "index": 0}]]}, "Code1": {"main": [[{"node": "Telegram2", "type": "main", "index": 0}]]}, "Switch": {"main": [[{"node": "Code1", "type": "main", "index": 0}], [{"node": "TYPING - ACTION", "type": "main", "index": 0}], [{"node": "TYPING - ACTION", "type": "main", "index": 0}]]}, "Switch1": {"main": [[{"node": "Telegram6", "type": "main", "index": 0}], [{"node": "Telegram3", "type": "main", "index": 0}]]}, "Switch2": {"main": [[{"node": "No response", "type": "main", "index": 0}], [{"node": "Prompt too short", "type": "main", "index": 0}]]}, "Telegram1": {"main": [[{"node": "Telegram4", "type": "main", "index": 0}]]}, "Telegram2": {"main": [[{"node": "NeurochainAI - Flux", "type": "main", "index": 0}]]}, "Telegram3": {"main": [[{"node": "Telegram5", "type": "main", "index": 0}]]}, "Telegram6": {"main": [[{"node": "Telegram7", "type": "main", "index": 0}]]}, "HTTP Request3": {"main": [[{"node": "Telegram1", "type": "main", "index": 0}]]}, "TYPING - ACTION": {"main": [[{"node": "NeurochainAI - REST API", "type": "main", "index": 0}]]}, "Telegram Trigger": {"main": [[{"node": "Switch", "type": "main", "index": 0}]]}, "NeurochainAI - Flux": {"main": [[{"node": "Code", "type": "main", "index": 0}], [{"node": "Switch1", "type": "main", "index": 0}]]}, "NeurochainAI - REST API": {"main": [[{"node": "AI Response", "type": "main", "index": 0}], [{"node": "Switch2", "type": "main", "index": 0}]]}} |
Agent:Conversational | [{"parameters": {"options": {"temperature": 0}}, "id": "b8fb087e-fb91-4b67-b1fe-7c8f94db59bc", "name": "OpenAI Chat Model1", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "typeVersion": 1, "position": [1000, 580], "credentials": {"openAiApi": {"id": "Zak03cqeLUOsgkFI", "name": "OpenAi account"}}, "notes": "IGNORED_PROPERTIES=messages"}, {"parameters": {}, "id": "0ccb184e-0fd7-4da4-a25c-2b95e0793e8b", "name": "Calculator1", "type": "@n8n/n8n-nodes-langchain.toolCalculator", "typeVersion": 1, "position": [1160, 580]}, {"parameters": {}, "id": "e0db9899-2439-4662-a212-738d48cd08d8", "name": "When clicking \"Test workflow\"", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [800, 420]}, {"parameters": {"promptType": "define", "text": "What is the result of 30 + (10002200 / 100)? Only respond with a number.", "options": {"returnIntermediateSteps": true}}, "id": "5f23aaf0-0649-4e26-926d-9bdf59e89aa7", "name": "AI Agent1", "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 1.4, "position": [980, 420]}] | {"OpenAI Chat Model1": {"ai_languageModel": [[{"node": "AI Agent1", "type": "ai_languageModel", "index": 0}]]}, "Calculator1": {"ai_tool": [[{"node": "AI Agent1", "type": "ai_tool", "index": 0}]]}, "When clicking \"Test workflow\"": {"main": [[{"node": "AI Agent1", "type": "main", "index": 0}]]}} |
MQTT:sendMessage | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "850eb506-8c40-4257-92f9-13b39588d01a"}, {"parameters": {"topic": "TestTopic", "sendInputData": false, "message": "=MQTT-message{{Date.now()}}", "options": {"qos": 0}}, "name": "MQTT qos:1", "type": "n8n-nodes-base.mqtt", "typeVersion": 1, "position": [450, 160], "credentials": {"mqtt": {"id": "131", "name": "MQTT creds"}}, "id": "af2b9c5f-2b44-43d6-852f-436ebfc72c3c"}, {"parameters": {"topic": "TestTopic", "sendInputData": false, "message": "=MQTT-message{{Date.now()}}", "options": {"qos": 1}}, "name": "MQTT1 qos:0", "type": "n8n-nodes-base.mqtt", "typeVersion": 1, "position": [450, 310], "credentials": {"mqtt": {"id": "131", "name": "MQTT creds"}}, "id": "37d6e4f3-b06b-4bb3-8f68-ca54de4e41a9"}, {"parameters": {"topic": "TestTopic", "options": {"qos": 2}}, "name": "MQTT2 qos:2", "type": "n8n-nodes-base.mqtt", "typeVersion": 1, "position": [600, 450], "credentials": {"mqtt": {"id": "131", "name": "MQTT creds"}}, "id": "6e4693bb-23e5-4622-aa4f-2e93ce916f86"}, {"parameters": {"functionCode": "items = [\n {\n json:{\n \"message\":`MQTT-item-message${Date.now()}`\n }\n }\n]\nreturn items;"}, "name": "Function", "type": "n8n-nodes-base.function", "typeVersion": 1, "position": [450, 450], "id": "37ef3107-c80c-4bad-a5d6-3d9a349ca76a"}] | {"Start": {"main": [[{"node": "MQTT qos:1", "type": "main", "index": 0}, {"node": "MQTT1 qos:0", "type": "main", "index": 0}, {"node": "Function", "type": "main", "index": 0}]]}, "Function": {"main": [[{"node": "MQTT2 qos:2", "type": "main", "index": 0}]]}} |
Hacker News to Video Template - AlexK1919 | [{"id": "c777c41b-842d-4504-a1a0-ccbb034a0fdd", "name": "When clicking \u2018Test workflow\u2019", "type": "n8n-nodes-base.manualTrigger", "position": [-320, 300], "parameters": {}, "typeVersion": 1}, {"id": "74fafd7c-55a4-46ec-b4a8-33d46f2b5b54", "name": "Hacker News", "type": "n8n-nodes-base.hackerNews", "position": [-20, 300], "parameters": {"resource": "all", "additionalFields": {}}, "typeVersion": 1}, {"id": "9cd87fd2-6a38-463a-a22e-e0c34910818f", "name": "Loop Over Items", "type": "n8n-nodes-base.splitInBatches", "position": [440, 300], "parameters": {"options": {}}, "typeVersion": 3}, {"id": "611b24cd-558b-4025-a0a8-ea355ba61988", "name": "OpenAI Chat Model3", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [720, 580], "parameters": {"options": {}}, "typeVersion": 1}, {"id": "f814682c-cf6f-49a8-8ea0-48fbc64a3ebe", "name": "HTTP Request1", "type": "@n8n/n8n-nodes-langchain.toolHttpRequest", "position": [900, 580], "parameters": {"url": "={{ $json.url }}", "toolDescription": "grab the article for the ai agent to use"}, "typeVersion": 1.1}, {"id": "2a4bcf69-23f0-440d-a3b0-c8261e153c62", "name": "Structured Output Parser", "type": "@n8n/n8n-nodes-langchain.outputParserStructured", "position": [1080, 580], "parameters": {"schemaType": "manual", "inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"summary\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"related\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n \"image urls\": {\n\t\t\t\"type\": \"string\"\n }\n\t}\n}"}, "typeVersion": 1.2}, {"id": "83c3b8f0-8d67-48a2-a5ce-b777ea1d7b32", "name": "Upload to Minio", "type": "n8n-nodes-base.s3", "position": [4240, 1080], "parameters": {"operation": "upload", "bucketName": "=", "additionalFields": {"grantRead": true, "parentFolderKey": "="}}, "typeVersion": 1}, {"id": "05b972ff-ccab-415b-8787-aafabb3b7292", "name": "News1", "type": "n8n-nodes-base.set", "position": [2180, 320], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "ec8013d5-84b5-43c8-abcb-6986ef15939d", "name": "property_name", "type": "string", "value": "={{ $json.message.content['Article Title'] }}"}, {"id": "4d91c4fc-12a2-4fe2-a58e-02284314e1de", "name": "property_text", "type": "string", "value": "={{ $json.message.content['Article Blurb'] }}"}, {"id": "cad2b795-8b71-415f-a100-700d9ec62bbd", "name": "property_image_url", "type": "string", "value": "={{ $('If Topic').item.json.output['image urls'] }}"}]}}, "typeVersion": 3.4}, {"id": "d175d366-e672-4452-b78e-a06336ef242b", "name": "Leo - Improve Prompt", "type": "n8n-nodes-base.httpRequest", "position": [2720, 100], "parameters": {"url": "https://cloud.leonardo.ai/api/rest/v1/prompt/improve", "method": "POST", "options": {"response": {"response": {"fullResponse": true}}}, "jsonBody": "={\n \"prompt\": \"{{ $('Article Prep').item.json.message.content['Image Prompt 1'] }}\"\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "accept", "value": "application/json"}]}}, "typeVersion": 4.2}, {"id": "d8da7879-1a67-4da1-86db-f70e50b4e9da", "name": "Leo - Get imageId", "type": "n8n-nodes-base.httpRequest", "position": [3320, 100], "parameters": {"url": "=https://cloud.leonardo.ai/api/rest/v1/generations/{{ $json.body.sdGenerationJob.generationId }}", "options": {"response": {"response": {"fullResponse": true}}}, "sendHeaders": true, "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "content-type", "value": "application/json"}]}}, "typeVersion": 4.2}, {"id": "faf80246-3b1a-49c6-a277-0152428e46e1", "name": "Runway - Create Video", "type": "n8n-nodes-base.httpRequest", "position": [2520, 300], "parameters": {"url": "https://api.dev.runwayml.com/v1/image_to_video", "method": "POST", "options": {}, "sendBody": true, "sendHeaders": true, "authentication": "genericCredentialType", "bodyParameters": {"parameters": [{"name": "promptImage", "value": "={{ $json.body.generations_by_pk.generated_images[0].url }}"}, {"name": "promptText", "value": "string"}, {"name": "model", "value": "gen3a_turbo"}]}, "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "X-Runway-Version", "value": "2024-11-06"}]}}, "typeVersion": 4.2}, {"id": "e91c1f01-7870-4063-9557-24a6ba1d3db3", "name": "Runway - Get Video", "type": "n8n-nodes-base.httpRequest", "position": [2920, 300], "parameters": {"url": "=https://api.dev.runwayml.com/v1/tasks/{{ $json.id }}", "options": {}, "sendHeaders": true, "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "X-Runway-Version", "value": "2024-11-06"}]}}, "typeVersion": 4.2}, {"id": "41ee2665-e1aa-4d48-ade6-e37af568f211", "name": "Wait2", "type": "n8n-nodes-base.wait", "position": [2720, 300], "webhookId": "ddca5833-a40b-404a-9140-686cd4fa26cb", "parameters": {"unit": "minutes", "amount": 3}, "typeVersion": 1.1}, {"id": "091e9e07-89ba-4fe3-9fc5-278fc333dbff", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-160, -40], "parameters": {"color": 5, "width": 341, "height": 951, "content": "# Choose your data source \n## This can be swapped for any other data source of your choosing."}, "typeVersion": 1}, {"id": "9660a593-9966-4ebe-bfd7-f884dc185d56", "name": "If Topic", "type": "n8n-nodes-base.if", "position": [1100, 320], "parameters": {"options": {}, "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "56219de5-244d-4b7f-a511-f3061572cf93", "operator": {"name": "filter.operator.equals", "type": "string", "operation": "equals"}, "leftValue": "={{ $json.output.related }}", "rightValue": "yes"}]}}, "typeVersion": 2.2}, {"id": "e47140ac-20cc-417b-a6cd-30f780dc8289", "name": "Get Image", "type": "n8n-nodes-base.httpRequest", "position": [1500, 320], "parameters": {"url": "={{ $('Article Analysis').first().json.output['image urls'] }}", "options": {"response": {"response": {"fullResponse": true}}}}, "typeVersion": 4.2}, {"id": "26f80f71-2c3a-46fe-a960-21cdbc18ce34", "name": "Prompt Settings1", "type": "n8n-nodes-base.set", "position": [2520, 100], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "56c8f20d-d9d9-4be7-ac2a-38df6ffdd722", "name": "model", "type": "string", "value": "6b645e3a-d64f-4341-a6d8-7a3690fbf042"}]}, "includeOtherFields": true}, "typeVersion": 3.4}, {"id": "ce697f6f-f8fc-4ba7-b776-17bbc2e870b7", "name": "Leo - Generate Image", "type": "n8n-nodes-base.httpRequest", "position": [2920, 100], "parameters": {"url": "https://cloud.leonardo.ai/api/rest/v1/generations", "method": "POST", "options": {"response": {"response": {"fullResponse": true}}}, "jsonBody": "={\n \"alchemy\": true,\n \"width\": 1024,\n \"height\": 768,\n \"modelId\": \"6b645e3a-d64f-4341-a6d8-7a3690fbf042\",\n \"num_images\": 1,\n \"presetStyle\": \"MONOCHROME\",\n \"prompt\": \"{{ $json.body.promptGeneration.prompt }}; Use the rule of thirds, leading lines, & balance. DO NOT INCLUDE ANY WORDS OR LABELS.\",\n \"guidance_scale\": 7,\n \"highResolution\": true,\n \"promptMagic\": false,\n \"promptMagicStrength\": 0.5,\n \"promptMagicVersion\": \"v3\",\n \"public\": false,\n \"ultra\": false,\n \"photoReal\": false,\n \"negative_prompt\": \"\"\n} ", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "accept", "value": "application/json"}]}}, "typeVersion": 4.2}, {"id": "e2067fe5-3fae-4f97-97c0-879967efd9b8", "name": "Wait1", "type": "n8n-nodes-base.wait", "position": [3120, 100], "webhookId": "256c3814-6a52-4eb1-969a-30f9f3b8e04e", "parameters": {"amount": 30}, "typeVersion": 1.1}, {"id": "f0ba57a5-1d27-4c75-a422-4bc0e2cead9d", "name": "Limit", "type": "n8n-nodes-base.limit", "position": [240, 300], "parameters": {"keep": "lastItems", "maxItems": 50}, "typeVersion": 1}, {"id": "e01152aa-961b-4e33-a1e3-186d47d81c55", "name": "Image Analysis", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [1300, 320], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "GPT-4O-MINI"}, "options": {"detail": "auto"}, "resource": "image", "imageUrls": "={{ $json.output['image urls'] }}", "operation": "analyze"}, "credentials": {"openAiApi": {"id": "ysxujEYFiY5ozRTS", "name": "AlexK OpenAi Key"}}, "typeVersion": 1.6}, {"id": "ab346129-c3d5-4f51-af5e-5d63cd154981", "name": "Wait3", "type": "n8n-nodes-base.wait", "disabled": true, "position": [3080, 1020], "webhookId": "6e4a0b8d-6c31-4a98-8ec3-2509aa2087e8", "parameters": {"unit": "minutes"}, "typeVersion": 1.1}, {"id": "872c35a3-bdd5-4eec-9bac-0959f3ff78e7", "name": "Article Analysis", "type": "@n8n/n8n-nodes-langchain.agent", "onError": "continueErrorOutput", "position": [740, 300], "parameters": {"text": "=Can you tell me if the article at {{ $json.url }} is related to automation or ai? \n\nthen, create a 250 word summary of the article\n\nAlso, list any image url's related to the article content from the url. Limit to 1 image url.", "options": {"systemMessage": "You are a helpful assistant in summarizing and identifying articles related to automation and ai. \nOutput the results as:\nsummary: \nrelated: yes or no\nimage urls: "}, "promptType": "define", "hasOutputParser": true}, "typeVersion": 1.7}, {"id": "31c3a90e-10ee-4217-9b08-ff57bf17ea10", "name": "Dropbox", "type": "n8n-nodes-base.dropbox", "position": [3640, 1080], "parameters": {}, "typeVersion": 1}, {"id": "22ccd0a0-f7f6-40ca-bd09-40ed4a7fcde1", "name": "Google Drive", "type": "n8n-nodes-base.googleDrive", "position": [3840, 1080], "parameters": {"fileId": {"__rl": true, "mode": "list", "value": ""}, "options": {}, "operation": "update"}, "credentials": {"googleDriveOAuth2Api": {"id": "m8K1mbAUn7yuiEwl", "name": "AlexK1919 Google Drive account"}}, "typeVersion": 3}, {"id": "ea75931d-c1ee-4139-9bdc-7901056ba016", "name": "Microsoft OneDrive", "type": "n8n-nodes-base.microsoftOneDrive", "position": [4040, 1080], "parameters": {}, "typeVersion": 1}, {"id": "38888521-3087-4e0a-81d6-cf4b9a5dd3dd", "name": "YouTube", "type": "n8n-nodes-base.youTube", "position": [3640, 1500], "parameters": {"options": {}, "resource": "video", "operation": "upload"}, "typeVersion": 1}, {"id": "55f3decc-f952-4d2a-804d-2aec44fb2755", "name": "X", "type": "n8n-nodes-base.twitter", "position": [3840, 1500], "parameters": {"additionalFields": {}}, "typeVersion": 2}, {"id": "54c8b762-444d-4790-97a9-a2f84518492f", "name": "Instagram", "type": "n8n-nodes-base.httpRequest", "position": [4240, 1500], "parameters": {"options": {}}, "typeVersion": 4.2}, {"id": "90040f15-95c0-4ebb-818f-dde508eb0689", "name": "LinkedIn", "type": "n8n-nodes-base.linkedIn", "position": [4040, 1500], "parameters": {"additionalFields": {}}, "typeVersion": 1}, {"id": "691eb779-5fae-4f65-89eb-b1b8e5488809", "name": "Leo - Improve Prompt2", "type": "n8n-nodes-base.httpRequest", "position": [2720, 500], "parameters": {"url": "https://cloud.leonardo.ai/api/rest/v1/prompt/improve", "method": "POST", "options": {"response": {"response": {"fullResponse": true}}}, "jsonBody": "={\n \"prompt\": \"{{ $('Article Prep').item.json.message.content['Image Prompt 2'] }}\"\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "accept", "value": "application/json"}]}}, "credentials": {"httpCustomAuth": {"id": "hIzUsjbtHLmIe6uM", "name": "RunwayML Custom Auth"}}, "typeVersion": 4.2}, {"id": "076a745a-055b-459c-8af9-fa7b6740dc6f", "name": "Wait4", "type": "n8n-nodes-base.wait", "position": [2720, 700], "webhookId": "89b31515-b403-4644-a2c1-970e5e774008", "parameters": {"unit": "minutes", "amount": 3}, "typeVersion": 1.1}, {"id": "adc2c993-3f89-40df-96fc-eb3ff5eafb1c", "name": "Wait6", "type": "n8n-nodes-base.wait", "position": [3120, 500], "webhookId": "2efb873f-bcbd-41d9-99da-b2b57ef5ad93", "parameters": {"amount": 30}, "typeVersion": 1.1}, {"id": "156f5735-bc20-46a9-871c-143b0772ca45", "name": "Leo - Generate Image2", "type": "n8n-nodes-base.httpRequest", "position": [2920, 500], "parameters": {"url": "https://cloud.leonardo.ai/api/rest/v1/generations", "method": "POST", "options": {"response": {"response": {"fullResponse": true}}}, "jsonBody": "={\n \"alchemy\": true,\n \"width\": 1024,\n \"height\": 768,\n \"modelId\": \"6b645e3a-d64f-4341-a6d8-7a3690fbf042\",\n \"num_images\": 1,\n \"presetStyle\": \"MONOCHROME\",\n \"prompt\": \"{{ $json.body.promptGeneration.prompt }}; Use the rule of thirds, leading lines, & balance. DO NOT INCLUDE ANY WORDS OR LABELS.\",\n \"guidance_scale\": 7,\n \"highResolution\": true,\n \"promptMagic\": false,\n \"promptMagicStrength\": 0.5,\n \"promptMagicVersion\": \"v3\",\n \"public\": false,\n \"ultra\": false,\n \"photoReal\": false,\n \"negative_prompt\": \"\"\n} ", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "accept", "value": "application/json"}]}}, "typeVersion": 4.2}, {"id": "4f270fa8-4da2-44f0-927f-3509fd9f8f7d", "name": "Leo - Get imageId2", "type": "n8n-nodes-base.httpRequest", "position": [3320, 500], "parameters": {"url": "=https://cloud.leonardo.ai/api/rest/v1/generations/{{ $json.body.sdGenerationJob.generationId }}", "options": {"response": {"response": {"fullResponse": true}}}, "sendHeaders": true, "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "content-type", "value": "application/json"}]}}, "typeVersion": 4.2}, {"id": "49c0e7ba-bf9c-4819-b479-61aa099ab9ab", "name": "Runway - Create Video2", "type": "n8n-nodes-base.httpRequest", "position": [2520, 700], "parameters": {"url": "https://api.dev.runwayml.com/v1/image_to_video", "method": "POST", "options": {}, "sendBody": true, "sendHeaders": true, "authentication": "genericCredentialType", "bodyParameters": {"parameters": [{"name": "promptImage", "value": "={{ $json.body.generations_by_pk.generated_images[0].url }}"}, {"name": "promptText", "value": "string"}, {"name": "model", "value": "gen3a_turbo"}]}, "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "X-Runway-Version", "value": "2024-11-06"}]}}, "credentials": {"httpCustomAuth": {"id": "hIzUsjbtHLmIe6uM", "name": "RunwayML Custom Auth"}}, "typeVersion": 4.2}, {"id": "d03eb190-5fc0-4b7e-ad65-88ece3ab833d", "name": "Runway - Get Video2", "type": "n8n-nodes-base.httpRequest", "position": [2920, 700], "parameters": {"url": "=https://api.dev.runwayml.com/v1/tasks/{{ $json.id }}", "options": {}, "sendHeaders": true, "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth", "headerParameters": {"parameters": [{"name": "X-Runway-Version", "value": "2024-11-06"}]}}, "typeVersion": 4.2}, {"id": "0072563d-b87d-47c5-80fd-ed3c051b3287", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [3580, 940], "parameters": {"color": 6, "width": 882, "height": 372, "content": "# Upload Assets\nYou can extend this workflow further by uploading the generated assets to your storage option of choice."}, "typeVersion": 1}, {"id": "a0b2377e-57ea-47e9-83c9-3e58372610e5", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [3580, 1360], "parameters": {"color": 6, "width": 882, "height": 372, "content": "# Post to Social Media\nYou can extend this workflow further by posting the generated assets to social media."}, "typeVersion": 1}, {"id": "708fe6a0-4899-462b-9a08-fadea7c7e195", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [2420, -40], "parameters": {"color": 4, "width": 1114, "height": 943, "content": "# Generate Images and Videos"}, "typeVersion": 1}, {"id": "5bbb6552-ec3a-42ea-a911-993f67a6c8dc", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [2420, 940], "parameters": {"color": 5, "width": 1114, "height": 372, "content": "# Stitch it all together"}, "typeVersion": 1}, {"id": "25f4cc09-fbff-4c10-b706-30df5840b794", "name": "Cre - Generate Video1", "type": "n8n-nodes-base.httpRequest", "position": [2880, 1020], "parameters": {"url": "https://api.creatomate.com/v1/renders", "method": "POST", "options": {"response": {"response": {"fullResponse": true}}}, "jsonBody": "={\n \"max_width\": 480,\n \"template_id\": \"enterTemplateID\",\n \"modifications\": {\n \"Scenes.elements\": [\n {\n \"name\": \"Intro Comp\",\n \"type\": \"composition\",\n \"track\": 1,\n \"elements\": [\n {\n \"name\": \"Image-1\",\n \"type\": \"image\",\n \"source\": \"{{ $('Leo - Get imageId').item.json.body.generations_by_pk.generated_images[0].url }}\"\n },\n {\n \"name\": \"Subtitles-1\",\n \"type\": \"text\",\n \"transcript_source\": \"Voiceover-1\",\n \"width\": \"86.66%\",\n \"height\": \"37.71%\",\n \"x_alignment\": \"50%\",\n \"y_alignment\": \"50%\",\n \"fill_color\": \"#ffffff\",\n \"stroke_color\": \"#333333\",\n \"stroke_width\": \"1.05 vmin\",\n \"font_family\": \"Inter\",\n \"font_weight\": \"700\",\n \"font_size\": \"8 vmin\",\n \"background_color\": \"rgba(255,255,255,0.2)\",\n \"background_x_padding\": \"26%\",\n \"background_y_padding\": \"7%\",\n \"background_border_radius\": \"28%\",\n \"transcript_effect\": \"highlight\",\n \"transcript_color\": \"#ff5900\"\n },\n {\n \"name\": \"Voiceover-1\",\n \"type\": \"audio\",\n \"source\": \"{{ $('News1').item.json.property_name }}\",\n \"provider\": \"openai model=tts-1 voice=onyx\"\n }\n ]\n },\n {\n \"name\": \"Auto Scene Comp\",\n \"type\": \"composition\",\n \"track\": 1,\n \"elements\": [\n {\n \"name\": \"Video-2\",\n \"type\": \"video\",\n \"source\": \"{{ $('Runway - Get Video').first().json.output[0] }}\",\n \"loop\": true\n },\n {\n \"name\": \"Subtitles-2\",\n \"type\": \"text\",\n \"transcript_source\": \"Voiceover-2\",\n \"y\": \"78.2173%\",\n \"width\": \"86.66%\",\n \"height\": \"37.71%\",\n \"x_alignment\": \"50%\",\n \"y_alignment\": \"50%\",\n \"fill_color\": \"#ffffff\",\n \"stroke_color\": \"#333333\",\n \"stroke_width\": \"1.05 vmin\",\n \"font_family\": \"Inter\",\n \"font_weight\": \"700\",\n \"font_size\": \"8 vmin\",\n \"background_color\": \"rgba(255,255,255,0.2)\",\n \"background_x_padding\": \"26%\",\n \"background_y_padding\": \"7%\",\n \"background_border_radius\": \"28%\",\n \"transcript_effect\": \"highlight\",\n \"transcript_color\": \"#ff5900\"\n },\n {\n \"name\": \"Voiceover-2\",\n \"type\": \"audio\",\n \"source\": \"{{ $('Article Prep').item.json.message.content['Summary Blurb 1'] }}\",\n \"provider\": \"openai model=tts-1 voice=onyx\"\n }\n ]\n },\n {\n \"name\": \"Auto Scene Comp\",\n \"type\": \"composition\",\n \"track\": 1,\n \"elements\": [\n {\n \"name\": \"Video-3\",\n \"type\": \"video\",\n \"source\": \"{{ $('Runway - Get Video2').first().json.output[0] }}\",\n \"loop\": true\n },\n {\n \"name\": \"Subtitles-3\",\n \"type\": \"text\",\n \"transcript_source\": \"Voiceover-3\",\n \"y\": \"78.2173%\",\n \"width\": \"86.66%\",\n \"height\": \"37.71%\",\n \"x_alignment\": \"50%\",\n \"y_alignment\": \"50%\",\n \"fill_color\": \"#ffffff\",\n \"stroke_color\": \"#333333\",\n \"stroke_width\": \"1.05 vmin\",\n \"font_family\": \"Inter\",\n \"font_weight\": \"700\",\n \"font_size\": \"8 vmin\",\n \"background_color\": \"rgba(255,89,0,0.5)\",\n \"background_x_padding\": \"26%\",\n \"background_y_padding\": \"7%\",\n \"background_border_radius\": \"28%\",\n \"transcript_effect\": \"highlight\",\n \"transcript_color\": \"#ff0040\"\n },\n {\n \"name\": \"Voiceover-3\",\n \"type\": \"audio\",\n \"source\": \"{{ $('Article Prep').item.json.message.content['Summary Blurb 2'] }}\",\n \"provider\": \"openai model=tts-1 voice=onyx\"\n }\n ]\n }\n ]\n }\n}", "sendBody": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth"}, "credentials": {"httpCustomAuth": {"id": "hIzUsjbtHLmIe6uM", "name": "RunwayML Custom Auth"}}, "typeVersion": 4.2}, {"id": "7093de7b-a4e3-4363-8038-1002f7b20fbc", "name": "Cre - Get Video", "type": "n8n-nodes-base.httpRequest", "position": [3280, 1020], "parameters": {"url": "=https://api.creatomate.com/v1/renders/{{ $json.body.body[0].id }}", "options": {"response": {"response": {"fullResponse": true}}}, "authentication": "genericCredentialType", "genericAuthType": "httpCustomAuth"}, "credentials": {"httpCustomAuth": {"id": "hIzUsjbtHLmIe6uM", "name": "RunwayML Custom Auth"}}, "typeVersion": 4.2}, {"id": "a57b719f-b299-431e-9c85-fa333e38b6a7", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [660, -40], "parameters": {"color": 3, "width": 1033, "height": 951, "content": "# Article Analysis - Is it the right topic?"}, "typeVersion": 1}, {"id": "60b879a0-8b7f-40f1-ae70-ac94e4675b38", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "position": [1740, -40], "parameters": {"color": 3, "width": 630, "height": 947, "content": "# Prepare the article for content generation"}, "typeVersion": 1}, {"id": "afaf8437-ee52-434b-a267-8dbaff0e1922", "name": "Article Prep", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [1820, 320], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "GPT-4O-MINI"}, "options": {}, "messages": {"values": [{"content": "=prepare the following summary for a newsletter where the article will be 1 of several presented in the newsletter:\n\n{{ $('Article Analysis').first().json.output.summary }}\n\nMake sure the Article Blurb lenght is less than 15 words.\n\nThen, create 2 Summary Blurbs, making sure each is less than 15 words.\n\nAlso create 2 image prompts that is less than 15 words long for each Summary Blurb"}, {"role": "system", "content": "Output in markdown format\nArticle Title\nArticle Blurb\nSummary Blurb 1\nSummary Blurb 2\nArticle Image\nImage Prompt 1\nImage Prompt 2"}]}, "jsonOutput": true}, "credentials": {"openAiApi": {"id": "ysxujEYFiY5ozRTS", "name": "AlexK OpenAi Key"}}, "typeVersion": 1.6}, {"id": "e7c95d56-86e1-4456-a6d3-9c8b9fc3a53c", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [-620, -40], "parameters": {"color": 6, "width": 252, "height": 946, "content": "# AlexK1919 \n\n\n#### I\u2019m Alex Kim, an AI-Native Workflow Automation Architect Building Solutions to Optimize your Personal and Professional Life.\n\n### Workflow Overview Video\nhttps://youtu.be/XaKybLDUlLk\n\n### About Me\nhttps://beacons.ai/alexk1919\n\n### Product Used \n[Leonardo.ai](https://leonardo.ai)\n[RunwayML](https://runwayml.com/)\n[Creatomate](https://creatomate.com/)\n"}, "typeVersion": 1}, {"id": "32e2803e-bf7c-4da4-a4ae-c9b6fa5ae226", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [3280, 1180], "parameters": {"color": 7, "width": 180, "height": 100, "content": "Don't forget to connect this last node to the loop to process additional items"}, "typeVersion": 1}] | {"X": {"main": [[{"node": "LinkedIn", "type": "main", "index": 0}]]}, "Limit": {"main": [[{"node": "Loop Over Items", "type": "main", "index": 0}]]}, "News1": {"main": [[{"node": "Prompt Settings1", "type": "main", "index": 0}]]}, "Wait1": {"main": [[{"node": "Leo - Get imageId", "type": "main", "index": 0}]]}, "Wait2": {"main": [[{"node": "Runway - Get Video", "type": "main", "index": 0}]]}, "Wait3": {"main": [[{"node": "Cre - Get Video", "type": "main", "index": 0}]]}, "Wait4": {"main": [[{"node": "Runway - Get Video2", "type": "main", "index": 0}]]}, "Wait6": {"main": [[{"node": "Leo - Get imageId2", "type": "main", "index": 0}]]}, "Dropbox": {"main": [[{"node": "Google Drive", "type": "main", "index": 0}]]}, "YouTube": {"main": [[{"node": "X", "type": "main", "index": 0}]]}, "If Topic": {"main": [[{"node": "Image Analysis", "type": "main", "index": 0}], [{"node": "Loop Over Items", "type": "main", "index": 0}]]}, "LinkedIn": {"main": [[{"node": "Instagram", "type": "main", "index": 0}]]}, "Get Image": {"main": [[{"node": "Article Prep", "type": "main", "index": 0}]]}, "Hacker News": {"main": [[{"node": "Limit", "type": "main", "index": 0}]]}, "Article Prep": {"main": [[{"node": "News1", "type": "main", "index": 0}]]}, "Google Drive": {"main": [[{"node": "Microsoft OneDrive", "type": "main", "index": 0}]]}, "HTTP Request1": {"ai_tool": [[{"node": "Article Analysis", "type": "ai_tool", "index": 0}]]}, "Image Analysis": {"main": [[{"node": "Get Image", "type": "main", "index": 0}]]}, "Loop Over Items": {"main": [[], [{"node": "Article Analysis", "type": "main", "index": 0}]]}, "Article Analysis": {"main": [[{"node": "If Topic", "type": "main", "index": 0}], [{"node": "Loop Over Items", "type": "main", "index": 0}]]}, "Prompt Settings1": {"main": [[{"node": "Leo - Improve Prompt", "type": "main", "index": 0}]]}, "Leo - Get imageId": {"main": [[{"node": "Runway - Create Video", "type": "main", "index": 0}]]}, "Leo - Get imageId2": {"main": [[{"node": "Runway - Create Video2", "type": "main", "index": 0}]]}, "Microsoft OneDrive": {"main": [[{"node": "Upload to Minio", "type": "main", "index": 0}]]}, "OpenAI Chat Model3": {"ai_languageModel": [[{"node": "Article Analysis", "type": "ai_languageModel", "index": 0}]]}, "Runway - Get Video": {"main": [[{"node": "Leo - Improve Prompt2", "type": "main", "index": 0}]]}, "Runway - Get Video2": {"main": [[{"node": "Cre - Generate Video1", "type": "main", "index": 0}]]}, "Leo - Generate Image": {"main": [[{"node": "Wait1", "type": "main", "index": 0}]]}, "Leo - Improve Prompt": {"main": [[{"node": "Leo - Generate Image", "type": "main", "index": 0}]]}, "Cre - Generate Video1": {"main": [[{"node": "Wait3", "type": "main", "index": 0}]]}, "Leo - Generate Image2": {"main": [[{"node": "Wait6", "type": "main", "index": 0}]]}, "Leo - Improve Prompt2": {"main": [[{"node": "Leo - Generate Image2", "type": "main", "index": 0}]]}, "Runway - Create Video": {"main": [[{"node": "Wait2", "type": "main", "index": 0}]]}, "Runway - Create Video2": {"main": [[{"node": "Wait4", "type": "main", "index": 0}]]}, "Structured Output Parser": {"ai_outputParser": [[{"node": "Article Analysis", "type": "ai_outputParser", "index": 0}]]}, "When clicking \u2018Test workflow\u2019": {"main": [[{"node": "Hacker News", "type": "main", "index": 0}]]}} |
OpenAI-model-examples | [{"id": "ad6dc2cd-21cc-4563-86ba-f78cc4a55543", "name": "When clicking \"Execute Workflow\"", "type": "n8n-nodes-base.manualTrigger", "position": [-640, 380], "parameters": {}, "typeVersion": 1}, {"id": "b370da23-ead4-4221-b7fe-a9d943f7fbb9", "name": "davinci-003-complete", "type": "n8n-nodes-base.openAi", "position": [1160, 60], "parameters": {"prompt": "={{ $json.text }}\n\nTl;dr:", "options": {"maxTokens": 500}}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "5e04f355-36c0-4540-8e65-68118cb73135", "name": "ChatGPT-ex2", "type": "n8n-nodes-base.openAi", "position": [1160, 740], "parameters": {"prompt": {"messages": [{"role": "system", "content": "=You are an assistant. Always add 5 emojis to the end of your answer."}, {"content": "=Write tl;dr of the wollowing text: {{ $json.text}}"}]}, "options": {"maxTokens": 500, "temperature": 0.8}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "16a7cf80-16e3-44f9-b15c-7501417fe38f", "name": "davinci-003-edit", "type": "n8n-nodes-base.openAi", "position": [1340, 60], "parameters": {"input": "={{ $json.text }}", "options": {}, "operation": "edit", "instruction": "translate to German"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "95254870-65c3-4714-83fb-20ba2c0ca007", "name": "ChatGPT-ex1.1", "type": "n8n-nodes-base.openAi", "position": [1160, 380], "parameters": {"prompt": {"messages": [{"content": "=Write a Tl;dr of the followint text: {{ $json.text }}"}]}, "options": {"maxTokens": 500}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "be9c4820-18b0-46fd-a5a0-51a5dc3ebed5", "name": "ChatGPT-ex1.2", "type": "n8n-nodes-base.openAi", "position": [1340, 380], "parameters": {"prompt": {"messages": [{"content": "=Translate to German the following text: {{ $json.message.content }}"}]}, "options": {"maxTokens": 500}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "c52c875b-5270-44ac-bfca-ce25124e3d04", "name": "Text-example", "type": "n8n-nodes-base.code", "position": [540, 380], "parameters": {"jsCode": "return [\n {\n \"text\": \"Science Underground with your host, Anissa Ramirez. In this episode, how to stop your bathroom mirror from fogging up with a little dash of science. I'm Anissa Ramirez and this is Science Underground. We've all been there. You come out of the shower and you go to the mirror and you can't see yourself because the mirror is fogged up. You can't see anything until you first clear off the surface. Every morning it's the same thing. Shower, fog, shower, fog, shower, fog. There's gotta be a better way. Well, there is. Before you take the next shower, wipe a bit of shaving cream on the surface of the mirror and keep it there for about 30 seconds. Then wipe it off. The next time you take a shower, that part of the mirror that was covered with shaving cream will be amazingly fog free. And the shaving cream will keep the water from fogging up for a few weeks. So what's going on? Well, the fog on your mirror is made out of little itty bitty water droplets. If you were to look at the surface of the mirror under the microscope, you will see that the surface looks like a newly waxed car. The water forms beads, preventing you from seeing yourself in the mirror. When you add shaving cream to the surface of the mirror, the water droplets are no longer beads. They are a thin, smoothed out layer of water. Just like the surface of an old car that hasn't been waxed. Scientists would say that the shaving cream has changed the surface tension of the mirror. So there you have it. There's the answer. The secret to fogless mirrors is shaving cream. A little dab of science will do you. I'm Anissa Ramirez, and this was Science Underground.\"\n }\n];"}, "typeVersion": 1}, {"id": "45d3bad7-0e9a-426b-b4e9-b3568181d9dc", "name": "Code-ex3.1", "type": "n8n-nodes-base.code", "position": [1160, 1100], "parameters": {"jsCode": "var intext = $input.first().json;\n\nvar messages = [\n {\"role\": \"system\", \"content\": \"You are a helpful assistant. Write a Tl;dr of each user message\"},\n {\"role\": \"user\", \"content\": intext.text}\n];\n\nreturn {\"messages\":messages};"}, "typeVersion": 1}, {"id": "4db3de05-51a7-46ea-a818-508bdcb04582", "name": "ChatGPT-ex3.1", "type": "n8n-nodes-base.httpRequest", "position": [1340, 1100], "parameters": {"url": "https://api.openai.com/v1/chat/completions", "method": "POST", "options": {}, "sendBody": true, "authentication": "predefinedCredentialType", "bodyParameters": {"parameters": [{"name": "model", "value": "gpt-3.5-turbo"}, {"name": "temperature", "value": "={{ parseFloat(0.8) }}"}, {"name": "n", "value": "={{ Number(1) }}"}, {"name": "max_tokens", "value": "={{ Number(500) }}"}, {"name": "messages", "value": "={{ $json.messages }}"}]}, "nodeCredentialType": "openAiApi"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 3}, {"id": "709fcd7c-deb3-469d-b16b-62d4d36d100d", "name": "ChatGPT-ex3.2", "type": "n8n-nodes-base.openAi", "position": [1880, 1100], "parameters": {"prompt": {"messages": [{"role": "system", "content": "=You are now a DALLE-2 prompt generation tool that will generate a suitable prompt. Write a promt to create a cover image relevant to the user input. The image should be in a comic style of the 60-s."}, {"content": "={{ $json.choices[0].message.content }}"}]}, "options": {"maxTokens": 500, "temperature": 0.8}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "6b32cc45-5ba2-4605-b690-3929ec9acecf", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [900, -60], "parameters": {"width": 746.6347949130579, "height": 295.50954755505853, "content": "## The old way of using text completion and text edit\n### Davinci model is 10 times more expensive then ChatGPT, consider switching to the new API:\nhttps://openai.com/blog/introducing-chatgpt-and-whisper-apis\n"}, "typeVersion": 1}, {"id": "3cc74d77-7b02-40fd-83d8-f540d5ff34ab", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [-160, 260], "parameters": {"width": 428.4578974150008, "height": 316.6202633391793, "content": "## Whisper-1 example\n### Prepare your audio file and send it to whisper-1 transcription model"}, "typeVersion": 1}, {"id": "6ba8069a-485c-497c-8b27-4c7562fbccab", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [380, 280], "parameters": {"width": 421.9002034748082, "height": 302.4086532331564, "content": "## An example of transcribed text\n### Please pause this node when using real audio files"}, "typeVersion": 1}, {"id": "c71001e6-b80f-41dd-bcdd-10927014b374", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [900, 280], "parameters": {"width": 747.8556016477869, "height": 288.18470714667706, "content": "## ChatGPT example 1.1 and 1.2 \n### Write a Tl;dr of the text input\n### Translate it to German\n### only user content provided"}, "typeVersion": 1}, {"id": "4605be68-4c57-404f-8624-e095c8e86ff9", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [900, 620], "parameters": {"width": 742.9723747088658, "height": 288.18470714667706, "content": "## ChatGPT example 2 \n### Use system content to provide general instruction\n### Manual setup of system and user content"}, "typeVersion": 1}, {"id": "f5b72d7a-655a-4cc9-b722-b75429889d1d", "name": "Sticky Note5", "type": "n8n-nodes-base.stickyNote", "position": [900, 960], "parameters": {"width": 739.309954504675, "height": 288.18470714667706, "content": "## ChatGPT example 3.1\n### When using ChatGPT programmatically, create an array of system / user / assistant contents and append them one after another\n### Call ChatGPT API via HTTP Request node to provide all messages at once"}, "typeVersion": 1}, {"id": "a003a4db-1960-4867-8dfe-3114cf0742f3", "name": "DALLE-ex3.3", "type": "n8n-nodes-base.openAi", "position": [2060, 1100], "parameters": {"prompt": "={{ $json.message.content }}", "options": {"n": 4, "size": "512x512"}, "resource": "image"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "d71a01ff-4d47-4675-964c-c47820d3989b", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [1720, 960], "parameters": {"width": 611.1252473579985, "height": 284.52228694248623, "content": "## ChatGPT example 3.2 & DALLE-2 example 3.3\n### Use ChatGPT to create a prompt for a cover image of the Tl;dr message\n### Use OpenAI node to generate 4 images using the auto-generated prompt"}, "typeVersion": 1}, {"id": "f5a55cfe-c110-4833-9668-1f1ba895860f", "name": "ChatGPT-ex4", "type": "n8n-nodes-base.openAi", "position": [1240, 1420], "parameters": {"model": "gpt-3.5-turbo-0301", "prompt": {"messages": [{"content": "={{ $json.prompt }}"}]}, "options": {"maxTokens": 500, "temperature": 0.5}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "8a9f7a20-187c-4494-8005-b10d066d04e2", "name": "Set-ex4", "type": "n8n-nodes-base.set", "position": [1060, 1420], "parameters": {"values": {"string": [{"name": "model", "value": "code-davinci-002"}, {"name": "suffix", "value": "</svg>"}, {"name": "prompt", "value": "=Create an HTML code with and SVG tag that contains random shapes of various colors. Include triangles, lines, ellipses and other shapes"}]}, "options": {}, "keepOnlySet": true}, "typeVersion": 1}, {"id": "68fcc6a2-761c-42ac-8778-313c8db7d53c", "name": "HTML-ex4", "type": "n8n-nodes-base.html", "position": [1420, 1420], "parameters": {"html": "{{$json.message.content }}"}, "typeVersion": 1}, {"id": "1f70cf3f-b6a9-4ea7-9486-c7565e6951b7", "name": "Sticky Note7", "type": "n8n-nodes-base.stickyNote", "position": [900, 1300], "parameters": {"width": 739.309954504675, "height": 288.18470714667706, "content": "## ChatGPT example 4\n### Generate HTML code that contains SVG image"}, "typeVersion": 1}, {"id": "d857acd9-ea74-44d2-ac89-66b1fac4645f", "name": "Sticky Note8", "type": "n8n-nodes-base.stickyNote", "position": [900, 1640], "parameters": {"width": 739.309954504675, "height": 288.18470714667706, "content": "## ChatGPT example 5\n### Provide several outputs. Useful for quick replies (i.e. in Gmail / Outlook)"}, "typeVersion": 1}, {"id": "fe64533a-4cd4-4adc-a48a-8abf3f2d61d7", "name": "ChatGPT-ex", "type": "n8n-nodes-base.openAi", "position": [1160, 1760], "parameters": {"model": "gpt-3.5-turbo-0301", "prompt": {"messages": [{"role": "system", "content": "Act as an e-mail client. Provide a five to eight word answers to a given user messages."}, {"content": "Hi There! My name is Jack.\n\nI'm sending you an overview of my pricelist attached.\nCould you please reply to me within 3 days?\n\nBest regards and have a nice day,\nJack"}]}, "options": {"n": 3, "maxTokens": 15, "temperature": 0.8}, "resource": "chat"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 1}, {"id": "6c9f8a70-99ae-4310-8e6a-26cc6f75b3a2", "name": "LoadMP3", "type": "n8n-nodes-base.readBinaryFiles", "disabled": true, "position": [-80, 380], "parameters": {"fileSelector": "/home/node/.n8n/OpenAI-article/Using Science to Stop Your Mirror From Fogging Up.mp3"}, "typeVersion": 1}, {"id": "0edc1996-6484-4e62-a47b-5666dfbb3546", "name": "Whisper-transcribe", "type": "n8n-nodes-base.httpRequest", "disabled": true, "position": [100, 380], "parameters": {"url": "https://api.openai.com/v1/audio/transcriptions", "method": "POST", "options": {}, "sendBody": true, "contentType": "multipart-form-data", "authentication": "predefinedCredentialType", "bodyParameters": {"parameters": [{"name": "model", "value": "whisper-1"}, {"name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data"}]}, "nodeCredentialType": "openAiApi"}, "credentials": {"openAiApi": {"id": "63", "name": "OpenAi account"}}, "typeVersion": 3}, {"id": "c12ba294-bdcd-4ece-8370-fa6a83a8ef0b", "name": "Sticky Note9", "type": "n8n-nodes-base.stickyNote", "position": [-840, 260], "parameters": {"width": 596.9600747621192, "height": 320.63203364295396, "content": "## Do not run the whole workflow, it's rather slow\n### Better execute the last node of each branch or simply disconnect branches that are not needed"}, "typeVersion": 1}] | {"LoadMP3": {"main": [[{"node": "Whisper-transcribe", "type": "main", "index": 0}]]}, "Set-ex4": {"main": [[{"node": "ChatGPT-ex4", "type": "main", "index": 0}]]}, "Code-ex3.1": {"main": [[{"node": "ChatGPT-ex3.1", "type": "main", "index": 0}]]}, "ChatGPT-ex4": {"main": [[{"node": "HTML-ex4", "type": "main", "index": 0}]]}, "Text-example": {"main": [[{"node": "davinci-003-complete", "type": "main", "index": 0}, {"node": "ChatGPT-ex1.1", "type": "main", "index": 0}, {"node": "ChatGPT-ex2", "type": "main", "index": 0}, {"node": "Code-ex3.1", "type": "main", "index": 0}]]}, "ChatGPT-ex1.1": {"main": [[{"node": "ChatGPT-ex1.2", "type": "main", "index": 0}]]}, "ChatGPT-ex3.1": {"main": [[{"node": "ChatGPT-ex3.2", "type": "main", "index": 0}]]}, "ChatGPT-ex3.2": {"main": [[{"node": "DALLE-ex3.3", "type": "main", "index": 0}]]}, "Whisper-transcribe": {"main": [[{"node": "Text-example", "type": "main", "index": 0}]]}, "davinci-003-complete": {"main": [[{"node": "davinci-003-edit", "type": "main", "index": 0}]]}, "When clicking \"Execute Workflow\"": {"main": [[{"node": "LoadMP3", "type": "main", "index": 0}, {"node": "Set-ex4", "type": "main", "index": 0}, {"node": "ChatGPT-ex", "type": "main", "index": 0}]]}} |
Hubspot:Contact:upsert getall search getRecentlyCreatedUpdated get delete:Company:getall searchByDomain getRecentlyCreated update getRecentlyModified delete | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "d8cbfb90-51ba-45b9-a701-1d278992b7d5"}, {"parameters": {"resource": "contact", "email": "nodeqa@n8n.io", "additionalFields": {}}, "name": "Hubspot", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [410, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "notes": "IGNORED_PROPERTIES=associated-company", "id": "6b417cab-bf37-4b57-8fdf-24f011106618"}, {"parameters": {"resource": "contact", "operation": "getRecentlyCreatedUpdated", "limit": 1, "filters": {}}, "name": "Hubspot1", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1320, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "0be3e59d-9094-4422-a834-bcc945725a75"}, {"parameters": {"resource": "contact", "operation": "getAll", "limit": 1, "additionalFields": {}}, "name": "Hubspot2", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [710, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "5180a058-b5ff-481b-90aa-421f8609b091"}, {"parameters": {"resource": "contact", "operation": "search", "limit": 1, "filterGroupsUi": {"filterGroupsValues": []}, "additionalFields": {}}, "name": "Hubspot3", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1000, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "notes": "CAP_RESULTS_LENGTH=1", "id": "2e18e4b1-d379-4fa4-b9ad-2da493c43a22"}, {"parameters": {"resource": "contact", "operation": "delete", "contactId": "={{$json[\"vid\"]}}"}, "name": "Hubspot4", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1880, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "573f1fdf-4d4e-44e4-a086-b1389dab7ff8"}, {"parameters": {"resource": "contact", "operation": "get", "contactId": "={{$json[\"vid\"]}}", "additionalFields": {}}, "name": "Hubspot5", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1600, 260], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "notes": "IGNORED_PROPERTIES=associated-company", "id": "ae17da34-808d-4e19-81f1-42546ec64dbc"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(1500);\n\nreturn [items[0]];"}, "name": "Function", "type": "n8n-nodes-base.function", "typeVersion": 1, "position": [1140, 260], "notesInFlow": true, "notes": "Limit Contacts to single one", "id": "702edf3d-4e2e-4091-875f-b477c842802c"}, {"parameters": {"resource": "company", "name": "n8n", "additionalFields": {"companyDomainName": "n8n.io"}}, "name": "Hubspot6", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [410, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "30467fe0-8ba4-4b71-942e-0cfa7adde3c1"}, {"parameters": {"resource": "company", "operation": "getAll", "limit": 1, "options": {}}, "name": "Hubspot7", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [570, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "2d35a462-2a30-4297-a7df-1aca9be285c3"}, {"parameters": {"resource": "company", "operation": "getRecentlyCreated", "limit": 1}, "name": "Hubspot8", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [910, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "98a71897-123f-4c6e-a0c7-ba79e5947823"}, {"parameters": {"resource": "company", "operation": "searchByDomain", "domain": "n8n.io", "limit": 1, "options": {}}, "name": "Hubspot9", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [740, 430], "alwaysOutputData": true, "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "46d6962d-f16a-4d89-92d6-bce6506f6e58"}, {"parameters": {"resource": "company", "operation": "update", "companyId": "={{$node[\"Hubspot6\"].json[\"companyId\"]}}", "updateFields": {"city": "berlin"}}, "name": "Hubspot10", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1060, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "b69304b8-5093-4988-8304-89d3ee8e2c2e"}, {"parameters": {"resource": "company", "operation": "getRecentlyModified", "limit": 1, "filters": {}}, "name": "Hubspot11", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1220, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "c0f52b10-af2e-41d2-a902-6892f14742e6"}, {"parameters": {"resource": "company", "operation": "delete", "companyId": "={{$node[\"Hubspot6\"].json[\"companyId\"]}}"}, "name": "Hubspot12", "type": "n8n-nodes-base.hubspot", "typeVersion": 1, "position": [1390, 430], "credentials": {"hubspotApi": {"id": "11", "name": "hubsport api key"}}, "id": "cc00b5ca-2611-472d-89da-4649e12afa89"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(500);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.5 second", "type": "n8n-nodes-base.function", "position": [550, 260], "typeVersion": 1, "notes": "IGNORED_PROPERTIES=associated-company", "id": "d8a86813-0d02-4b5d-89f9-41818194c326"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(500);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.5 second1", "type": "n8n-nodes-base.function", "position": [850, 260], "typeVersion": 1, "id": "9276f38e-185a-4844-8764-ef4e91b0bd68"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(500);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.5 second2", "type": "n8n-nodes-base.function", "position": [1480, 260], "typeVersion": 1, "id": "ea72ad5a-b5b1-40f3-8f5f-9ac4fb5c37c4"}, {"parameters": {"functionCode": "function sleep(milliseconds) {\n return new Promise(\n resolve => setTimeout(resolve, milliseconds)\n );\n}\n\nawait sleep(500);\n\n// Output data\nreturn items;"}, "name": "Sleep 0.5 second3", "type": "n8n-nodes-base.function", "position": [1730, 260], "typeVersion": 1, "notes": "IGNORED_PROPERTIES=associated-company", "id": "0a60605e-e573-4386-9fe5-2198a3c838d8"}] | {"Hubspot": {"main": [[{"node": "Sleep 0.5 second", "type": "main", "index": 0}]]}, "Hubspot1": {"main": [[{"node": "Sleep 0.5 second2", "type": "main", "index": 0}]]}, "Hubspot2": {"main": [[{"node": "Sleep 0.5 second1", "type": "main", "index": 0}]]}, "Hubspot3": {"main": [[{"node": "Function", "type": "main", "index": 0}]]}, "Start": {"main": [[{"node": "Hubspot6", "type": "main", "index": 0}, {"node": "Hubspot", "type": "main", "index": 0}]]}, "Hubspot5": {"main": [[{"node": "Sleep 0.5 second3", "type": "main", "index": 0}]]}, "Function": {"main": [[{"node": "Hubspot1", "type": "main", "index": 0}]]}, "Hubspot6": {"main": [[{"node": "Hubspot7", "type": "main", "index": 0}]]}, "Hubspot7": {"main": [[{"node": "Hubspot9", "type": "main", "index": 0}]]}, "Hubspot8": {"main": [[{"node": "Hubspot10", "type": "main", "index": 0}]]}, "Hubspot9": {"main": [[{"node": "Hubspot8", "type": "main", "index": 0}]]}, "Hubspot10": {"main": [[{"node": "Hubspot11", "type": "main", "index": 0}]]}, "Hubspot11": {"main": [[{"node": "Hubspot12", "type": "main", "index": 0}]]}, "Sleep 0.5 second": {"main": [[{"node": "Hubspot2", "type": "main", "index": 0}]]}, "Sleep 0.5 second1": {"main": [[{"node": "Hubspot3", "type": "main", "index": 0}]]}, "Sleep 0.5 second2": {"main": [[{"node": "Hubspot5", "type": "main", "index": 0}]]}, "Sleep 0.5 second3": {"main": [[{"node": "Hubspot4", "type": "main", "index": 0}]]}} |
Keap:Company:create getAll:Contact:upsert get getAll delete:ContactNote:create get update getAll delete:ContactTag:create getAll delete | [{"parameters": {}, "name": "Start", "type": "n8n-nodes-base.start", "typeVersion": 1, "position": [250, 300], "id": "9489a524-46de-44e4-b4f9-e5ff8202cc3e"}, {"parameters": {"companyName": "=Company_{{(new Date).toISOString()}}", "additionalFields": {}}, "name": "Keap", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [600, 200], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "690b0194-0a2a-41a3-a6bd-b67ce0345f42"}, {"parameters": {"operation": "getAll", "limit": 1, "options": {}}, "name": "Keap1", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [750, 200], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "07a5aca1-73a9-4812-9a35-0e62d814c540"}, {"parameters": {"resource": "contact", "additionalFields": {"companyId": "={{$node[\"Keap\"].json[\"id\"]}}"}, "addressesUi": {"addressesValues": []}, "emailsUi": {"emailsValues": [{"field": "EMAIL1", "email": "=fakeemail{{Date.now()}}@test.com"}]}}, "name": "Keap2", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [750, 350], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "44871399-7e52-4d49-9090-32a07fc55440"}, {"parameters": {"resource": "contact", "operation": "get", "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}", "options": {}}, "name": "Keap3", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [900, 350], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "17a7232c-8cc9-448c-a2c0-bd1084fdd771"}, {"parameters": {"resource": "contact", "operation": "getAll", "limit": 1, "options": {}}, "name": "Keap4", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1040, 350], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "7007df2b-c66a-4a7b-b690-9d0124e73357"}, {"parameters": {"resource": "contact", "operation": "delete", "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}"}, "name": "Keap5", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1200, 350], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "f61df6f5-ab1c-4344-8ab5-8f09ceddbe8b"}, {"parameters": {"resource": "contactNote", "userId": 1, "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}", "additionalFields": {"body": "", "title": "=Note{Date.now()}}"}}, "name": "Keap6", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [900, 510], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "1af7e3bf-9135-4ffe-a875-b6ae453a44b1"}, {"parameters": {"resource": "contactNote", "operation": "get", "noteId": "={{$node[\"Keap6\"].json[\"id\"]}}"}, "name": "Keap7", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1050, 510], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "d8252291-bbf9-4ee1-a9d4-093ae967ef12"}, {"parameters": {"resource": "contactNote", "operation": "update", "noteId": "={{$node[\"Keap6\"].json[\"id\"]}}", "additionalFields": {"title": "Updated Title"}}, "name": "Keap8", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1200, 510], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "54756d28-a79f-4427-8d5d-5c2d80ac5b17"}, {"parameters": {"resource": "contactNote", "operation": "getAll", "limit": 1, "filters": {}}, "name": "Keap9", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1360, 510], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "81bdce10-1de6-4d11-8624-1a0516931e49"}, {"parameters": {"resource": "contactNote", "operation": "delete", "noteId": "={{$node[\"Keap6\"].json[\"id\"]}}"}, "name": "Keap10", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1500, 510], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "a8cb848a-36d8-4fb6-b845-37674c6c7733"}, {"parameters": {"resource": "contactTag", "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}", "tagIds": [93]}, "name": "Keap11", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [900, 660], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "c81d1109-4fbb-4dde-afe4-386710f9f624"}, {"parameters": {"resource": "contactTag", "operation": "getAll", "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}", "limit": 1}, "name": "Keap12", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1050, 660], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "b0c03850-0004-4680-9da0-9ea9ded1a525"}, {"parameters": {"resource": "contactTag", "operation": "delete", "contactId": "={{$node[\"Keap2\"].json[\"id\"]}}", "tagIds": "93,"}, "name": "Keap13", "type": "n8n-nodes-base.keap", "typeVersion": 1, "position": [1190, 660], "credentials": {"keapOAuth2Api": {"id": "178", "name": "Keap OAuth2 API creds"}}, "id": "311e758c-48f7-4738-862d-b34299ac6d08"}] | {"Keap": {"main": [[{"node": "Keap1", "type": "main", "index": 0}, {"node": "Keap2", "type": "main", "index": 0}]]}, "Keap2": {"main": [[{"node": "Keap6", "type": "main", "index": 0}, {"node": "Keap11", "type": "main", "index": 0}]]}, "Keap3": {"main": [[{"node": "Keap4", "type": "main", "index": 0}]]}, "Keap4": {"main": [[{"node": "Keap5", "type": "main", "index": 0}]]}, "Keap6": {"main": [[{"node": "Keap7", "type": "main", "index": 0}]]}, "Keap7": {"main": [[{"node": "Keap8", "type": "main", "index": 0}]]}, "Keap8": {"main": [[{"node": "Keap9", "type": "main", "index": 0}]]}, "Keap9": {"main": [[{"node": "Keap10", "type": "main", "index": 0}]]}, "Keap10": {"main": [[{"node": "Keap3", "type": "main", "index": 0}]]}, "Keap11": {"main": [[{"node": "Keap12", "type": "main", "index": 0}]]}, "Keap12": {"main": [[{"node": "Keap13", "type": "main", "index": 0}]]}, "Start": {"main": [[{"node": "Keap", "type": "main", "index": 0}]]}} |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6