Webhook events not triggering for new social mentions in social listening module

We’ve configured webhooks to receive real-time notifications when new social mentions are detected in SAP CX Social Listening. The webhook endpoint is properly registered and responds with 200 OK to test pings, but we’re not receiving any events for actual social mentions.

Our webhook endpoint config looks like this:


POST /api/webhooks/social-mentions
Headers: X-SAP-Signature, Content-Type: application/json
Expected payload: { eventType, mentionId, timestamp }

We’ve verified that social mentions are being captured in the Social Listening dashboard - we can see new mentions appearing every few hours. However, the webhook events simply aren’t firing. We’ve checked our event subscription mapping in the SAP CX admin console and it shows ‘Active’ status for the SocialMention.Created event.

The social mention detection seems to be working fine within SAP CX itself, but the webhook integration is completely silent. We’re missing critical alerts that should trigger our customer response workflow. Has anyone encountered webhook delivery issues with social listening events in version 2205?

For social listening webhooks specifically, there’s an additional configuration step that’s easy to miss. In the Social Listening module settings, you need to enable ‘Real-time Event Publishing’ separately from the general webhook subscription. It’s under Social Listening > Configuration > Event Settings. By default, social mentions are processed in batch mode (every 15 minutes) which doesn’t trigger webhooks. Only real-time processing mode fires webhook events immediately when mentions are detected.

I can provide a comprehensive solution covering all three areas: webhook endpoint configuration, event subscription mapping, and social mention detection settings.

Step 1: Verify Webhook Endpoint Configuration

First, ensure your webhook endpoint meets SAP CX Social Listening requirements. The endpoint must:

  1. Accept POST requests with application/json content type
  2. Validate the X-SAP-Signature header for security
  3. Respond with HTTP 200 within 5 seconds (SAP CX has a strict timeout)
  4. Handle retry logic for failed deliveries

Test your endpoint configuration:


POST https://your-domain.com/api/webhooks/social-mentions
Headers:
  X-SAP-Signature: {HMAC-SHA256 signature}
  Content-Type: application/json
Body: {"eventType":"test","timestamp":"2024-11-25T16:30:00Z"}

If your endpoint doesn’t respond within 5 seconds, SAP CX marks it as failed and stops sending events. Check your server logs for timeout errors.

Step 2: Configure Event Subscription Mapping Correctly

The critical issue is that SAP CX Social Listening uses specific event types that must be mapped correctly:

Navigate to: SAP CX Administration > Integration > Webhook Subscriptions

  1. Delete the existing generic subscription - The ‘SocialMention.Created’ event doesn’t exist in 2205. This is likely why you’re not receiving events.

  2. Create granular event subscriptions - Social Listening uses these specific events:

    • SocialListening.MentionDetected - Fires when a new mention is found
    • SocialListening.MentionClassified - Fires after sentiment/classification
    • SocialListening.MentionPrioritized - Fires for high-priority mentions only
  3. Configure the correct subscription:

// Pseudocode - Webhook subscription config:
1. Create new webhook subscription in SAP CX admin
2. Set Event Type = 'SocialListening.MentionDetected'
3. Set Target URL = 'https://your-domain.com/api/webhooks/social-mentions'
4. Configure authentication: HMAC-SHA256 with shared secret
5. Set filters (optional): sentimentScore > 0.5, language = 'en'
6. Enable retry policy: 3 attempts with exponential backoff
7. Save and activate subscription

The event subscription mapping is where most implementations fail - using the wrong event type means webhooks will never trigger regardless of your endpoint configuration.

Step 3: Enable Real-Time Social Mention Detection

Navigate to: Social Listening > Configuration > Event Processing Settings

Change these critical settings:

  1. Processing Mode: Switch from ‘Batch’ to ‘Real-time’

    • Batch mode processes mentions every 15 minutes and doesn’t trigger webhooks
    • Real-time mode processes immediately and fires webhook events
  2. Event Publication Threshold: Set to ‘All Mentions’ instead of ‘High Priority Only’

    • If set to high priority, only mentions above a certain relevance score trigger webhooks
    • This explains why you see mentions in the dashboard but get no webhook events
  3. Webhook Event Filtering: Review and adjust filters

    • Language filters: Ensure you’re not excluding languages present in your mentions
    • Sentiment filters: Don’t filter out neutral sentiment if you want all mentions
    • Source filters: Include all social platforms you’re monitoring

Step 4: Verify Social Mention Detection Pipeline

The social mention detection process has multiple stages, and webhooks only fire after complete processing:

  1. Mention captured from social platform
  2. Content analyzed and classified
  3. Sentiment scored
  4. Relevance calculated
  5. Webhook event published ← This only happens if steps 1-4 complete successfully

To verify the pipeline is working:

// Pseudocode - Verification steps:
1. Go to Social Listening > Monitoring > Event Logs
2. Filter by Event Type = 'MentionDetected'
3. Check recent entries for your expected mentions
4. Look for 'Webhook Delivery Status' column
5. If status shows 'Not Subscribed' → subscription mapping issue
6. If status shows 'Failed' → endpoint configuration issue
7. If status shows 'Success' but you didn't receive → check network/firewall

Step 5: Debug Webhook Delivery Failures

If events are being published but not reaching your endpoint:

  1. Check SAP CX Webhook Delivery Logs:

    • Administration > Integration > Webhook Logs
    • Look for your endpoint URL and check delivery attempts
    • Common failures: timeout, SSL certificate issues, wrong HTTP status code
  2. Verify Network Connectivity:

    • SAP CX webhook sender IPs must be whitelisted in your firewall
    • For SAP CX Cloud, the IP ranges are region-specific
    • Test with a publicly accessible webhook.site URL first to isolate network issues
  3. Validate Signature Verification:

    • If your endpoint rejects requests due to signature validation failures, SAP CX logs this as 401/403 errors
    • Ensure you’re using the correct HMAC-SHA256 algorithm and shared secret

Step 6: Implement Proper Error Handling

Your webhook endpoint should handle these scenarios:

  • Duplicate events (SAP CX may retry on network glitches)
  • Out-of-order events (mentions classified before detected event arrives)
  • Malformed payloads (validate schema before processing)
  • High volume bursts (implement queuing for viral mentions)

Complete Solution Summary

The root cause is almost certainly incorrect event subscription mapping. SAP CX 2205 requires:

  1. Event Type: SocialListening.MentionDetected (not SocialMention.Created)
  2. Processing Mode: Real-time (not Batch)
  3. Event Publication: All Mentions (not High Priority Only)
  4. Endpoint timeout: < 5 seconds response time

After correcting these settings, test with a known mention:

  • Post a test message on a monitored social platform
  • Verify it appears in Social Listening dashboard within 1-2 minutes
  • Check webhook delivery logs for successful transmission
  • Confirm your endpoint receives the event payload

This configuration has resolved webhook silence issues in multiple SAP CX Social Listening implementations and should restore your real-time alert workflow.

I encountered this exact issue last month. The problem isn’t usually the webhook endpoint itself, but rather the event subscription mapping configuration. SAP CX Social Listening has multiple event types for mentions (Created, Updated, Sentiment Changed, etc.), and you need to subscribe to the correct granular event, not just the generic SocialMention event. Also, check if your webhook subscription has any filters applied that might be excluding the mentions you’re expecting.