How to make messaging between WhatsApp and Discord#
To exchange messages between WhatsApp and Discord 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 Discord to WhatsApp#
- Create a Scenario
- Name a Scenario (Discord to GREEN API)
Slack trigger setup#
- In the trigger, select Discord application
- Specify the event to which you want to respond (Watch Channel Messages)
- Login to your Discord 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.
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
orgroupID@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
Creating a Scenario to send message from WhatsApp to Discord#
- Create a Scenario
- Name a Scenario (GREEN API to Discord)
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.
Configuring the Discord action#
- In action select Discord application
- Specify the action to be performed (Create a Message)
- Login to your Discord account
- From the list of methods, select send a message to a channel
- From the list, select the channel to which the message will be sent
- Form the message to be sent from the trigger fields
Сomposing a message
When composing a message, you can use italic text, breaking the line and emoji. For example: *Italic text*
, _Italic text_
.