Automate PagerDuty alerts in Slack/Cisco Webex Teams with webMethods.io Integration
Tags: integration, pagerduty, slack, cisco
Published: 2024-05-22 07:09:48

---
title: Automate PagerDuty alerts in Slack/Cisco Webex Teams with webMethods.io Integration
published: true
date: 2024-03-28 08:48:05 UTC
tags: integration, pagerduty, slack, cisco
canonical_url: https://tech.forums.softwareag.com/t/automate-pagerduty-alerts-in-slack-cisco-webex-teams-with-webmethods-io-integration/293843
---

 

## Overview

Dive into this step-by-step guide and learn how easy you can build a workflow that automatically sends targeted notifications to your chosen Slack channel or Webex Teams space, not just for new PagerDuty incidents, but also for resolved, escalated, and reassigned ones.

### Prerequisite:

- [webMethods.io](http://webmethods.io/)Integration tenant – [sign up here](https://signup.softwareag.cloud/#/basic?product=webmethodsioint) for a free trial if you’re new (use the [advanced form](https://signup.softwareag.cloud/#/advanced?product=webmethodsioint) for more options).
- PagerDuty account
- Slack account
- Cisco Webex Teams account

## Set up a trigger action

Login to your [webMethods.io Integration](https://www.softwareag.cloud/site/product/webmethods-io-integration.html) tenant, create a new project or choose an existing one and create a blank workflow. If you need a refresher on how to get to this point, this [guide](https://docs.webmethods.io/integration/workflow_building_blocks/creating_first_workflow/#gsc.tab=0) can be a great introduction.

To set up the trigger action, click on the small setting icon on the Start step and choose the PagerDuty trigger.

[![PagerDuty action](https://global.discourse-cdn.com/techcommunity/optimized/3X/4/4/448db86f05986e568082f05f107a1574fe31a01a_2_310x221.png)](https://global.discourse-cdn.com/techcommunity/original/3X/4/4/448db86f05986e568082f05f107a1574fe31a01a.png "PagerDuty action")

[![PagerDuty action configuration](https://global.discourse-cdn.com/techcommunity/optimized/3X/4/9/49896f2d4c68db6556c5f2fc5e8a9bf35c67163d_2_309x225.png)](https://global.discourse-cdn.com/techcommunity/original/3X/4/9/49896f2d4c68db6556c5f2fc5e8a9bf35c67163d.png "PagerDuty action configuration")

Select _New incident_ as a trigger and complete the authorization – connect [webMethods.io](http://webMethods.io) Integration with your PagerDuty account - you need to provide PagerDuty API Key which you can generate in your account under Integrations->API Access key.

Click **Save**. You should see the test trigger window.

To test your trigger, you need to perform the trigger action. Open PagerDuty and add new incident:

[![Create new incident](https://global.discourse-cdn.com/techcommunity/optimized/3X/a/4/a4a9f9ad6346ad35b9db90a40dd12d21f12ea0ba_2_311x400.png)](https://global.discourse-cdn.com/techcommunity/original/3X/a/4/a4a9f9ad6346ad35b9db90a40dd12d21f12ea0ba.png "Create new incident")

Go back to the [webMethods.io](http://webMethods.io) Integration workflow and click **Test**. You should see the output data from the trigger which [webMethods.io](http://webMethods.io) Integration will use to configure and test the rest of the workflow. Click **Done**.

## Configure the notification step

You can now proceed with setting up the notification step – choose the app that best works for you, for example:

### Slack

Add the Slack connector to the canvas with the drag and drop feature. This automatically connects with the PagerDuty trigger.

![Search the Slack connector](https://global.discourse-cdn.com/techcommunity/original/3X/4/0/400f9252b75753eb5819e8568ece125e00b96b37.png)

![Connect the Slack connector](https://global.discourse-cdn.com/techcommunity/original/3X/1/5/1511af2f9d242c76409c3cb15e476e48e234a5fb.png)

Click on the small settings icon on the Slack connector, select _ **Post Message to Channel** _ as action and complete the authorization – connect [webMethods.io](http://webMethods.io) Integration with your Slack account.

[![Slack connector action](https://global.discourse-cdn.com/techcommunity/optimized/3X/8/2/8287201e70117dacae0a4d8d6052b72c50c4b876_2_324x375.png)](https://global.discourse-cdn.com/techcommunity/original/3X/8/2/8287201e70117dacae0a4d8d6052b72c50c4b876.png "Slack connector action")

Click **Next**.

Now you can proceed with the action configuration – choose the _Slack channel type_ and then type the _channel ID_ where you want to post a message. Type the message body – use the Incoming data panel to include incident information received from the trigger output:

[![Slack connector configuration](https://global.discourse-cdn.com/techcommunity/optimized/3X/9/1/91c2b1e1987e078dc411b70be301d77d99526ff0_2_690x344.png)](https://global.discourse-cdn.com/techcommunity/original/3X/9/1/91c2b1e1987e078dc411b70be301d77d99526ff0.png "Slack connector configuration")

Click **Next** and then **Done**.

### Cisco Webex Teams

Add the Cisco Webex Teams connector to the canvas with the drag and drop feature. This automatically connects with the PagerDuty trigger.

![Search Cisco Webex Teams connector](https://global.discourse-cdn.com/techcommunity/original/3X/8/0/809acb94aafc46dee7572f0bd873e0544e952fec.png)

![Connect Cisco Webex Teams connector](https://global.discourse-cdn.com/techcommunity/original/3X/9/c/9cbf03b5e466b4b1bed2d988f4e4db1d6e777d85.png)

Click on the small settings icon on the Cisco Webex Teams connector, select _ **Post new message** _ as action and complete the authorization – connect [webMethods.io](http://webMethods.io) Integration with your Cisco Webex Teams account.

[![Cisco Webex Teams connector action](https://global.discourse-cdn.com/techcommunity/optimized/3X/7/b/7bc71a1c0eafca9eb46c5ac2df4f793f745d96da_2_328x375.png)](https://global.discourse-cdn.com/techcommunity/original/3X/7/b/7bc71a1c0eafca9eb46c5ac2df4f793f745d96da.png "Cisco Webex Teams connector action")

Now you can proceed with the action configuration – choose the _Space ID_ where you want to post the message. Type the message body – use the Incoming data panel to include incident information received from the trigger output.

[![Cisco Webex Teams connector configuration](https://global.discourse-cdn.com/techcommunity/optimized/3X/0/4/04a92d6bf82f93fb36f158252c677416dc289ad7_2_690x345.png)](https://global.discourse-cdn.com/techcommunity/original/3X/0/4/04a92d6bf82f93fb36f158252c677416dc289ad7.png "Cisco Webex Teams connector configuration")

Click **Next** and then **Done**.

Once you are done with the notification configuration step, connect it to the Stop step and save your workflow:

[![Final workflow](https://global.discourse-cdn.com/techcommunity/optimized/3X/e/9/e9a838faf53d582db2b0a66fd8981da004abe646_2_690x310.png)](https://global.discourse-cdn.com/techcommunity/original/3X/e/9/e9a838faf53d582db2b0a66fd8981da004abe646.png "Final workflow")

## Test the workflow

You can now run the workflow using the play button in the right upper corner and review the result. If you have configured the workflow correctly, you should see the newly created message in your Slack channel or your Cisco Webex Teams space:

[![Slack channel message](https://global.discourse-cdn.com/techcommunity/optimized/3X/0/9/09b9a5f2209dc016ecb1f4e75621583d187fcc03_2_690x167.png)](https://global.discourse-cdn.com/techcommunity/original/3X/0/9/09b9a5f2209dc016ecb1f4e75621583d187fcc03.png "Slack channel message")

[![Cisco Webex Teams space message](https://global.discourse-cdn.com/techcommunity/optimized/3X/7/1/718a4506a91e11228b1bb89bf31feae728aed629_2_690x154.png)](https://global.discourse-cdn.com/techcommunity/original/3X/7/1/718a4506a91e11228b1bb89bf31feae728aed629.png "Cisco Webex Teams space message")

Now every time a new incident is created in PagerDuty, a new message will be automatically posted in your Slack channel or Cisco Webex Teams space. Please note that this may take some time.

## Other use cases

[Read full topic](https://tech.forums.softwareag.com/t/automate-pagerduty-alerts-in-slack-cisco-webex-teams-with-webmethods-io-integration/293843) to find more.