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 {
  createSessionsUsWebhookTrigger,
  SessionsUsWebhookTrigger,
} from '../common';

export const sessionStarted = createSessionsUsWebhookTrigger({
  name: 'session_started',
  displayName: 'Session Started',
  description: 'Triggered when a session starts.',
  aiMetadata: {
    description: 'Fires when a session goes live (the meeting begins). The payload includes the session details and its participants.',
  },
  trigger: SessionsUsWebhookTrigger.SESSION_STARTED,
  storeKey: 'sessions_session_started_trigger',
  sampleData: {
    session: {
      id: '5645d810-4e29-4c2c-b9a5-84d71a6429dd',
      name: 'My Talking Session',
      description: '',
      quickSession: false,
      room: null,
      createdAt: '2023-11-30T10:30:16.535Z',
      startAt: '2023-11-30T10:31:00.000Z',
      actualStart: null,
      endedAt: null,
      booking: null,
      event: null,
      participants: [
        {
          id: '0f2aced6-e099-424b-9448-4dd94d9ba3a0',
          isOwner: true,
          guest: null,
          user: {
            id: '9090bd7c-0cf9-4716-837e-43f3821a65c4',
            email: '[email protected]',
            lastName: 'Pieces',
            firstName: 'Active',
          },
        },
      ],
    },
  },
});