Request URL to consume slack events | Community
Skip to main content
Anil_Umachigi
Adobe Employee
Adobe Employee
March 6, 2021
Solved

Request URL to consume slack events

  • March 6, 2021
  • 2 replies
  • 2718 views

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 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by duynguyen_adobe

@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-actions.

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

2 replies

Anil_Umachigi
Adobe Employee
Adobe Employee
March 6, 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) 

duynguyen_adobeAdobe EmployeeAccepted solution
Adobe Employee
March 9, 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-actions.

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

Anil_Umachigi
Adobe Employee
Adobe Employee
March 11, 2021
Thank you @duynguyen_adobe, yes I was able to use the CLI and create the web action in I/o runtime. That worked all fine. from the CLI I can post using curl and view the response. Wondering how are the events from slack consumed? do they show up in param arguments to then read and work upon further? Please bear with as I'm just getting started with this 🙂 Thank you gain for all the YouTube videos and help articles.