How to Build an n8n Flow to Connect Slack with WhatsApp and Manage Channels Based on WhatsApp Numbers?

I want to build a flow in n8n to connect Slack with WhatsApp. Specifically, I need to ensure that each WhatsApp number corresponds to a channel in Slack. Here are the requirements:

  1. When a message is received in WhatsApp, check if there is an existing Slack channel corresponding to the WhatsApp number.
  2. If a channel with the WhatsApp number already exists in Slack, do not create a new one.
  3. If there is no channel with the WhatsApp number, create a new Slack channel for that number.

This flow will automate the creation and management of Slack channels based on incoming messages from WhatsApp.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Abdullah_Amer

Not sure what you are expecting here?

I understand you want to know how to do it, but what is your exact question here?

Can you do it? Yes this should be possible to create it with n8n.
Can someone do it for you? Yes you can hire someone to do it for you.

Are you struggling doing it yourself? Then please let us know where you are stuck.
If it is generally using n8n, there is some course which will help you a lot. even some new video courses :slight_smile:

Hi @BramKn ,

Thanks for your response!
Here’s what I tried but i find no solution :

I want to connect slack with whatsapp to make any number will chat me a new channel will be created in my slack if he message again i will receive all in channel created before .

So i want to make each channel name will be same number in whatsapp

Is that available to perform in n8n ?

Hi @Abdullah_Amer

I have not done it, but seems like it should be possible. :slight_smile:

It allows you to pick a channel name, so yes you should be able to put a number in there. :slight_smile:

I made http request via api to get all channels but i stuck here how to reference all names in each object as you know response is array (to check array contains value)?

Also how to get data from action one when i’m in example in action 7 ?

Update first question solved with this expression : {{ $json.channels.map(channel => channel.name) }}

Second Solved
image

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.