π« Auto-sort support emails with OpenAI and route to Teams with Jira integration
β‘ 604 views Β· π« Ticket Management & Triage
Description
This automated n8n workflow provides an AI-powered email classifier for support emails, automatically categorizing incoming emails and routing them to the appropriate inbox, creating a Jira task, and sending an autoresponse within minutes.
Main Components
- IMAP Email - Monitors incoming support emails via IMAP
- OpenAI - Classifies emails into categories (billing, bug, feature)
- Switch - Routes emails based on the classified category
- Send Billing Email - Forwards billing-related emails to the billing inbox
- Send Bug Email - Forwards bug-related emails to the bugs inbox
- Send Feature Email - Forwards feature-related emails to the features inbox
- Create Jira Task - Creates a task in Jira for each classified email
- Send Autoresponse - Sends a confirmation email to the sender
Essential Prerequisites
- IMAP access to the support email account
- OpenAI API key
- SMTP server credentials for sending emails
- Jira account with API access
Customization Guide
- Update IMAP host and credentials in the IMAP Email node
- Adjust OpenAI model or prompt in the OpenAI node
- Modify email addresses (billing@yourdomain.com, bugs@yourdomain.com, features@yourdomain.com) in Send Email nodes
- Configure Jira project ID and credentials in the Create Jira Task node
- Change autoresponse text in the Send Autoresponse node
Features
- π€ AI Classification: Uses OpenAI to categorize emails into billing, bug, or feature
- π Automated Routing: Routes emails to the correct inbox based on category
- π― Task Creation: Creates a Jira task for each support request
- π§ Autoresponse: Sends instant confirmation to the sender
- β‘ Optimizations Made: Streamlined email processing with single-pass classification
Parameters to Configure
imap_host: Your IMAP server addressimap_user: IMAP username (e.g., support@yourdomain.com)imap_password: IMAP passwordopenai_api_key: OpenAI API keysmtp_host: Your SMTP server addresssmtp_user: SMTP usernamesmtp_password: SMTP passwordjira_project_id: Your Jira project IDjira_user: Jira usernamejira_api_token: Jira API token
How to Use
- Copy the JSON code from the artifact
- Open your n8n workspace
- Select βImport from JSONβ or β+β β βFrom JSONβ
- Paste the JSON code
- Configure parameters in the respective nodes with your credentials and settings
- Run the workflow
Workflow Actions
- Classify: Uses OpenAI to categorize incoming emails
- Route: Forwards emails to the appropriate inbox
- Create: Generates a Jira task for each email
- Respond: Sends an autoresponse to the sender
π Nodes Used
Email Trigger (IMAP), Send Email, Jira Software, OpenAI
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File