Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { createPiece, Piece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { getHighlights } from './lib/actions/get-highlights';
|
||||
import { getMeetingDetails } from './lib/actions/get-meeting-details';
|
||||
import { getMeetingsSummaryInsights } from './lib/actions/get-meetings-summary-insights';
|
||||
import { getTeamMeetings } from './lib/actions/get-team-meetings';
|
||||
import { getTranscript } from './lib/actions/get-transcript';
|
||||
import { uploadRecording } from './lib/actions/upload-recording';
|
||||
import { newMeeting } from './lib/triggers/new-meeting';
|
||||
import { meetgeekaiAuth } from './lib/common/auth';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
|
||||
export const meetgeekAi = createPiece({
|
||||
displayName: 'Meetgeek',
|
||||
auth: meetgeekaiAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/meetgeek-ai.png',
|
||||
categories: [
|
||||
PieceCategory.ARTIFICIAL_INTELLIGENCE,
|
||||
PieceCategory.COMMUNICATION,
|
||||
],
|
||||
description: 'AI-powered meeting assistant that automates note-taking, summarization, and insights generation for your meetings.',
|
||||
authors: ['sanket-a11y'],
|
||||
actions: [
|
||||
getHighlights,
|
||||
getMeetingDetails,
|
||||
getMeetingsSummaryInsights,
|
||||
getTeamMeetings,
|
||||
getTranscript,
|
||||
uploadRecording,
|
||||
],
|
||||
triggers: [newMeeting],
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
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 getHighlights = createAction({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'getHighlights',
|
||||
displayName: 'Get Highlights',
|
||||
description: 'Retrieves all highlights for a meeting by meeting ID',
|
||||
props: {
|
||||
meetingId: meetingIdDropdwon,
|
||||
},
|
||||
async run(context) {
|
||||
const { meetingId } = context.propsValue;
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
`/meetings/${meetingId}/highlights`
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
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',
|
||||
props: {
|
||||
meetingId: meetingIdDropdwon,
|
||||
},
|
||||
async run(context) {
|
||||
const { meetingId } = context.propsValue;
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
`/meetings/${meetingId}`
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
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 getMeetingsSummaryInsights = createAction({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'getMeetingsSummaryInsights',
|
||||
displayName: 'Get Meeting Summary & AI Insights',
|
||||
description: 'Retrieves the meeting summary and AI-generated insights',
|
||||
props: {
|
||||
meetingId: meetingIdDropdwon,
|
||||
},
|
||||
async run(context) {
|
||||
const { meetingId } = context.propsValue;
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
`/meetings/${meetingId}/summary`
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { meetgeekaiAuth } from '../common/auth';
|
||||
import { teamIdDropdown } from '../common/props';
|
||||
import { makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const getTeamMeetings = createAction({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'getTeamMeetings',
|
||||
displayName: 'Get Team Meetings',
|
||||
description: 'Retrieves paginated past meetings of a team',
|
||||
props: {
|
||||
teamId: teamIdDropdown,
|
||||
},
|
||||
async run(context) {
|
||||
const { teamId } = context.propsValue;
|
||||
|
||||
const url = `/teams/${teamId}/meetings`;
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
url
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
import { createAction, Property } 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 getTranscript = createAction({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'getTranscript',
|
||||
displayName: 'Get Transcript',
|
||||
description:
|
||||
'Retrieves all transcript sentences for a meeting with pagination support',
|
||||
props: {
|
||||
meetingId: meetingIdDropdwon,
|
||||
},
|
||||
async run(context) {
|
||||
const { meetingId } = context.propsValue;
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
`/meetings/${meetingId}/transcript`
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { meetgeekaiAuth } from '../common/auth';
|
||||
import { makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const uploadRecording = createAction({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'uploadRecording',
|
||||
displayName: 'Upload Recording',
|
||||
description:
|
||||
'Upload a video or audio file for analysis and receive a notification upon completion via webhook',
|
||||
props: {
|
||||
download_url: Property.ShortText({
|
||||
displayName: 'Download URL',
|
||||
description:
|
||||
'A publicly accessible URL that initiates a direct download when accessed (e.g., S3 signed URL)',
|
||||
required: true,
|
||||
}),
|
||||
language_code: Property.ShortText({
|
||||
displayName: 'Language Code',
|
||||
description:
|
||||
'Language code for the recording (e.g., en-US, es-ES, fr-FR). See MeetGeek documentation for all available options.',
|
||||
required: false,
|
||||
defaultValue: 'en-US',
|
||||
}),
|
||||
template_name: Property.ShortText({
|
||||
displayName: 'Template Name',
|
||||
description:
|
||||
'Meeting template to use for analysis (e.g., "General meeting", "Sales call", "Interview"). See MeetGeek documentation for all available templates.',
|
||||
required: false,
|
||||
defaultValue: 'General meeting',
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { download_url, language_code, template_name } = context.propsValue;
|
||||
|
||||
const body: any = {
|
||||
download_url,
|
||||
};
|
||||
|
||||
if (language_code) {
|
||||
body.language_code = language_code;
|
||||
}
|
||||
|
||||
if (template_name) {
|
||||
body.template_name = template_name;
|
||||
}
|
||||
|
||||
const response = await makeRequest(
|
||||
context.auth.secret_text,
|
||||
HttpMethod.POST,
|
||||
'/upload',
|
||||
body
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
import { PieceAuth, Property } from '@activepieces/pieces-framework';
|
||||
|
||||
export const meetgeekaiAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: `Enter your MeetGeek API key to authenticate.
|
||||
|
||||
## Acquiring a Token
|
||||
|
||||
For service accounts and enterprise company-wide integrations, please use [this form](https://meetgeek.ai/contact) to talk to our team and request a custom quote.
|
||||
|
||||
To access the public API, you will need an API key. Follow these steps to obtain your key:
|
||||
|
||||
1. Sign up for an account at [app.meetgeek.ai](https://app.meetgeek.ai)
|
||||
2. Generate your API key by going to **Integrations → Public API Card**
|
||||
3. Copy and paste the API key into the field below.`,
|
||||
required: true,
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import { HttpMethod, httpClient } from '@activepieces/pieces-common';
|
||||
|
||||
export const MEETGEEKAI_BASE_URL = 'https://api.meetgeek.ai/v1';
|
||||
|
||||
export async function makeRequest(
|
||||
api_key: string,
|
||||
method: HttpMethod,
|
||||
url: string,
|
||||
body?: any
|
||||
) {
|
||||
const response = await httpClient.sendRequest({
|
||||
method,
|
||||
url: `${MEETGEEKAI_BASE_URL}${url}`,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${api_key}`,
|
||||
},
|
||||
body,
|
||||
});
|
||||
return response.body;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
import { Property } from '@activepieces/pieces-framework';
|
||||
import { meetgeekaiAuth } from './auth';
|
||||
import { makeRequest } from './client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const meetingIdDropdwon = Property.Dropdown({
|
||||
auth: meetgeekaiAuth,
|
||||
displayName: 'Meeting',
|
||||
description: 'Select the meeting',
|
||||
required: true,
|
||||
refreshers: [],
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
placeholder: 'Connect your account first',
|
||||
options: [],
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
'/meetings'
|
||||
);
|
||||
if (!response.meetings || response.meetings.length === 0) {
|
||||
return {
|
||||
disabled: true,
|
||||
placeholder: 'No meetings found',
|
||||
options: [],
|
||||
};
|
||||
}
|
||||
return {
|
||||
disabled: false,
|
||||
options: response.meetings.map((meeting: any) => ({
|
||||
label:
|
||||
meeting.title || meeting.meeting_id + meeting.timestamp_start_utc,
|
||||
value: meeting.meeting_id,
|
||||
})),
|
||||
};
|
||||
} catch (error) {
|
||||
return {
|
||||
disabled: true,
|
||||
placeholder: 'Failed to load meetings',
|
||||
options: [],
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export const teamIdDropdown = Property.Dropdown({
|
||||
auth: meetgeekaiAuth,
|
||||
displayName: 'Team',
|
||||
description: 'Select the team',
|
||||
required: true,
|
||||
refreshers: ['auth'],
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please connect your account first',
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
auth.secret_text,
|
||||
HttpMethod.GET,
|
||||
'/teams'
|
||||
);
|
||||
|
||||
const allTeams = new Map();
|
||||
|
||||
if (response.share_access) {
|
||||
response.share_access.forEach((team: any) => {
|
||||
allTeams.set(team.id, {
|
||||
label: `${team.name} (Share Access)`,
|
||||
value: team.id,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (response.view_access) {
|
||||
response.view_access.forEach((team: any) => {
|
||||
if (allTeams.has(team.id)) {
|
||||
allTeams.set(team.id, {
|
||||
label: `${team.name} (Share & View Access)`,
|
||||
value: team.id,
|
||||
});
|
||||
} else {
|
||||
allTeams.set(team.id, {
|
||||
label: `${team.name} (View Access)`,
|
||||
value: team.id,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
disabled: false,
|
||||
options: Array.from(allTeams.values()),
|
||||
};
|
||||
} catch (error) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Error loading teams. Please reconnect your account.',
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
import {
|
||||
createTrigger,
|
||||
Property,
|
||||
TriggerStrategy,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { meetgeekaiAuth } from '../common/auth';
|
||||
export const newMeeting = createTrigger({
|
||||
auth: meetgeekaiAuth,
|
||||
name: 'newMeeting',
|
||||
displayName: 'New Meeting',
|
||||
description: `Triggers when a meeting analysis is completed and highlights are available.
|
||||
`,
|
||||
props: {
|
||||
instruction: Property.MarkDown({
|
||||
value: `## Configuration
|
||||
|
||||
To set up this webhook trigger:
|
||||
|
||||
1. **Copy the Webhook URL** displayed below:
|
||||
\`\`\`text
|
||||
{{webhookUrl}}
|
||||
\`\`\`
|
||||
|
||||
2. Navigate to [MeetGeek Integrations Page](https://app.meetgeek.ai/integrations)
|
||||
3. Open the **Public API** section
|
||||
4. Paste the webhook URL into the **Webhook URL** field
|
||||
5. Click **Save** to activate the webhook`,
|
||||
}),
|
||||
},
|
||||
sampleData: {
|
||||
meeting_id: '99e727a1-fd4b-4526-9cfb-3a8a0bdffeb7',
|
||||
message: 'File analyzed successfully',
|
||||
},
|
||||
type: TriggerStrategy.WEBHOOK,
|
||||
async onEnable(context) {
|
||||
// MeetGeek uses manual webhook configuration
|
||||
},
|
||||
async onDisable(context) {
|
||||
// Clean up stored webhook URL
|
||||
},
|
||||
async run(context) {
|
||||
return [context.payload.body];
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user