Skip to content

Every 10 minutes

Turn support emails into Trello cards and flag urgent ones in Slack

Each new support email becomes a Trello card labelled by priority, and urgent ones are posted to #support straight away.

Runs
Every 10 minutes
Apps
Slack, Trello
AI
Yes, uses the built-in AI allowance
Access
Gmail read; Trello write; Slack chat:write

Send this to your assistant

Create a ClickRuntime automation: every 10 minutes, turn new support emails into Trello cards labelled by priority, and post the urgent ones in #support.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A three-person support team at an online shop shares one support inbox and tracks requests on a Trello board. Someone has to read each email, decide how urgent it is and create a card. When a customer writes that a payment went through twice, that email can sit behind twenty "where is my order" messages for hours.

This automation turns each support email into a card with a priority label and posts urgent ones to Slack, so the team sees the serious problems first.

What you get out of it

  • Urgent problems surface in minutes

    Double charges, broken checkouts and escalations go to #support as soon as they arrive. Someone can pick them up right away. Customers with real problems wait less.

  • Every email gets a card

    No request is forgotten in a shared inbox where everyone assumes someone else replied. The board shows exactly what is open. Handovers between shifts are simple.

  • The board is sorted by priority

    Each card arrives with a priority label, so the team works from the top. Routine questions can be batched for later. The day is planned around what matters.

  • Less time triaging

    Reading and sorting every email by hand eats into time for actually replying. Triage is done before anyone opens the inbox. The team spends its time on answers.

  • A history of support requests

    Cards stay on the board after they are closed, with their labels. You can see which kinds of problems come up most often. That points to fixes in the shop or the help pages.

How it works

What happens, step by step

  1. Every 10 minutes, ClickRuntime checks your support inbox for new emails.

  2. It remembers which emails it has handled, so each one becomes only one card.

  3. AI reads each email and decides how urgent it is.

  4. A Trello card is created in your chosen list with a matching priority label.

  5. Urgent emails are also posted to your #support Slack channel.

Before it runs live

  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Connect Trello

What you get

RunsEvery 10 minutes
Turn support emails into Trello cards and flag urgent ones in Slacktoday, 9:00Succeeded
Slack · #supportUrgent support email from orders@contoso.example: Charged twice for order #10482

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Slack and Trello steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
support_emails_trello_tickets_with_slack_alerts.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, notify, ai, report_fetched

LIST_ID = "your-trello-list-id"
LABELS = {"urgent": "urgent-label-id", "normal": "normal-label-id", "low": "low-label-id"}

@on_trigger
def run(event):
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    seen = state.get("seen") or []
    found = gmail.users().messages().list(userId="me", q="to:support newer_than:1d").execute().get("messages", [])
    ids = [m["id"] for m in found if m["id"] not in seen]
    report_fetched(len(ids))
    if not ids:
        return {"summary": "Nothing new"}
    auth = {"key": credentials.secret("TRELLO_KEY"), "token": credentials.secret("TRELLO_TOKEN")}
    for mid in ids:
        m = gmail.users().messages().get(userId="me", id=mid, format="metadata", metadataHeaders=["From", "Subject"]).execute()
        h = {x["name"]: x["value"] for x in m["payload"]["headers"]}
        try:
            p = ai.generate(f"Support email: {h.get('Subject')}\n{m['snippet']}\nAnswer one word: urgent, normal or low.", max_output_tokens=5).text.strip().lower()
        except ai.AIError:
            p = "normal"
        p = p if p in LABELS else "normal"
        http.post("https://api.trello.com/1/cards", params={**auth, "idList": LIST_ID, "name": h.get("Subject", "(no subject)"),
                  "desc": f"From {h.get('From')}\n\n{m['snippet']}", "idLabels": LABELS[p]})
        if p == "urgent":
            notify.slack(f"Urgent support email from {h.get('From')}: {h.get('Subject')}", channel="#support")
        seen.append(mid)
    state.set("seen", seen[-500:])
    return {"summary": f"{len(ids)} cards created"}

FAQ

Common questions

What counts as urgent?
Emails about payments, failed orders, security or a customer who has already written several times are treated as urgent. You can describe your own rules, such as anything from a wholesale customer.
Which list do the cards go into?
All new cards go into one list you choose, such as Inbox or New. The team then moves them along the board as usual.
Is the full email copied into the card?
The card holds the sender, the subject and the start of the email. You open the email in Gmail to read the rest and reply.
What permissions does it need?
Gmail read; Trello write; Slack chat:write. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Turn support emails into Trello cards and flag urgent ones in Slack” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.