DEV Community

sydneylai
sydneylai

Posted on

2

A quick look at Slack's Webhook Logic Flow

Slack Webhook logic flow illustrated with OutSystems

Purpose: To show the Slack webhook logic in a dashboard integration
For: Devs familiar with OutSystems's dev platform
Listen: Podcast interview with software eng on how Slack was built
Ask for help: OutSystems Forms (2 Hour Response Time)
Written by @sydneylai


📝 Where do I start?

Step 1: Have an app to integrate with

Step 2: Create a Slack Incoming Webhook

This is the most common integration, where you have your webapp Slack you a message when an action is triggered.

https://api.slack.com/messaging/webhooks

Find your specific token and Hook URL

Step 3: Use a Slack Integration - a Forge Component

Install
https://www.outsystems.com/forge/component-overview/5381/slack-integration

💡 Hint: The way the dev decided to write this component, the token is hard-coded so this means you should create a dynamic token to allow posts in various channels.


Step 4: Logic Flow Explained

See how the Issue Tracker dashboard communicates with Slack's Inbound Webhook

(Zoom In) On the left is the Logic Flow and right is the folder structure of containing the logic in the app, which includes server-side actions, functions, as well as REST and SOAP integrations

At the Start of the logic flow, the user is assigning a ticket status. After the ticket is created, the Server Action or Action that runs logic on the server side, assigns a ticket ID and a ticket is created.

The request is then sent to Slack

Assign a Request

Run a Server Action

Result


BONUS: OutSystems Resources

Features Tutorials
Chatbot Build 🔗
Join Dev community 🔗
Apply for free developer school 🔗
How To Videos 🔗

Slack Specific

Features Tutorials
Podcast on how Slack was built 🔗
Blog post on interview with Slack eng 🔗
Video on Slack Logic Flow 🔗

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay