FlowChat-Logo-White.png
Find the insights and best practices about FlowChat
SOCIAL MEDIA PLATFORMS
Send DMs via WebHooks
In this tutorial, you’ll learn how to send direct messages on Facebook, LinkedIn, Instagram, X, and TikTok using WebHooks.

 

 

1. Introduction

This feature lets you send a message by receiving two pieces of data from an external platform: the message text and the profile URL of the recipient.

2. Access your account menu

Click here to open your account menu settings.

3. Click "WebHooks"

Select WebHooks from the menu to manage your WebHook actions.

4. Choose "Send Direct Message" action

In the WebHooks section, in the Choose Action dropdown, select "Send Direct Message" to specify that the WebHook will send a DM.

5. Click "Create WebHook"

Click "Create WebHook" to begin configuring your data WebHook.

6. Waiting for your sample data

A window will display your unique WebHook URL. Copy it into the external platform sending the data. The window stays open until the first payload arrives, which is used as a sample to map fields.

7. Setting up the external data

We’ll use Postman in this example for demonstration purposes. But you can also use other external platforms like Zapier, Make, or GoHighLevel.

8. Set the request type and WebHook URL

You should use the POST method and paste the WebHook URL given in the steps above.

9. Set the data

Next, you should configure the data to send via WebHook. The payload should only include the message and the recipient’s profile URL. The field names don’t need to match exactly—we’ll map them in the next steps.

10. Send the data

Now, send the data using the POST method, formatted as form-data. Most platforms also provide an option to send sample or test data, which you can use to verify the setup.

11. Setting up the WebHook

Back on your WebHook page, after receiving the sample data, the settings window will be displayed automatically. Here, you’ll define how to use the received data.

12. Enter your WebHook name

Enter your WebHook internal name such as "Send DM" to describe the WebHook's purpose clearly.

13. Enable the WebHook

Use the switch to enable the WebHook so it becomes active once you finish the settings. Alternatively, you can leave it disabled and enable it later.

14. Select the sender social profile

When mapping the data fields, you need to select the social profile that will send the message. Remember, this profile must be logged in to the social platform for the message to be delivered.

15. Map the data fields

Select which received fields correspond to the Message and Social Profile URL. Extra fields may be included, but only map the ones we need.

16. Click "Save Changes"

Click the "Save Changes" button to store your WebHook settings securely.

17. Click "Close"

Once saved, click the "Close" button to exit the WebHook configuration window.

18. WebHooks List

Your new WebHook will be listed on the page, where you can access it to edit the settings if needed.

19. Access the "Automation Queue"

For the Send Direct Message action to be triggered when data is received, you need to access the Automation Queue page from the side menu.

20. Leave Automation Queue page open

Now that the WebHook is ready to receive external data, keep the Automation Queue page open (pop-ups and standby disabled). Here, you can also confirm if the selected profile is logged in.

21. Send Direct Message action

Once the data is received, the Automation Queue page will open a window to send the message. This usually starts in 1–3 minutes, or after any running automation finishes.

22. Message Sent

At the end of sending the direct message, the results will be displayed, and the window will close automatically.

 

Did this answer your question?