Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Tasks & Project Management

Tasks & Project Management

Route IT service requests from a Slack slash command through Postgres approvals

When an employee runs the /it slash command in Slack, a catalog modal loads services from Postgres, routes approvals to managers or the IT lead via DM, and records each request.

What it does

## Internal IT Service Catalog in Slack ### How it works Employees type /it in Slack, pick a service from a catalog and fill in a short form. The workflow does the rest. 1. Catalog modal: the slash command opens a modal listing active services by category. After choosing one, the modal turns into that service's own form (dropdowns, text fields, justification), all defined in the database. 2. Approval when required: a service can need no approval, the requester's manager, or the IT lead. The approver gets a Slack DM with Approve and Deny buttons, only they can decide, and the message updates in place. 3. Fulfillment: services with an automation endpoint run it automatically (password reset, access grants). Anything else, and any automation that fails, goes to the IT queue channel with a Mark complete button. 4. Feedback and audit: the requester is told at every step, and every action is written to an audit table. New services are added with a single INSERT into sc_catalog_items, no workflow changes needed. ### Slack app setup - Create a Slack app with scopes commands, chat:write and im:write. Install it and use the bot token as a Header Auth credential (Authorization: Bearer xoxb-...) on every Slack HTTP node. - Slash command /it with Request URL https:// /webhook/it-catalog. - Interactivity Request URL https:// /webhook/it-interactive. - Copy the signing secret into Set Catalog Config (requests without a valid signature are rejected). ### Setup steps - Add Postgres credentials, then run the manual setup once. - Replace the placeholder Slack ids in the directory (employee, manager, IT lead) and set the IT queue channel id in Set Catalog Config. - Point the automation URLs in the catalog to your own endpoints (add a Header Auth credential to the automation node if needed). - Activate the workflow. ### Layout 1 Setup 2-3 Slack entry and slash command 4-7 Form, validation, request creation 8-9 Button clicks and approvals 10-12 Fulfillment and completion

The steps

  1. Manual Trigger - Run Setup Once
  2. Postgres - Create Catalog Tables
  3. Webhook - Slack Slash Command
  4. Webhook - Slack Interactivity
  5. Set Catalog Config
  6. Code - Verify Slack Request
  7. Switch - Route Request Kind
  8. Respond - Reject Unverified
  9. Respond - Acknowledge Slash Command
  10. Postgres - Load Active Catalog
  11. Code - Build Catalog Modal
  12. HTTP - Open Catalog Modal
  13. Code - Route Interaction
  14. Switch - Route Interaction

50 steps in total.

Similar automations