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 { productboardAuth } from '../common/auth';
import { HttpMethod } from '@activepieces/pieces-common';
import {
TriggerStrategy,
createTrigger,
} from '@activepieces/pieces-framework';
import { productboardCommon } from '../common/client';
export const newNote = createTrigger({
name: 'new_note',
displayName: 'New Note',
description: 'Triggers when a new note is created in Productboard',
aiMetadata: {
description: 'Fires when a new note is created in Productboard (note.created webhook event), representing newly captured customer feedback or external input.',
},
auth: productboardAuth,
type: TriggerStrategy.WEBHOOK,
props: {},
sampleData: {
data: {
id: 'c5a0b5f0-3f2e-4e1a-8c7z-5c8e4b3f2e1a',
eventType: 'note.created',
links: {
target: 'https://api.productboard.com/notes/c5a0b5f0-3f2e-4e1a-8c7z-5c8e4b3f2e1a',
},
},
},
onEnable: async (context) => {
const { webhookUrl, auth } = context;
const response = await productboardCommon.apiCall({
auth,
method: HttpMethod.POST,
resourceUri: '/webhooks',
body: {
data: {
name: 'Activepieces - New Note',
events: [
{
eventType: 'note.created',
},
],
notification: {
url: webhookUrl,
version: 1,
},
},
},
});
await context.store.put('webhook_id', response.body['data'].id);
return response.body;
},
onDisable: async (context) => {
const { auth } = context;
const webhookId = await context.store.get('webhook_id');
if (webhookId) {
await productboardCommon.apiCall({
auth,
method: HttpMethod.DELETE,
resourceUri: `/webhooks/${webhookId}`,
});
}
},
run: async (context) => {
return [context.payload.body];
},
});