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 { plausibleAuth } from '../..';
import { getCustomProperties, siteIdDropdown } from '../common';
export const listCustomProperties = createAction({
auth: plausibleAuth,
name: 'list_custom_properties',
displayName: 'List Custom Properties',
description: 'Get a list of custom properties for a site',
audience: 'both',
aiMetadata: { description: 'Lists the custom event properties configured for a site. Use to discover which custom properties exist before creating or deleting one. Read-only and safe to repeat.', idempotent: true },
props: {
site_id: siteIdDropdown,
},
async run(context) {
const customProperties = await getCustomProperties(
context.auth.secret_text,
context.propsValue['site_id']
);
return { custom_properties: customProperties };
},
});