Skip to content
Customer support

Classify support emails with AI

Detects urgency, topic and language and creates the ticket with the right priority.

Request sign-upDownload JSON6 min to set up≈ 3 credits per run

How the flow works

  1. Gmail

    Trigger

    New email in the support inbox

    Gmail·gmail_new_email_received

  2. Anthropic Claude

    Step 1

    Detect urgency, topic and language

    Anthropic Claude·extract-structured-data

  3. attendo

    Step 2

    Create the ticket with the right priority

    attendo·create_ticket

Set it up in 4 steps

  1. 1

    Import the template

    In the platform, go to Flows → Import and upload the JSON.

  2. 2

    Connect your accounts

    Each component asks for its connection (Gmail, Anthropic Claude, attendo). Credentials are stored encrypted.

  3. 3

    Review the highlighted fields

    Pick the channel, sheet, calendar or pipeline. Missing fields are shown in red.

  4. 4

    Test and turn it on

    Run a test with real data, check each step’s output and publish the flow.

View the template JSON
{
  "name": "Classify support emails with AI",
  "description": "Detects urgency, topic and language and creates the ticket with the right priority.",
  "tags": [
    "Customer support"
  ],
  "pieces": [
    "@flooows/component-gmail",
    "@flooows/component-claude",
    "@flooows/component-attendo"
  ],
  "template": {
    "displayName": "Classify support emails with AI",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "New email in the support inbox",
      "settings": {
        "pieceName": "@flooows/component-gmail",
        "pieceVersion": "~0.18.6",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "gmail_new_email_received",
        "input": {
          "to": "soporte@tuempresa.com"
        },
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Detect urgency, topic and language",
        "settings": {
          "pieceName": "@flooows/component-claude",
          "pieceVersion": "~0.9.0",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "extract-structured-data",
          "input": {
            "model": "claude-haiku-5-5",
            "text": "{{trigger.subject}}\n\n{{trigger.body_plain}}",
            "mode": "simple",
            "schema": {
              "fields": [
                {
                  "name": "urgencia",
                  "type": "string",
                  "description": "alta, media o baja"
                },
                {
                  "name": "tema",
                  "type": "string"
                },
                {
                  "name": "idioma",
                  "type": "string"
                }
              ]
            }
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Create the ticket with the right priority",
          "settings": {
            "pieceName": "@flooows/component-attendo",
            "pieceVersion": "~1.0.0",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "create_ticket",
            "input": {
              "subject": "{{trigger.subject}}",
              "priority": "{{step_1.urgencia}}",
              "category": "{{step_1.tema}}",
              "customerEmail": "{{trigger.from}}"
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/en/templates/classify-support-emails-ai",
  "metadata": {
    "publisher": "flooows",
    "lang": "en",
    "setupMinutes": 6,
    "creditsPerRun": 3
  }
}

More templates

Your first floow, running today.

Work out the price of your plan in a minute and request your sign-up, or book a demo and we will help your team design its first flows.

✓ No credit card✓ Human support✓ Data hosted in Spain