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

963 B
Raw Blame
import { createMailgunWebhookTrigger } from './common';

export const newComplaintEvent = createMailgunWebhookTrigger({
  name: 'new_complaint_event',
  displayName: 'New Complaint Event',
  description:
    'Triggers when a recipient reports an email as spam in Mailgun',
  aiMetadata: {
    description:
      'Fires when a recipient marks a delivered email as spam (a complaint) in Mailgun. Represents a single complaint event and is a signal to suppress future sends to that recipient.',
  },
  eventType: 'complained',
  testEventFilter: { event: 'complained' },
  sampleData: {
    event: 'complained',
    id: 'abc456',
    timestamp: 1710000000,
    recipient: '[email protected]',
    domain: 'example.com',
    log_level: 'warn',
    message_headers_message_id: '[email protected]',
    message_headers_from: '[email protected]',
    message_headers_to: '[email protected]',
    message_headers_subject: 'Newsletter March 2024',
  },
});