Genesys Webhook to Lambda: EventBridge envelope parsing issue

I’ve got a Node.js Lambda consuming Genesys Cloud webhooks via EventBridge. The payload structure is throwing me off since it’s wrapped in the EventBridge detail object instead of being the raw Genesys JSON.

Here’s what I’m seeing in the console logs. The event.detail contains the actual interaction data, but my handler keeps crashing trying to access event.interactionId directly. Am I missing a config step?