Gmail Inbox Triage and Label Suggestion
2a06d822-6472-4bf6-8778-fb4c7b47db8d
Latency
1391ms
Cost
$0.0008
Tokens
112
Status
successgpt-4o-mini
Workflow Graph
Trace
[
{
"data": {
"nodeType": "manualTrigger"
},
"event": "node_start",
"nodeId": "trigger",
"timestamp": 1783209932234
},
{
"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": 1783209932234
},
{
"data": {
"status": "ok",
"nodeType": "manualTrigger"
},
"event": "node_end",
"nodeId": "trigger",
"timestamp": 1783209932234
},
{
"data": {
"nodeType": "integration"
},
"event": "node_start",
"nodeId": "gmail",
"timestamp": 1783209932236
},
{
"data": {
"service": "gmail",
"resolved": false
},
"event": "credential_access",
"nodeId": "_context",
"timestamp": 1783209932236
},
{
"data": {
"mode": "read",
"status": "ok",
"service": "gmail",
"latencyMs": 250,
"operation": "getAll",
"simulated": true
},
"event": "integration_mocked",
"nodeId": "integration",
"timestamp": 1783209932488
},
{
"data": {
"status": "ok",
"nodeType": "integration"
},
"event": "node_end",
"nodeId": "gmail",
"timestamp": 1783209932488
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "classify",
"timestamp": 1783209932499
},
{
"data": {
"messages": 2,
"maxTokens": 250
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1783209932499
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783209932499
},
{
"data": {
"model": "gpt-4o-mini-2024-07-18",
"costUsd": 0.00076,
"provider": "openai",
"latencyMs": 1123,
"promptTokens": 48,
"completionTokens": 64
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783209933625
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "classify",
"timestamp": 1783209933625
}
]