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, Property } from '@activepieces/pieces-framework';
import { zooAuth } from '../../auth'
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
export const getCadModelAction = createAction({
name: 'get_cad_model',
classification: 'READ',
displayName: 'Get CAD Model',
description: 'Retrieve details of a specific 3D model',
audience: 'both',
aiMetadata: { description: 'Look up a single previously generated text-to-CAD model by its model ID, including its status and conversion results. Read-only and repeatable. Use to poll or fetch a model created by the generate CAD model action; requires a known model ID.', idempotent: true },
auth: zooAuth,
// category: 'Machine Learning (ML)',
props: {
modelId: Property.ShortText({
displayName: 'Model ID',
required: true,
description: 'The ID of the model to retrieve',
}),
},
async run({ auth, propsValue }) {
const response = await httpClient.sendRequest({
method: HttpMethod.GET,
url: `https://api.zoo.dev/user/text-to-cad/${propsValue.modelId}`,
headers: {
Authorization: `Bearer ${auth.secret_text}`,
},
});
return response.body;
},
});