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 { createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/pieces-framework';
import { heymarketSmsAuth } from './lib/common/auth';
import { createOrUpdateContact } from './lib/actions/create-or-update-contact';
import { sendCustomMessage } from './lib/actions/send-custom-message';
import { sendTemplateMessage } from './lib/actions/send-template-message';
import { updateList } from './lib/actions/update-list';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { chatStarted } from './lib/triggers/chat-started-';
import { newOrUpdatedContact } from './lib/triggers/new-or-updated-contact';
export const heymarketSms = createPiece({
displayName: 'Heymarket SMS',
auth: heymarketSmsAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/heymarket-sms.png',
authors: ['sanket-a11y'],
description:
'Heymarket is a business texting platform that gives you the power to engage with people using shared inboxes. ',
categories: [PieceCategory.COMMERCE],
actions: [
createOrUpdateContact,
sendCustomMessage,
sendTemplateMessage,
updateList,
createCustomApiCallAction({
auth: heymarketSmsAuth,
baseUrl: () => 'https://api.heymarket.com',
authMapping: async (auth) => {
return {
Authorization: `Bearer ${auth.secret_text}`,
};
},
}),
],
triggers: [chatStarted, newOrUpdatedContact],
});