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 { createAction } from '@activepieces/pieces-framework';
import { meetgeekaiAuth } from '../common/auth';
import { meetingIdDropdwon } from '../common/props';
import { makeRequest } from '../common/client';
import { HttpMethod } from '@activepieces/pieces-common';

export const getMeetingDetails = createAction({
  auth: meetgeekaiAuth,
  name: 'getMeetingDetails',
  displayName: 'Get Meeting Details',
  description:
    'Retrieves meeting details including host, participants, timestamps, and source information',
  audience: 'both',
  aiMetadata: {
    description: 'Look up the metadata for one MeetGeek meeting by its meeting ID (host, participants, timestamps, source). Use when an agent needs a meeting\'s context rather than its content. Read-only and idempotent.',
    idempotent: true,
  },
  props: {
    meetingId: meetingIdDropdwon,
  },
  async run(context) {
    const { meetingId } = context.propsValue;

    const response = await makeRequest(
      context.auth.secret_text,
      HttpMethod.GET,
      `/meetings/${meetingId}`
    );

    return response;
  },
});