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 { gmailSendEmailAction } from './send-email-action';
import { gmailAiSendEmailActionOutputSchema } from '../output-schemas';
export const gmailAiSendEmailAction = createAction({
auth: gmailAuth,
name: 'gmail_send_email',
classification: 'WRITE',
displayName: 'Send Email',
description: 'Send an email through a Gmail account',
audience: 'ai',
aiMetadata: {
description:
'Composes and sends a new email from the connected Gmail account to one or more recipients, with optional CC/BCC, attachments, and a plain-text or HTML body. Use this to originate a fresh message; to answer an existing conversation prefer Reply to Thread, and to save an unsent message use Create Draft. Not idempotent: each call sends a separate message.',
idempotent: false,
},
outputSchema: gmailAiSendEmailActionOutputSchema,
props: gmailSendEmailAction.props,
run: gmailSendEmailAction.run,
});