Get newest / latest message from Slack channel

Hi there,

Sorry in advance if this been addressed already but can’t get any solution from help or community topics I’ve found.

I’m using the “Watch public message channel” module, connected to a public channel of my slack team.

My goal is:

  • to trigger this automatisation every time a new message is added on the selected channel
  • to retrieve the newest message toi process the automatisation

I have a double issue using this module alone:

  • it’s not started every time a new message is sent : do I need to add like a webhook somewhere to achieve this ? Because as per description, I was expecting this module to do the “watch” job alone.

  • the message triggered when it’s been run is quite random, but not always the newest message of the channel. It seems like it’s randomly picking of the the last 10/20 message of the channel but not the last one. Any idea why ?

Thanks a ton !

Welcome to the Make community!

This is because the module is a POLLING trigger, and not an INSTANT (Webhook) trigger.

There are two main types of triggers, Polling (scheduled), and Instant (webhooks). Polling triggers can only run on a schedule. Instant triggers can be run as soon as data is received by the webhook.

Polling means Make checks external service for changes (pull changes to Make).
Webhook (instant) triggers means external service calls Make when there are new changes (push changes to Make).

The module you are using does not push changes — it’s basically a API request that Make has to occasionally “call” to fetch the latest changes/items.

To find out more on the different types of Trigger modules, see refer to Types of Modules and Webhooks sections of the Make help center.

See if your app has an “Instant” or “Webhook” trigger in Make. If not, check if the third-party service has a feature that can send out a webhooks when content is created/updated - and then you can point it to a “Custom Webhook” trigger in your scenario.

3 Likes