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

926 B
Raw Blame
import { createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/pieces-framework';
import { createTranscription } from './lib/actions/create-transcription';
import { uploadAFile } from './lib/actions/upload-a-file';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { gladiaAuth } from './lib/common/auth';

export const gladia = createPiece({
  displayName: 'Gladia',
  auth: gladiaAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/gladia.png',
  categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
  authors: ['sanket-a11y'],
  actions: [
    createTranscription,
    uploadAFile,
    createCustomApiCallAction({
      baseUrl: () => `https://api.gladia.io/v2`,
      auth: gladiaAuth,
      authMapping: async (auth) => ({
        'x-gladia-key': auth.secret_text,
      }),
    }),
  ],
  triggers: [],
});