n8n-nodes-imap-ai
Version:
Simplified IMAP node for n8n with AI-agent support. Clean and modular email and mailbox management for automation workflows.
51 lines (50 loc) • 2.46 kB
TypeScript
export declare const AIEmailSearchFilters: {
readonly from: {
readonly default: "={{ $fromAI('sender_email', 'Email address of the sender to search for') }}";
readonly placeholder: "john@example.com or John Doe";
};
readonly to: {
readonly default: "={{ $fromAI('recipient_email', 'Email address of the recipient to search for') }}";
readonly placeholder: "support@company.com or Support Team";
};
readonly subject: {
readonly default: "={{ $fromAI('subject_keywords', 'Keywords to search in email subject line') }}";
readonly placeholder: "invoice, meeting, urgent, project update";
};
readonly text: {
readonly default: "={{ $fromAI('content_keywords', 'Keywords to search in email body content') }}";
readonly placeholder: "password reset, order confirmation, delivery";
};
readonly cc: {
readonly default: "={{ $fromAI('cc_email', 'Email address in CC field') }}";
readonly placeholder: "manager@company.com";
};
readonly bcc: {
readonly default: "={{ $fromAI('bcc_email', 'Email address in BCC field') }}";
readonly placeholder: "admin@company.com";
};
readonly uid: {
readonly default: "={{ $fromAI('email_uids', 'Comma-separated list of specific email UIDs to retrieve') }}";
readonly placeholder: "1,2,3";
};
};
export declare const AIContentSelection: {
readonly includeParts: {
readonly default: "={{ $fromAI('content_types', 'Types of email content to include based on the task requirements', ['textContent', 'flags']) }}";
readonly description: "Select which parts of the email to include. AI agents can choose based on their specific needs.";
};
readonly headersToInclude: {
readonly default: "={{ $fromAI('email_headers', 'Comma-separated list of specific email headers to include for analysis') }}";
readonly placeholder: "received,authentication-results,return-path,date,message-id";
};
};
export declare const AIMailboxOperations: {
readonly emailUid: {
readonly default: "={{ $fromAI('email_uid', 'UID of the email to process') }}";
readonly description: "UID of the email to process";
};
readonly destinationMailbox: {
readonly default: "={{ $fromAI('destination_mailbox', 'Name of the destination mailbox folder') }}";
readonly placeholder: "INBOX, Sent, Drafts, Archive";
};
};