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 { createAction } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { heygenApiCall } from '../common/client';
import { heygenAuth } from '../common/auth';
export const listAvatarsAction = createAction({
auth: heygenAuth,
name: 'list_avatars',
classification: 'SEARCH',
displayName: 'List Avatars',
description: 'Retrieve a list of all available avatars.',
audience: 'both',
aiMetadata: {
description: 'Retrieves all avatars available to the account. Use to discover avatar IDs before composing or generating a video. Takes no input; read-only and idempotent.',
idempotent: true,
},
props: {},
async run({ auth }) {
return await heygenApiCall({
apiKey: auth.secret_text,
method: HttpMethod.GET,
resourceUri: '/avatars',
apiVersion: 'v2',
});
},
});