Skip to content

Slack How to make messaging between WhatsApp and Slack#

To exchange messages between WhatsApp and Slack needed to create two scenarios

Log in to your Make account and configure the Green API application.

Automation scenario#

Let's make an example of sending and receiving messages from WhatsApp to a private Slack channel and vice versa.

Creating a Scenario to send message from Slack to WhatsApp#

  • Create a Scenario
  • Name a Scenario (Slack to GREEN API)

Slack trigger setup#

  • In the trigger, select Slack application
  • Specify the event to which you want to respond (Watch Private Channel Messages)
  • Login to your Slack account
  • Select the channel with which the automation will be associated
  • Specify the maximum number of results to be worked with during one execution cycle.

If there is a message in the selected channel, you can see which fields will be available when setting up automation.

slack-trigger-settings

Configuring the GREEN API action#

  • In action select GREEN API application
  • Specify the action to be performed (Send Message)
  • Choose your configured instance
  • The chat to which the message will be sent, select from the contact list or type the chat number in the format phoneNumber@c.us or groupID@g.us
Chat number formats

phoneNumber — full phone number in international format. Do not use zeros, brackets, or hyphens when entering a phone number in international format..
groupID@g.us - Group chat Id presents a string of XXXXXXXXXX-XXXXXXXXXX@g.us or XXXXXXXXXXXXXXXXX@g.us form.

  • Form the message to be sent from the trigger fields
Composing a message

When composing a message, you can use bold, italic or strikethrough text. You can also break the line and use emoji. For example: *Bold text*, _Italic text_, ~Strikethrough text~.

  • Make an action test, you will receive a prepared template in your phone

settings-actions-green-api

Creating a Scenario to send message from WhatsApp to Slack#

  • Create a Scenario
  • Name a Scenario (GREEN API to Slack)

Green API trigger setup#

  • In the trigger, select Green API application
  • Specify the event to which you want to respond (Last Incoming Messages)
  • Choose your configured instance
  • From the list of contacts, select the chat from which the message will be receive

Make a test, if there is a message in the selected chat, you can see which fields will be available when setting up automation.

green-api-trigger-settings

Configuring the Slack action#

  • In action select Slack application
  • Specify the action to be performed (Create a Message)
  • Login to your Slack account
  • The channel or chat to which the message will be sent, select from the contact list or type the name manually
Rule when entering the name of a channel or chat

You must specify a public channel, private channel, or an IM channel. You can either pass the channel's name (#general) or encoded ID (C0123BE12L).

  • Form the message to be sent from the trigger fields
Сomposing a message

When composing a message, you can use bold, italic or strikethrough text. You can also break the line and use emoji. For example: *Bold text*, _Italic text_, ~Strikethrough text~.

settings-actions-slack