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 { meistertaskAuth } from '../auth';
import { makeRequest, meisterTaskCommon} from '../common/common';
import { createAction, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
export const createTaskLabel = createAction({
auth: meistertaskAuth,
name: 'create_task_label',
classification: 'WRITE',
displayName: 'Create Task Label',
description: 'Creates a new task label',
audience: 'both',
aiMetadata: { description: 'Attach an existing project label to a specific task in MeisterTask, creating the task-label association. Use to tag a task with an already-defined label; requires the task ID and the label ID. Not idempotent — each call adds another label association.', idempotent: false },
props: {
project: meisterTaskCommon.project,
task_id: meisterTaskCommon.task_id,
label: meisterTaskCommon.label,
},
async run(context) {
const token = context.auth.access_token;
const { task_id, label } = context.propsValue;
const response = await makeRequest(
HttpMethod.POST,
`/tasks/${task_id}/task_labels`,
token,
{ label_id: label }
);
return response.body;
},
});