Gmail Inbox Triage and Label Suggestion

8bf2b508-5e8b-42e6-a143-bf9841abaa34

Latency
1620ms
Cost
$0.0005
Tokens
248
Status
success
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "trigger",
    "timestamp": 1783209934531
  },
  {
    "data": {
      "initialData": {
        "messages": [
          {
            "id": "msg_12345",
            "payload": {
              "body": {
                "data": "Hi team,\n\nWe need an urgent update on Project Phoenix. Please review the attached document and provide your status by end of day today.\n\nThanks,\nProject Manager"
              },
              "headers": {
                "To": "you@yourdomain.com",
                "From": "project.manager@example.com",
                "Subject": "Urgent: Project Phoenix Update Required"
              }
            },
            "snippet": "Urgent: Project Phoenix update required by EOD. Please review attached document.",
            "labelIds": [
              "INBOX",
              "UNREAD"
            ],
            "threadId": "thread_abcde"
          },
          {
            "id": "msg_67890",
            "payload": {
              "body": {
                "data": "Hello,\n\nWe have a new lead: John Doe from Acme Corp. He expressed interest in our premium service package. Please follow up.\n\nRegards,\nSales Team"
              },
              "headers": {
                "To": "you@yourdomain.com",
                "From": "sales.bot@example.com",
                "Subject": "New Lead: John Doe - Acme Corp"
              }
            },
            "snippet": "New lead: John Doe from Acme Corp is interested in our services.",
            "labelIds": [
              "INBOX"
            ],
            "threadId": "thread_fghij"
          },
          {
            "id": "msg_11223",
            "payload": {
              "body": {
                "data": "Dear Customer,\n\nYour invoice #INV-98765 is due on 2023-10-27. Please find the payment details attached.\n\nSincerely,\nBilling Department"
              },
              "headers": {
                "To": "you@yourdomain.com",
                "From": "billing@example.com",
                "Subject": "Invoice #INV-98765 Due Soon"
              }
            },
            "snippet": "Invoice #INV-98765 due next week. Payment details attached.",
            "labelIds": [
              "INBOX",
              "IMPORTANT"
            ],
            "threadId": "thread_klmno"
          }
        ]
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783209934531
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "trigger",
    "timestamp": 1783209934531
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "gmail",
    "timestamp": 1783209934532
  },
  {
    "data": {
      "service": "gmail",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783209934532
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "gmail",
      "latencyMs": 250,
      "operation": "getAll",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783209934783
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "gmail",
    "timestamp": 1783209934783
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "classify",
    "timestamp": 1783209934785
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 250
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783209934785
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783209934785
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.0005386,
      "provider": "openai",
      "latencyMs": 1365,
      "promptTokens": 37,
      "completionTokens": 211
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783209936151
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "classify",
    "timestamp": 1783209936151
  }
]