Create issues from email and assign them automatically ​

A dedicated support address, such as support@example.com, keeps customer questions in one place. ERPNext can create an Issue from each email to that address, and an Assignment Rule can give each new Issue to an agent. No ticket waits for someone to pick it up.

Prerequisites ​

  • A mailbox for support, with its login details.
  • The support agents are users in ERPNext.

Step 1: Receive support email as Issues ​

  1. Open the Email Account list and select Add Email Account.
  2. Enter the support email address and the login details. Learn more about email accounts.
  3. Select Enable Incoming.
  4. In Append To, select Issue.
  5. Save the email account.

ERPNext now creates an Issue for each new email to the address. Replies to the same thread go to the same Issue. You set this up once. Change it only when the mailbox password changes.

Step 2: Assign Issues automatically ​

  1. Open the Assignment Rule list and select Add Assignment Rule.
  2. Set Document Type to Issue.
  3. Set the conditions:
    • Assign Condition: when to assign, for example status == "Open".
    • Unassign Condition: when to remove the assignment, for example status == "Closed".
  4. Select the Rule:
    • Round Robin: each agent in turn.
    • Load Balancing: the agent with the fewest open assignments.
    • Based on Field: the user named in a field of the Issue.
  5. In Users, add the support agents.
  6. Save the rule.

ERPNext applies the rule when an Issue is created or updated. Each assigned agent gets a to-do and a notification. Learn more about assignment rules.

To stop automatic assignment, open the rule and select Disabled.

The same steps work for other documents, for example to assign Leads to your sales team.