Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.2 KB
Raw Blame
import { createMailgunWebhookTrigger } from './common';

export const newBounceEvent = createMailgunWebhookTrigger({
  name: 'new_bounce_event',
  displayName: 'New Bounce Event',
  description:
    'Triggers when an email permanently fails to deliver (hard bounce) in Mailgun',
  aiMetadata: {
    description:
      'Fires when Mailgun records a permanent delivery failure (hard bounce) for a sent email, meaning the address is undeliverable and should not be retried. Represents a single bounced recipient with the failure reason and SMTP details.',
  },
  eventType: 'permanent_fail',
  testEventFilter: { event: 'failed', severity: 'permanent' },
  sampleData: {
    event: 'failed',
    id: 'abc123',
    timestamp: 1710000000,
    recipient: '[email protected]',
    domain: 'example.com',
    severity: 'permanent',
    reason: 'bounce',
    log_level: 'error',
    message_headers_message_id: '[email protected]',
    message_headers_from: '[email protected]',
    message_headers_to: '[email protected]',
    message_headers_subject: 'Test email',
    delivery_status_code: 550,
    delivery_status_message: 'Mailbox not found',
    delivery_status_description: 'The email account does not exist',
  },
});