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.1 KB
Raw Blame
import { createQawafelEventTrigger } from '../common/webhooks';

export const productUpdated = createQawafelEventTrigger({
  name: 'product_updated',
  displayName: 'Product Updated',
  description:
    'Fires when a product is updated (price change, description edit, activated/deactivated). Use it to keep external storefronts in sync.',
  aiMetadata: {
    description:
      'Fires when an existing product is updated in Qawafel (the product.updated event) — for example a price change, description edit, or activation/deactivation. Each event represents one product in its post-update state, useful for keeping external storefronts in sync.',
  },
  event: 'product.updated',
  sampleData: {
    id: 'prod_01jk5jtv3x6e5hjkfcwzvubejq',
    sku: 'SKU-001',
    name_en: 'Office Chair',
    name_ar: 'كرسي مكتبي',
    type: 'sale',
    unit_price: '475.00',
    is_taxable: true,
    is_active: true,
    barcode: '5901234123457',
    supplier_id: null,
    external_ref: null,
    created_at: '2026-04-20T10:15:00Z',
    updated_at: '2026-04-27T10:15:00Z',
  },
});