Auto-close spam emailsUpdated an hour ago
Who can use this feature?
Newsletters, automated notifications, and spam create tickets that nobody needs to answer. Left alone, they crowd your views and your team has to close each one by hand.
The Auto-close spam emails rule closes these tickets for you. Gorgias labels each new email with an intent, which describes what the sender is asking for. When the label says the email doesn't need a response, the rule closes the ticket and tags it. You control which senders the rule never closes and which it always closes.
This article covers how to:
- Understand what the rule closes
- Install the rule
- Choose which senders the rule applies to
- Review the tickets the rule closed
- Keep the rule first in your rule order
- Fix a real customer's email that was closed
- Turn off or delete the rule
Understand what the rule closes
The rule checks each ticket once, when the ticket is created. It closes the ticket when all of these are true:
- The ticket came in by email
- A customer sent it, not someone on your team
- Gorgias labeled it with the intent Other::No Reply or Other::Spam
When the rule closes a ticket, it also adds 2 tags: auto-close and non-support-related. It doesn't reply to the sender, delete the ticket, or mark it as spam.
The rule has 2 lists that change this behavior for specific senders:
- Email exclusion list: the rule never closes tickets from these senders
- Always apply list: the rule closes every new ticket from these senders, whatever the message says
Because Gorgias assigns intents automatically, a label can be wrong. The rule can occasionally close an email from a real customer, and that customer doesn't get a reply. Review what the rule closes after you install it, and use the lists to correct it.
You can't change the rule's conditions or duplicate it. If you need different conditions, build your own auto-close rule instead.
Install the rule
- Click the dropdown menu in the top-left corner, then select Workflows.
- In the menu, locate Tools, then select Rules.
- Click Create rule.
- Select Auto-close spam emails.
- Keep the checkbox selected to create the Auto close spam view, which lists the tickets this rule closes.
- Click Install rule.
The rule's settings open. The rule is turned on as soon as it's installed, and it's placed first in your rule order. It appears in your rules as [Auto Close] Auto-close spam emails. Both lists start empty.
The rule counts toward your account's rule limit.
Choose which senders the rule applies to
Both lists are in the rule's settings. To open them, go to Workflows > Tools > Rules in the menu, then select [Auto Close] Auto-close spam emails.
Keep senders from being closed
Add a sender to the Email exclusion list when their emails need an answer but look automated, such as order notifications from a marketplace or messages from a partner's system.
- Under Email exclusion list, enter the sender's email address in lowercase.
- Click Update rule.
Always close tickets from a sender
Add a sender to the Always apply list when you never need to answer them, such as an address that only sends receipts or marketing emails.
- Under Always apply list, enter the sender's email address in lowercase.
- Click Update rule.
How list entries match senders
An entry matches any email address that contains it. Keep this in mind when you add entries:
- Use lowercase. An entry with a capital letter doesn't match any sender.
- Add a domain to cover everyone at that domain. For example,
example.commatches[email protected]and[email protected]. - Check that an entry isn't part of another address. For example,
[email protected]also matches[email protected]. - Put each sender on 1 list only. You can't save an entry that matches an entry on the other list.
Review the tickets the rule closed
Check the rule's results regularly, especially in the first weeks after you install it.
- Go to Workflows > Tools > Rules in the menu, then select [Auto Close] Auto-close spam emails.
- Click View Tickets Closed By Rule.
The Auto close spam view lists every ticket that has both the auto-close and non-support-related tags. A ticket stays in the view if it's reopened later, so the view also shows you which senders wrote back.
Keep the rule first in your rule order
Rules run in the order they're listed on the Rules page. Keep [Auto Close] Auto-close spam emails first, so it closes these tickets before your other rules act on them. For example, if a rule that sends an automatic reply runs first, a newsletter gets that reply before the ticket is closed.
To move a rule, drag it to a new position on the Rules page.
Fix a real customer's email that was closed
If a customer's email was closed without a reply, first check whether this rule closed it. A ticket closed by this rule has the auto-close and non-support-related tags.
Reply to the customer from the ticket. Then choose the fix that matches what happened:
- The sender isn't on either list. Gorgias labeled the email as not needing a response. Add the sender to the Email exclusion list.
- The sender is on the Always apply list. Remove them, or remove the entry that matches their address. A domain or a short entry can match more senders than you intended.
- The sender is on the Email exclusion list, and the ticket was still closed. Check that the entry is in lowercase. Then check the customer's email address on the ticket. The list is matched against the customer's primary email address, which can differ from the address the email was sent from. Add the customer's primary email address to the list.
- The rule keeps closing emails you need to answer. Turn off the rule and create your own rule with conditions you choose. For example, tag matching tickets for review instead of closing them.
If the customer replies to a ticket this rule closed, the ticket reopens like any other closed ticket. The rule doesn't close it again.
Turn off or delete the rule
- Go to Workflows > Tools > Rules in the menu, then select [Auto Close] Auto-close spam emails.
- To turn off the rule, turn off the Enable rule toggle, then click Update rule.
- To remove the rule, click Delete rule, then click Confirm.
Turning off or deleting the rule doesn't change tickets it already closed, and the Auto close spam view stays. To use the rule again after you delete it, install it again. Deleting the rule clears both lists, so copy any entries you want to keep first.
Frequently asked questions
Is AI Agent closing these tickets?
No. AI Agent skips emails that Gorgias labels as not needing a response. It doesn't reply to them or close them. This rule is what closes them. To understand AI Agent's part, read why AI Agent closes, snoozes, or skips tickets.
Can I add a condition to the rule?
No. Gorgias manages this rule, so you can change its 2 lists but not its conditions or actions. To use your own conditions, turn off the rule and build an auto-close rule from the auto-close rule templates.
Is a ticket closed by this rule the same as a ticket marked as spam?
No. This rule closes and tags a ticket. The ticket stays in your closed tickets and in the Auto close spam view, and it reopens if the sender replies. Marking a ticket as spam is a separate action that moves the ticket to your Spam view.
Does the rule close replies on existing tickets?
No. The rule only checks a ticket when it's created. It doesn't act on later messages, including messages from senders on the Always apply list.