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:
- Accept POST requests with application/json content type
- Validate the X-SAP-Signature header for security
- Respond with HTTP 200 within 5 seconds (SAP CX has a strict timeout)
- 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
-
Delete the existing generic subscription - The ‘SocialMention.Created’ event doesn’t exist in 2205. This is likely why you’re not receiving events.
-
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
-
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:
-
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
-
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
-
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:
- Mention captured from social platform
- Content analyzed and classified
- Sentiment scored
- Relevance calculated
- 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:
-
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
-
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
-
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:
- Event Type:
SocialListening.MentionDetected (not SocialMention.Created)
- Processing Mode: Real-time (not Batch)
- Event Publication: All Mentions (not High Priority Only)
- 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.