Automation library · Alerts and monitoring

List recent ServiceNow incidents in Slack

Started by another system calling it, and works across Slack. 21 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

21 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 4Logic 10Service 7

The steps in the order they run, from what starts it.

  1. 1WebhookWebhookStarts it
  2. 2Parse WebhookSetLogic
  3. 3Route MessageSwitchLogic
  4. 4Respond to Slack WebhookRespond To WebhookStarts it
  5. 5Close Modal PopupRespond To WebhookStarts it
  6. 6Send 200Respond To WebhookStarts it
  7. 7ServiceNow ModalHttp RequestService
  8. 8ServiceNowService NowService
  9. 9Were Incidents Found?IfLogic
  10. 10Sort by Most RecentSortLogic
  11. 11No Matches - Was a Channel Selected?IfLogic
  12. 12Retain First 5 IncidentsLimitLogic
  13. 13Channel - Notify User no Incidents MatchedSlackService
  14. 14DM - Notify User no Incidents MatchedSlackService
  15. 15Loop Over ItemsSplit In BatchesLogic
  16. 16Concatenate Incident DetailsSummarizeService
  17. 17Format Incident DetailsSetLogic
  18. 18Format Slack MessageSetLogic
  19. 19Was a Channel Selected?IfLogic
  20. 20Channel - Send Matching IncidentsSlackService
  21. 21DM - Send Matching IncidentsSlackService

How it's built

Starts on
Another system calling it
Steps
21, with 4 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Slack account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.