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 { gmailAuth } from '../auth';
import { gmailReplyToEmailAction } from './reply-to-email-action';
import { gmailAiReplyToThreadActionOutputSchema } from '../output-schemas';
export const gmailAiReplyToThreadAction = createAction({
auth: gmailAuth,
name: 'gmail_reply_to_thread',
classification: 'WRITE',
displayName: 'Reply to Thread',
description: 'Reply to an existing email thread.',
audience: 'ai',
aiMetadata: {
description:
'Sends a reply to an existing email, preserving the thread and subject and addressing the original sender (reply) or all participants (reply all). Use this to respond within a known conversation; requires the Gmail message ID of the email being answered (obtain it from Search Email or Get Thread). Not idempotent: each call sends a new reply into the thread.',
idempotent: false,
},
outputSchema: gmailAiReplyToThreadActionOutputSchema,
props: gmailReplyToEmailAction.props,
run: gmailReplyToEmailAction.run,
});