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 { PlatformAdminSurface, TelemetryEventName } from '@activepieces/shared';
import { useTelemetry } from '@/components/providers/telemetry-provider';
import { FeatureKey } from '../components/request-trial';
import { FeatureTier } from '../utils/feature-tier';
import { billingDialogHooks } from './billing-dialog-hooks';
export function useUpgradeClick() {
const { capture } = useTelemetry();
const { openDialog } = billingDialogHooks.useManagePlanDialogStore();
return ({ feature, tier, surface }: UpgradeClickParams) => {
capture({
name: TelemetryEventName.PLATFORM_ADMIN_UPGRADE_CLICKED,
payload: { feature: feature ?? null, tier: tier ?? null, surface },
});
openDialog();
};
}
type UpgradeClickParams = {
feature?: FeatureKey;
tier?: FeatureTier;
surface: PlatformAdminSurface;
};