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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import {
createPiece,
PieceAuth,
PiecePropValueSchema,
} from '@activepieces/pieces-framework';
import { AppConnectionType, PieceCategory } from '@activepieces/pieces-framework';
import { findCompaniesAction, findCompanyByDomainAction } from './lib/actions/companies';
import { findJobOpeningsAction, getAJobOpeningByIdAction, getCompanyJobOpeningsActions } from './lib/actions/jobs';
import { makeClient } from './lib/common';
import { findTechnologiesByCompanyAction, findCompaniesByTechnologyIdAction } from './lib/actions/technology';
import { findNewsEventByIdAction, findNewsEventsByDomainAction } from './lib/actions/news-events';
import { findConnectionsAction, findConnectionsByDomainAction } from './lib/actions/connections';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PredictLeadsAuth } from './lib/auth';
export const predictLeads = createPiece({
displayName: 'PredictLeads',
auth: PredictLeadsAuth,
description: `Company Intelligence Data Source`,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/predict-leads.png',
categories: [PieceCategory.BUSINESS_INTELLIGENCE, PieceCategory.SALES_AND_CRM, PieceCategory.MARKETING],
authors: [
'codegino',
],
actions: [
findCompaniesAction,
findCompanyByDomainAction,
findJobOpeningsAction,
getCompanyJobOpeningsActions,
getAJobOpeningByIdAction,
findTechnologiesByCompanyAction,
findCompaniesByTechnologyIdAction,
findNewsEventsByDomainAction,
findNewsEventByIdAction,
findConnectionsAction,
findConnectionsByDomainAction,
createCustomApiCallAction({
auth:PredictLeadsAuth,
baseUrl:()=>'https://predictleads.com/api/v3',
authMapping: async (auth)=>{
const authValue = auth.props;
return{
'X-Api-Key':authValue.apiKey,
'X-Api-Token':authValue.apiToken
}
}
})
],
triggers: [],
});