Request URL to consume slack events

Avatar

Avatar

Anil_Umachigi

Avatar

Anil_Umachigi

Anil_Umachigi

05-03-2021

Hello there

I'm testing a use case where I could post some message on slack using adobe I/o headless app. 

I'm wondering what feature to use and how to set it up? to consume the events from slack 

 

"from slack help" 

Your app can subscribe to be notified of events in Slack (for example, when a user adds a reaction or creates a file) at a URL you choose 

I need to enter a requestURL in slack config, how do I generate this url within adobe I/o? 

any pointers would be great. 

 

anil 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

duypnguyen

Employee

Avatar

duypnguyen

Employee

duypnguyen
Employee

09-03-2021

@Anil_Umachigi - do you work with your app using AIO CLI? If not, our recommendation is to go with it, and this documentation portal would be useful to get started: https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html.

Specifically, what you need as a request URL for slack is a web action in I/O Runtime. More details at: https://github.com/AdobeDocs/adobeio-runtime/blob/master/guides/creating_actions.md#invoking-web-act....

From the action, you can make calls to any URL (such as slack post message) using HTTP client libraries such as node-fetch.

Answers (1)

Answers (1)

Avatar

Avatar

Anil_Umachigi

Avatar

Anil_Umachigi

Anil_Umachigi

06-03-2021

Quick update, I was able to create the webhook (although would be great to get some pointers to documentation)

I can now find it under same runtime "namespace" under default package.

The headless app is under the same runtime, wondering how will the actions within the headless app use the incoming events to trigger the script (to post back on slack channel)