Slack node sending messages twice

Hello,

Hope you are well.
I have a very strange issue where a slack node sends two messages at the same time, instead of one.
You’ll find below the flow, which is very simple. The idea is just to collect information in notion then send it in slack.

For the example, I removed the expression in the message sent to slack, the text is just “Test”.
One thing is very strange: if I remove the notion node, and connect directly the start to slack, then the message is sent only once.
I added also a gif to show you live what’s happening.

Animation

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        110,
        310
      ]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": "3a58c75c6a4140beb092e86536225d7a",
        "options": {}
      },
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 1,
      "position": [
        390,
        290
      ],
      "credentials": {
        "notionApi": "Magic Bao"
      }
    },
    {
      "parameters": {
        "channel": "test-n8n",
        "text": "test",
        "attachments": [
          {}
        ],
        "otherOptions": {}
      },
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        610,
        300
      ],
      "credentials": {
        "slackApi": "Magic Bao"
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hey @Cyril,

How many records is your notion node returning? The slack node will loop automatically so if you have 2 records coming out of notion the slack node will also run twice.

1 Like

Oh ok I did not know that, how silly of me. I’ll create a way to merge those then.

Thanks !

1 Like

If it helps I do it with a function node when going from Zendesk to Slack, I popped an example up the other day which can be found here: https://n8n.io/workflows/1265 from the function node to Slack should help cover what you want.