anchor.diff:  # PagerDuty
   
  -The [PagerDuty](http://pagerduty.com/) integration in Buildkite lets you send [change events](https://developer.pagerduty.com/docs/events-api-v2/send-change-events/) when your builds pass and fail.
  +The [PagerDuty](http://pagerduty.com/) integration in Buildkite can send [change events](https://developer.pagerduty.com/docs/events-api-v2/send-change-events/) to PagerDuty when your builds finish.
   
   <%= image "overview.png", width: 2202/2, height: 638/2, alt: "Screenshot of the recent events in PagerDuty" %>
   
   {:toc}
   
  -## Generating an PagerDuty Integration API Key
  +## Generating a PagerDuty Integration API Key
   
  -In PagerDuty, go to the "Service Directory":
  +Before using the integration you'll need to generate a PagerDuty Integration API Key.
  +
  +In [PagerDuty](http://pagerduty.com/), go to the "Service Directory":
   
   <%= image "menu.png", width: 854/2, height: 324/2, alt: "Screenshot of the Service Directory link in the menu" %>
   
  
positive.code: ```
  {: codeblock-file="pipeline.yml"}
  
  At the end of each build, regardless of whether it passed or failed, Buildkite will send a PagerDuty a Change Event.
  
  <%= image "change-event.png", width: 2304/2, height: 1096/2, alt: "Screenshot of a Change Event inside PagerDuty sent from Buildkite" %>
  
  You can use a [conditional](/docs/pipelines/conditionals) to only send PagerDuty Change Events if the build passed:
  
  ```yaml
  notify:
  
negative.code: 
  Once you've filled out this form, select "Add Integration".
  
  Copy the "Integration Key" from your Integrations list and  use it in [Sending Change Events from your pipeline](#sending-change-events-from-your-pipeline).
  
  <%= image "integration-with-key.png", width: 2262/2, height: 822/2, alt: "Screenshot of the Buildkite integration in PagerDuty" %>
  
  ## Sending Change Events from your pipeline
  
  By default, after you've added an Integration API Key, Buildkite will send PagerDuty a Change Event every build regardless of whether the build passed or failed.
  
  Add the PagerDuty [Integration API Key](#generating-a-pagerduty-integration-api-key) to the [`notify` attribute](/docs/pipelines/notifications) of your build configuration:
  
  ```yaml
  steps:
  