Advertisement
EvaldoMaciel

n8n - Fluxo básico

Jun 21st, 2020
1,924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.70 KB | None | 0 0
  1. {
  2.   "nodes": [
  3.     {
  4.       "parameters": {},
  5.       "name": "Start",
  6.       "type": "n8n-nodes-base.start",
  7.       "typeVersion": 1,
  8.       "position": [
  9.         240,
  10.         140
  11.       ],
  12.       "disabled": true
  13.     },
  14.     {
  15.       "parameters": {
  16.         "path": "festa",
  17.         "options": {}
  18.       },
  19.       "name": "Webhook",
  20.       "type": "n8n-nodes-base.webhook",
  21.       "typeVersion": 1,
  22.       "position": [
  23.         400,
  24.         140
  25.       ]
  26.     },
  27.     {
  28.       "parameters": {
  29.         "url": "https://webhook.site/6d08de69-d615-46a9-9d09-5d818d871607",
  30.         "options": {},
  31.         "queryParametersUi": {
  32.           "parameter": [
  33.             {
  34.               "name": "teste",
  35.               "value": "= {{$node[\"FunctionItem\"].json[\"myVariable\"]}}"
  36.             }
  37.           ]
  38.         }
  39.       },
  40.       "name": "HTTP Request",
  41.       "type": "n8n-nodes-base.httpRequest",
  42.       "typeVersion": 1,
  43.       "position": [
  44.         760,
  45.         140
  46.       ]
  47.     },
  48.     {
  49.       "parameters": {
  50.         "functionCode": "item.myVariable = `Ei ${item.query.pessoa}, bem-vindo a ${item.query.evento}`;\nreturn item;\n"
  51.       },
  52.       "name": "FunctionItem",
  53.       "type": "n8n-nodes-base.functionItem",
  54.       "typeVersion": 1,
  55.       "position": [
  56.         560,
  57.         140
  58.       ]
  59.     }
  60.   ],
  61.   "connections": {
  62.     "Webhook": {
  63.       "main": [
  64.         [
  65.           {
  66.             "node": "FunctionItem",
  67.             "type": "main",
  68.             "index": 0
  69.           }
  70.         ]
  71.       ]
  72.     },
  73.     "FunctionItem": {
  74.       "main": [
  75.         [
  76.           {
  77.             "node": "HTTP Request",
  78.             "type": "main",
  79.             "index": 0
  80.           }
  81.         ]
  82.       ]
  83.     }
  84.   }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement