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 sendMessage = createAction({
auth: famulorAuth,
name: 'sendMessage',
classification: 'WRITE',
displayName: 'Send Message',
description: 'Send a message to an existing conversation and receive the assistant\'s reply.',
audience: 'both',
aiMetadata: {
description:
'Post a message into an existing Famulor conversation (identified by its UUID) and get back the AI assistant\'s reply in the same call. Use to continue a chat thread you already created or retrieved; not idempotent, as each call appends a new message and generates a new reply.',
idempotent: false,
},
props: famulorCommon.sendMessageProperties(),
async run({ auth, propsValue }) {
await propsValidation.validateZod(propsValue, famulorCommon.sendMessageSchema);
return await famulorCommon.sendMessage({
auth: auth.secret_text,
uuid: propsValue.uuid as string,
message: propsValue.message as string,
});
},
});