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 } from '@activepieces/pieces-framework';
import { propsValidation } from '@activepieces/pieces-common';
import { famulorAuth } from '../..';
import { famulorCommon } from '../common';
export const getWhatsAppSenders = createAction({
auth: famulorAuth,
name: 'getWhatsAppSenders',
classification: 'SEARCH',
displayName: 'Get WhatsApp Senders',
description: 'List WhatsApp Business senders linked to your account.',
audience: 'both',
aiMetadata: { description: 'List the WhatsApp Business senders connected to the account, optionally filtered to only online senders versus all. Read-only and idempotent. Pick this to discover a valid sender_id before sending a WhatsApp template message.', idempotent: true },
props: famulorCommon.getWhatsAppSendersProperties(),
async run({ auth, propsValue }) {
await propsValidation.validateZod(propsValue, famulorCommon.getWhatsAppSendersSchema);
return await famulorCommon.getWhatsAppSenders({
auth: auth.secret_text,
status: propsValue.status as 'online' | 'all' | undefined,
});
},
});