WhatsApp Multimedia AI Assistant Using Google Gemini

13ea3b28-21b6-4f8e-96b3-7561fea386ff

Latency
6107ms
Cost
$0.0012
Tokens
201
Status
success
gpt-4o-mini

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "38ffe41a-ecdf-4bb4-bd55-51998abab0f5",
    "timestamp": 1783204683815
  },
  {
    "data": {
      "kind": "n8n-nodes-base.whatsAppTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783204683815
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "38ffe41a-ecdf-4bb4-bd55-51998abab0f5",
    "timestamp": 1783204683815
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "d38b6f73-272e-4833-85fc-46ce0db91f6a",
    "timestamp": 1783204683817
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783204683817
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "d38b6f73-272e-4833-85fc-46ce0db91f6a",
    "timestamp": 1783204683817
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "f2ecc9a9-bdd9-475d-be0c-43594d0cb613",
    "timestamp": 1783204683819
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "toolwikipedia",
      "latencyMs": 250,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204684071
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "f2ecc9a9-bdd9-475d-be0c-43594d0cb613",
    "timestamp": 1783204684071
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "8dd972be-305b-4d26-aa05-1dee17411d8a",
    "timestamp": 1783204684077
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling google/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204684077
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "google"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204684077
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "google",
      "latencyMs": 783,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204684860
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "8dd972be-305b-4d26-aa05-1dee17411d8a",
    "timestamp": 1783204684860
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "7e28786b-ab19-4969-9915-2432a25b49d3",
    "timestamp": 1783204684865
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling google/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204684865
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "google"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204684865
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "google",
      "latencyMs": 971,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204685848
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "7e28786b-ab19-4969-9915-2432a25b49d3",
    "timestamp": 1783204685848
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "8832dac3-9433-4dcc-a805-346408042bf2",
    "timestamp": 1783204685853
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling google/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204685853
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "google"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204685853
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "google",
      "latencyMs": 627,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204686483
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "8832dac3-9433-4dcc-a805-346408042bf2",
    "timestamp": 1783204686483
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "7a4c9905-37f0-4cfe-a928-91c7e38914b9",
    "timestamp": 1783204686487
  },
  {
    "data": {
      "count": 1
    },
    "event": "splitOut",
    "nodeId": "passthrough",
    "timestamp": 1783204686487
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "7a4c9905-37f0-4cfe-a928-91c7e38914b9",
    "timestamp": 1783204686487
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "325dac6d-6698-41e0-8d2f-9ac5d84c245e",
    "timestamp": 1783204686491
  },
  {
    "event": "no rule matched -> default",
    "nodeId": "switch",
    "timestamp": 1783204686491
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "325dac6d-6698-41e0-8d2f-9ac5d84c245e",
    "timestamp": 1783204686491
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "a35ac268-eff0-46cd-ac4e-c9b047a3f893",
    "timestamp": 1783204686494
  },
  {
    "data": {
      "service": "whatsapp",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783204686494
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "whatsapp",
      "latencyMs": 250,
      "operation": "mediaUrlGet",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204686745
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "a35ac268-eff0-46cd-ac4e-c9b047a3f893",
    "timestamp": 1783204686745
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "a3be543c-949c-4443-bf82-e0d00419ae23",
    "timestamp": 1783204686750
  },
  {
    "data": {
      "service": "whatsapp",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783204686750
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "whatsapp",
      "latencyMs": 250,
      "operation": "mediaUrlGet",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687002
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "a3be543c-949c-4443-bf82-e0d00419ae23",
    "timestamp": 1783204687002
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "dd3cd0e7-0d1e-40cf-8120-aba0d1646d6d",
    "timestamp": 1783204687004
  },
  {
    "data": {
      "service": "whatsapp",
      "resolved": false
    },
    "event": "credential_access",
    "nodeId": "_context",
    "timestamp": 1783204687004
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "whatsapp",
      "latencyMs": 250,
      "operation": "mediaUrlGet",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687257
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "dd3cd0e7-0d1e-40cf-8120-aba0d1646d6d",
    "timestamp": 1783204687257
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "925a3871-9cdb-49f9-a2b9-890617d09965",
    "timestamp": 1783204687262
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783204687262
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "925a3871-9cdb-49f9-a2b9-890617d09965",
    "timestamp": 1783204687262
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "b22e3a7d-5fa1-4b8d-be08-b59f5bb5c417",
    "timestamp": 1783204687265
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "unresolvable-url",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687265
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "b22e3a7d-5fa1-4b8d-be08-b59f5bb5c417",
    "timestamp": 1783204687265
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "a3505c93-2719-4a11-8813-39844fe0dd1a",
    "timestamp": 1783204687268
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "unresolvable-url",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687268
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "a3505c93-2719-4a11-8813-39844fe0dd1a",
    "timestamp": 1783204687268
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "dcadbd30-598e-443b-a3a7-10d7f9210f49",
    "timestamp": 1783204687270
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "unresolvable-url",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687271
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "dcadbd30-598e-443b-a3a7-10d7f9210f49",
    "timestamp": 1783204687271
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "2ad0e104-0924-47ef-ad11-d84351d72083",
    "timestamp": 1783204687273
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204687273
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204687273
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "openai",
      "latencyMs": 578,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204687852
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "2ad0e104-0924-47ef-ad11-d84351d72083",
    "timestamp": 1783204687852
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "d0c7c2f6-b626-4ec5-86ff-96523749db2c",
    "timestamp": 1783204687857
  },
  {
    "event": "fetching POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-002:generateContent",
    "nodeId": "http",
    "timestamp": 1783204687857
  },
  {
    "data": {
      "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-002:generateContent",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1783204687857
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "http-400",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204687991
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "d0c7c2f6-b626-4ec5-86ff-96523749db2c",
    "timestamp": 1783204687991
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "27261815-f949-48e8-920d-7bf880ea87ce",
    "timestamp": 1783204687994
  },
  {
    "event": "fetching POST https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-002:generateContent",
    "nodeId": "http",
    "timestamp": 1783204687994
  },
  {
    "data": {
      "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-002:generateContent",
      "method": "POST"
    },
    "event": "http_fetch",
    "nodeId": "_context",
    "timestamp": 1783204687994
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 250,
      "operation": "http-400",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204688036
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "27261815-f949-48e8-920d-7bf880ea87ce",
    "timestamp": 1783204688036
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "2f0fd658-a138-4f50-95a7-7ddc4eb90fab",
    "timestamp": 1783204688040
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204688040
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204688040
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0003925,
      "provider": "openai",
      "latencyMs": 791,
      "promptTokens": 29,
      "completionTokens": 32
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204688831
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "2f0fd658-a138-4f50-95a7-7ddc4eb90fab",
    "timestamp": 1783204688832
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "73d0af9e-d009-4859-b60d-48a2fbeda932",
    "timestamp": 1783204688837
  },
  {
    "data": {
      "inputKeys": [
        "statusCode",
        "headers",
        "body",
        "simulated"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783204688837
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "73d0af9e-d009-4859-b60d-48a2fbeda932",
    "timestamp": 1783204688837
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "d969ce8b-d6c4-4918-985e-3420557ef707",
    "timestamp": 1783204688841
  },
  {
    "data": {
      "inputKeys": [
        "statusCode",
        "headers",
        "body",
        "simulated"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783204688841
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "d969ce8b-d6c4-4918-985e-3420557ef707",
    "timestamp": 1783204688841
  },
  {
    "data": {
      "nodeType": "set"
    },
    "event": "node_start",
    "nodeId": "3459f96b-c0de-4514-9d53-53a9b40d534e",
    "timestamp": 1783204688844
  },
  {
    "data": {
      "inputKeys": [
        "statusCode",
        "headers",
        "body",
        "simulated"
      ],
      "mergeKeys": []
    },
    "event": "merged",
    "nodeId": "set",
    "timestamp": 1783204688844
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "set"
    },
    "event": "node_end",
    "nodeId": "3459f96b-c0de-4514-9d53-53a9b40d534e",
    "timestamp": 1783204688844
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "85eaad3a-c4d1-4ae7-a37b-0b72be39409d",
    "timestamp": 1783204688848
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783204688848
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783204688848
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.00034,
      "provider": "openai",
      "latencyMs": 561,
      "promptTokens": 56,
      "completionTokens": 20
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783204689414
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "85eaad3a-c4d1-4ae7-a37b-0b72be39409d",
    "timestamp": 1783204689414
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "89df6f6c-2d91-4c14-a51a-4be29b1018ec",
    "timestamp": 1783204689420
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "whatsapp",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "send",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783204689922
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "89df6f6c-2d91-4c14-a51a-4be29b1018ec",
    "timestamp": 1783204689922
  }
]