Configure Webhook Integration
Webhook integrations in Harness AI SRE enable bidirectional communication with external monitoring tools, CI/CD systems, and other services. These integrations process incoming webhook payloads to create alerts and incidents in AI SRE, and can also send updates back to external systems when configured with proper authentication and connectors.
Overview
Webhook integrations provide real-time, scalable processing of external system events with 25+ pre-configured templates for popular tools and services. Key capabilities include:
- Real-Time Processing: Immediate processing of alerts, incidents, and deployment events from external systems
- Automated Incident Creation: Automatically create incidents and alerts from external monitoring tools, CI/CD systems, and ticketing platforms
- Dual Trigger Methods: Trigger integrations via webhook endpoint URL or email address, supporting both modern webhook-enabled systems and legacy email-based notification tools
- Bidirectional Synchronization: Maintain sync with external systems like ServiceNow and Jira (comments, status updates, work notes)
- Flexible Payload Mapping: Customize field extraction and mapping for different webhook sources with custom field support
- Centralized Management: Manage all webhook integrations from a single interface with scalable, high-volume processing
Integration Types and Templates
Alert Type Integrations
Process alerts and monitoring data from external systems:
Available Templates:
- AlertManager - Prometheus AlertManager notifications
- AlertSite - Website monitoring alerts
- BigPanda - Alert correlation and management
- Bitbucket - Repository and pipeline alerts
- Cloudwatch - AWS CloudWatch alarms
- Datadog - Infrastructure and application monitoring
- Dynatrace - Application performance monitoring
- GitHub - Repository events and security alerts
- GitLab - CI/CD pipeline and security notifications
- Grafana - Dashboard and alerting notifications
- Grafana Incident - Grafana incident management
- Harness SLO - Service level objective violations
- Jira - Project and issue notifications
- Lacework - Cloud security alerts
- New Relic - Application performance and infrastructure monitoring
- Octopus Deploy - Deployment notifications
- Opsgenie - Incident management and alerting
- PagerDuty - On-call and incident notifications
- Sentry - Error tracking and performance monitoring
- ServiceNow - IT service management alerts
- Travis CI - Continuous integration build notifications
Incident Type Integrations
Handle incident data with bidirectional synchronization:
Available Templates:
- Jira Incident - Bidirectional sync with Jira issues (comments, status updates)
- ServiceNow Incident - Bidirectional sync with ServiceNow incidents (work notes, status updates)
Build Type Integrations
Process build and CI/CD notifications:
Available Templates:
- Harness Build - Harness CI pipeline build notifications
Deployment Type Integrations
Handle deployment events and notifications:
Available Templates:
- Harness Deployment - Harness CD deployment notifications
Integration Capabilities
Certain integrations support bidirectional communication, enabling AI SRE to both receive data from and send updates to external systems:
ServiceNow Integration
- Inbound: Receive incident notifications and updates from ServiceNow
- Outbound: Send work notes, comments, and status updates back to ServiceNow incidents
- Synchronization: Maintain real-time sync between AI SRE incidents and ServiceNow records
Jira Integration
- Inbound: Receive issue notifications and updates from Jira
- Outbound: Send comments, status updates, and field changes back to Jira issues
- Synchronization: Keep AI SRE incidents and Jira issues synchronized
Requirements for Bidirectional Sync
- Proper authentication configuration (API keys, OAuth)
- Appropriate connector setup for outbound communication
- Matching field mappings between systems
- Network connectivity for both inbound webhooks and outbound API calls
Integration Trigger Methods
Every webhook integration provides two methods to trigger alerts and incidents:
Endpoint URL
Each integration generates a unique webhook endpoint for HTTP POST requests. The endpoint URL is displayed on the integration configuration page and is ready to receive JSON payloads.
- Format:
https://app.harness.io/gateway/ir/tp/account/{account-id}/api/v1/mc/webhook/{webhook-id} - Method: HTTP POST with JSON payload
- Authentication: Endpoint URL contains unique webhook ID for secure routing
- Use Case: Preferred method for systems that support webhook integrations and structured data delivery
Email Address
Each integration generates a unique email address for email-based triggering. The email address is displayed on the integration configuration page alongside the endpoint URL.
- Format:
webhook-id@prod2.alerts.harness.io - Method: Standard email (SMTP)
- Content Processing: Email subject and body are parsed to extract alert information
- Use Case: Ideal for legacy monitoring tools, ticketing systems, or any service that supports email notifications but not webhooks
How Email Parsing Works
When an email is sent to the integration email address:
- Email Reception: AI SRE receives the email and associates it with the specific webhook integration
- Content Extraction: The system parses the email subject and body to extract alert information
- Field Mapping: Extracted data is mapped to alert fields based on the integration payload configuration
- Alert Creation: An alert or incident is created following the same processing rules as webhook-triggered alerts
Email-to-Alert Field Mapping:
- Subject Line: Mapped to the alert title or summary field
- Email Body: Parsed for alert description and additional context
- Sender Address: Captured as metadata for audit and tracking
- Timestamp: Email received time is used as the alert timestamp
- Attachments: Reserved for future use (currently not processed)
Configuration and Settings
Both trigger methods respect the same integration configuration:
- Enable Integration Toggle: Controls whether webhook or email-based alerts are processed
- Quiet Mode: When enabled, suppresses alerts from both trigger methods during quiet periods
- Payload Mapping: Field extraction and mapping configuration applies to both webhook payloads and email content
- Custom Fields: Custom fields defined in payload configuration apply to both trigger methods
Choosing a Trigger Method
Use Endpoint URL when:
- Your alert source supports webhook integrations (preferred method)
- You need structured JSON payload delivery
- Real-time, low-latency processing is critical
- You want precise control over field mapping
Use Email Address when:
- Your alert source only supports email notifications
- You are integrating with legacy monitoring tools
- You need a simpler integration method without webhook configuration
- You want a backup alert channel when webhook delivery fails
- Testing and debugging alert flows quickly
Creating Webhook Integrations
- Step by Step
- Interactive Guide
Step 1: Access Integrations
- Navigate to the Integrations tab in your Harness AI SRE platform
- Click New Integration to start creating a new webhook integration
- This opens the integration configuration interface
Step 2: Configure Basic Details
- Provide basic integration information:
- Name: Descriptive name for the integration (e.g., "Datadog Production Alerts", "ServiceNow Incidents")
- Type: Select the appropriate integration type
- Template: Choose from available pre-configured templates
- Choose Integration Type based on your use case:
- Alert: For monitoring, alerting, and notification systems (22+ templates available)
- Incident: For bidirectional incident management with ticketing systems (Jira, ServiceNow)
- Build: For CI/CD build notifications (Harness Build)
- Deployment: For deployment event processing (Harness Deployment)
Step 3: Save Initial Configuration
- Click Save to create the basic integration structure
- This generates the webhook endpoint and opens advanced configuration options
Step 4: Get Integration Trigger Credentials
After saving the integration, you will see two methods to trigger alerts:
-
Endpoint URL: Copy this URL to configure in your monitoring tools, CI/CD systems, or other services. The endpoint is unique to this integration and ready to receive JSON payloads via HTTP POST requests.
-
Email Address: Copy this email address to use as a notification destination in your alert source. The email address format is
webhook-id@prod2.alerts.harness.io. When an email is sent to this address, the subject and body are parsed to extract alert information.
Go to Integration Trigger Methods to understand when to use each method. Both methods respect the same Enable Integration and Quiet Mode settings configured for the integration.
Step 5: Configure Payload Mapping
- Click Payload Configuration to set up data mapping
- Review the pre-defined template that appears in the interface
- Examine the right panel which shows selected fields that are required for processing
- Select additional fields: Check the checkbox against any field you want to extract from incoming webhooks
- Selected fields appear in the list of extracted fields for processing
Step 6: Add Custom Fields
- Click Add Field to create custom fields for your specific data needs
- Fill in the field details of Name and Path
- Save the custom field to add it to the extraction list
Step 7: Review Extracted Fields
- Extracted fields include:
- All checked standard fields from the template
- Any custom fields you created
- Required fields for the integration type
- Verify field selection matches your webhook payload structure
- Add or remove fields as needed for your specific use case
Step 8: View JSON Payload
- Click the JSON toggle to see the entire formatted payload structure
- Review the JSON format to ensure it matches your expected webhook data
- Verify field mappings are correctly represented in the JSON structure
- Use this format as reference when configuring the sending system
Step 9: Configure Field Mapping
- Navigate to the Mapped Fields section
- Map default fields by dragging saved elements from the left panel and dropping them into value boxes
- Alternative method: Use the Data picker to select field mappings
- Configure field relationships between incoming webhook data and AI SRE fields
Step 10: Add Custom Mapped Fields
- Click Add Field to create custom mapped fields not part of the default template
- Configure the new field:
- Name: Name for the mapped field
- Description: Decription containing use-case
- Type: Data type of the field
- Default Value: Any default values required to be set
- Click Save to add the custom mapped field
Step 11: Finalize Configuration
- Click Next from the bottom of the configuration interface
- Review all settings to ensure proper configuration
- Verify field mappings are complete and accurate
Step 12: Test Integration
You can test the integration using either trigger method:
Test with Endpoint URL:
- Click the Test tab from the top navigation
- Copy the sample cURL command using the provided widget
- Run the cURL command in your terminal to test the integration
- Verify the test creates the expected incident or alert in AI SRE
- Check field mapping to ensure data is properly extracted and processed
Test with Email Address:
- Send a test email to the integration email address displayed on the configuration page
- Use a descriptive subject line that represents a typical alert
- Include relevant details in the email body
- Verify the test email creates an alert or incident in AI SRE
- Check field mapping to ensure email content is properly parsed and extracted
Step 13: Save and Activate
- Click Save to finalize the integration configuration
- The integration is now active and ready to receive webhook data
- Configure the webhook URL in your external systems
- Monitor incoming data to ensure proper processing
Follow this interactive guide to configure webhook integrations with payload mapping and field configuration.
Payload Configuration Best Practices
Field Selection Strategy
- Include Essential Fields: Always map critical fields like severity, service, and description
- Avoid Over-Mapping: Don't extract unnecessary fields that won't be used
- Consider Future Needs: Include fields that might be useful for future automation
- Validate Data Types: Ensure field types match expected webhook payload structure
Custom Field Design
- Descriptive Names: Use clear, meaningful names for custom fields
- Consistent Naming: Follow naming conventions across all integrations
- Proper Data Types: Choose appropriate data types for field content
- Default Values: Set sensible defaults for optional fields
JSON Payload Optimization
- Structure Validation: Ensure JSON structure matches webhook sender format
- Field Nesting: Handle nested objects and arrays appropriately
- Error Handling: Plan for missing or malformed data scenarios
- Performance: Optimize payload size for processing efficiency
Troubleshooting Common Issues
Integration Not Receiving Data
- Verify Endpoint URL: Ensure correct webhook URL is configured in source system
- Check Network Connectivity: Verify network access between systems
- Validate Payload Format: Ensure webhook payload matches expected structure
- Review Authentication: Check authentication credentials and permissions
Field Mapping Issues
- Missing Fields: Verify required fields are present in webhook payload
- Data Type Mismatches: Check that field types match expected formats
- Nested Data: Ensure nested objects are properly mapped
- Array Handling: Verify array data is correctly processed
Performance Problems
- Payload Size: Optimize webhook payload size for better performance
- Processing Time: Monitor integration processing times
- Rate Limiting: Implement appropriate rate limiting for high-volume integrations
- Error Handling: Ensure robust error handling for failed processing
Email Trigger Issues
- Email Not Creating Alerts: Verify the correct email address is used and the integration is enabled
- Missing Field Data: Check that email subject and body contain sufficient information for field mapping
- Delayed Alert Creation: Email processing may take longer than webhook endpoint delivery due to email routing
- Quiet Mode Active: Verify Quiet Mode is not suppressing email-triggered alerts during quiet periods
Next Steps
Getting Started
- Configure Alert Rules to process webhook-generated alerts
- Set Up Incident Types for webhook-created incidents
- Set Up On-Call Schedules for webhook-triggered notifications
Response Automation
- Create Runbooks to automate responses to webhook-created incidents
- Configure Runbook Actions for outbound integrations with external systems
Advanced Configuration
- Manage Incidents created from webhook integrations
- AI SRE Best Practices for webhook integration optimization
Need Help? Contact our support team by email at support@harness.io or visit the Harness Documentation for additional resources and troubleshooting guides.