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

833 B
Raw Blame
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { bolnaaiAuth } from './lib/common/auth';
import { makePhoneCall } from './lib/actions/make-phone-call';
import { callCompletionReport } from './lib/triggers/call-completion-report';
import { createCustomApiCallAction } from '@activepieces/pieces-common';

export const bolna = createPiece({
  displayName: 'Bolna AI',
  auth: bolnaaiAuth,
  minimumSupportedRelease: '0.36.1',
  logoUrl: 'https://cdn.activepieces.com/pieces/bolna.png',
  authors: ['sanket-a11y'],
  actions: [
    makePhoneCall,
    createCustomApiCallAction({
      auth: bolnaaiAuth,
      baseUrl: () => 'https://api.bolna.ai',
      authMapping: async (auth) => ({
        Authorization: `Bearer ${auth.secret_text}`,
      }),
    }),
  ],
  triggers: [callCompletionReport],
});