UNPKG

node-red-contrib-processcube-mcp

Version:
109 lines 2.68 kB
[ { "id": "28bce906c0d46bbe", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "7a36229fa375cb73", "type": "debug", "z": "28bce906c0d46bbe", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 440, "y": 220, "wires": [] }, { "id": "c0ed620e62f5e11f", "type": "e-mail", "z": "28bce906c0d46bbe", "server": "smtp.gmail.com", "port": "465", "authtype": "BASIC", "saslformat": true, "token": "oauth2Response.access_token", "secure": true, "tls": true, "name": "", "dname": "", "x": 570, "y": 80, "wires": [] }, { "id": "7d9a25a76052081d", "type": "function", "z": "28bce906c0d46bbe", "name": "create email", "func": "const email = msg.payload;\n\nmsg.to = email.empfaenger;\nmsg.topic = email.betreff;\nmsg.payload = email.text;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 120, "wires": [ [ "c0ed620e62f5e11f", "fc175da8f0d0f4d0" ] ] }, { "id": "fc175da8f0d0f4d0", "type": "function", "z": "28bce906c0d46bbe", "name": "create result", "func": "msg.payload = \"Die Mail wurde verschickt\";\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 570, "y": 120, "wires": [ [ "a3a1c2bc33cf4703" ] ] }, { "id": "0356b56a3788b930", "type": "mcp-tool-input", "z": "28bce906c0d46bbe", "name": "send-mail", "description": "Diese Tool kann eine Mail verschicken.\nPflicht Argumente:\nempfaenger (email),\nbetreff (text)\ntext (text)", "x": 140, "y": 120, "wires": [ [ "7a36229fa375cb73", "7d9a25a76052081d" ] ] }, { "id": "a3a1c2bc33cf4703", "type": "mcp-tool-output", "z": "28bce906c0d46bbe", "name": "Result", "x": 730, "y": 120, "wires": [] } ]