Skip to main content

Auto-sort support emails with OpenAI and route to Teams with Jira integration

Workflow preview

Workflow preview
100%
Auto-sort support emails with OpenAI and route to Teams with Jira integration preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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, a...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, n8n-nodes-base.openai, n8n-nodes-base.switch, n8n-nodes-base.emailsend, n8n-nodes-base.jira, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Auto-sort support emails with OpenAI and route to Teams with Jira integration
Workflow name
Auto-sort support emails with OpenAI and route to Teams with Jira integration

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

  1. Update IMAP host and credentials in the IMAP Email node
  2. Adjust OpenAI model or prompt in the OpenAI node
  3. Modify email addresses ([email protected], [email protected], [email protected]) in Send Email nodes
  4. Configure Jira project ID and credentials in the Create Jira Task node
  5. 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 address
  • imap_user: IMAP username (e.g., [email protected])
  • imap_password: IMAP password
  • openai_api_key: OpenAI API key
  • smtp_host: Your SMTP server address
  • smtp_user: SMTP username
  • smtp_password: SMTP password
  • jira_project_id: Your Jira project ID
  • jira_user: Jira username
  • jira_api_token: Jira API token

How to Use

  1. Copy the JSON code from the artifact
  2. Open your n8n workspace
  3. Select “Import from JSON” or “+” → “From JSON”
  4. Paste the JSON code
  5. Configure parameters in the respective nodes with your credentials and settings
  6. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - IMAP Email

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 1

Block 2 - OpenAI

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 3 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 1

Block 4 - Send Billing Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 5 - Send Bug Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 6 - Send Feature Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 7 - Create Jira Task

Type / Role
n8n-nodes-base.jira - jira
Config choices
Version 1

Block 8 - Send Autoresponse

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Auto-sort support emails with OpenAI and route to Teams with Jira integration
Complexity intermediate
Nodes 9
Categories Ticket Management, AI Summarization
Author Oneclick AI Squad
Published 29 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6639/6639.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-sort support emails with OpenAI and route to Teams with Jira integration do?

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, a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.