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 { bushbulletAuth } from '../common/auth';
import { makeRequest } from '../common/client';
import { HttpMethod } from '@activepieces/pieces-common';
export const sendALink = createAction({
auth: bushbulletAuth,
name: 'sendALink',
classification: 'WRITE',
displayName: 'Send a Link',
description: 'Send a link notification',
audience: 'both',
aiMetadata: { description: 'Pushes a clickable link notification to the authenticated Pushbullet account (and its connected devices). Use this when the agent needs to deliver a URL the recipient should open, optionally with a title and body line. Requires a URL; sends a new push on every call, so it is not idempotent.', idempotent: false },
props: {
url: Property.ShortText({
displayName: 'URL to send',
description: '',
required: true,
}),
title: Property.ShortText({
displayName: 'Title',
description: '',
required: false,
}),
body: Property.ShortText({
displayName: 'Body',
description: '',
required: false,
}),
},
async run(context) {
const { url, title, body } = context.propsValue;
const response = await makeRequest(
context.auth.secret_text,
HttpMethod.POST,
'/pushes',
{
type: 'link',
url,
title,
body,
}
);
return response;
},
});