WhatsApp AI Sales Assistant with Document RAG

f0999f5a-ff75-4d97-8ff3-e4600eaa2cf1

Latency
3009ms
Cost
$0.0008
Tokens
169
Status
success
gpt-4o-mini

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "trigger"
    },
    "event": "node_start",
    "nodeId": "77ee6494-4898-47dc-81d9-35daf6f0beea",
    "timestamp": 1783205559593
  },
  {
    "data": {
      "kind": "n8n-nodes-base.whatsAppTrigger"
    },
    "event": "seeded",
    "nodeId": "trigger",
    "timestamp": 1783205559593
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "trigger"
    },
    "event": "node_end",
    "nodeId": "77ee6494-4898-47dc-81d9-35daf6f0beea",
    "timestamp": 1783205559593
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "57210e27-1f89-465a-98cc-43f890a4bf58",
    "timestamp": 1783205559596
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-2024-08-06",
    "nodeId": "llm",
    "timestamp": 1783205559596
  },
  {
    "data": {
      "model": "gpt-4o-2024-08-06",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783205559596
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "openai",
      "latencyMs": 638,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783205560235
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "57210e27-1f89-465a-98cc-43f890a4bf58",
    "timestamp": 1783205560235
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "e1053235-0ade-4e36-9ad2-8b29c78fced8",
    "timestamp": 1783205560244
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205560244
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "e1053235-0ade-4e36-9ad2-8b29c78fced8",
    "timestamp": 1783205560244
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "170e8f7d-7e14-48dd-9f80-5352cc411fc1",
    "timestamp": 1783205560249
  },
  {
    "data": {
      "simulated": true
    },
    "event": "fixture",
    "nodeId": "passthrough",
    "timestamp": 1783205560249
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "170e8f7d-7e14-48dd-9f80-5352cc411fc1",
    "timestamp": 1783205560249
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "ee78320b-d407-49e8-b4b8-417582a44709",
    "timestamp": 1783205560251
  },
  {
    "data": {
      "messages": 1,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-2024-08-06",
    "nodeId": "llm",
    "timestamp": 1783205560251
  },
  {
    "data": {
      "model": "gpt-4o-2024-08-06",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783205560251
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.0001075,
      "provider": "openai",
      "latencyMs": 609,
      "promptTokens": 7,
      "completionTokens": 9
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783205560861
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "ee78320b-d407-49e8-b4b8-417582a44709",
    "timestamp": 1783205560861
  },
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "9dd89378-5acf-4ca6-8d84-e6e64254ed02",
    "timestamp": 1783205560866
  },
  {
    "data": {
      "initialData": {
        "messages": [
          {
            "from": "+1234567890",
            "text": {
              "body": "Hi, I'm interested in the 'Quantum Leap' smartwatch. Can you tell me more about its battery life and if it's waterproof?"
            },
            "type": "text"
          }
        ]
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783205560866
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "9dd89378-5acf-4ca6-8d84-e6e64254ed02",
    "timestamp": 1783205560866
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "e68fc137-1bcb-43f0-b597-3ae07f380c15",
    "timestamp": 1783205560869
  },
  {
    "data": {
      "simulated": true
    },
    "event": "fixture",
    "nodeId": "passthrough",
    "timestamp": 1783205560869
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "e68fc137-1bcb-43f0-b597-3ae07f380c15",
    "timestamp": 1783205560869
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "ca0c015e-fba2-4dca-b0fe-bac66681725a",
    "timestamp": 1783205560872
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205560872
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "ca0c015e-fba2-4dca-b0fe-bac66681725a",
    "timestamp": 1783205560872
  },
  {
    "data": {
      "nodeType": "switch"
    },
    "event": "node_start",
    "nodeId": "87cf9b41-66de-49a7-aeb0-c8809191b5a0",
    "timestamp": 1783205560875
  },
  {
    "event": "matched rule 0 -> Supported",
    "nodeId": "switch",
    "timestamp": 1783205560875
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "switch"
    },
    "event": "node_end",
    "nodeId": "87cf9b41-66de-49a7-aeb0-c8809191b5a0",
    "timestamp": 1783205560875
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "52decd86-ac6c-4d91-a938-86f93ec5f822",
    "timestamp": 1783205560877
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205560877
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "52decd86-ac6c-4d91-a938-86f93ec5f822",
    "timestamp": 1783205560877
  },
  {
    "data": {
      "nodeType": "http"
    },
    "event": "node_start",
    "nodeId": "be2add9c-3670-4196-8c38-82742bf4f283",
    "timestamp": 1783205560879
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "service": "http",
      "latencyMs": 0,
      "operation": "fixture",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205560879
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "http"
    },
    "event": "node_end",
    "nodeId": "be2add9c-3670-4196-8c38-82742bf4f283",
    "timestamp": 1783205560879
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "2d31e92b-18d4-4f6b-8cdb-bed0056d50d7",
    "timestamp": 1783205560882
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205560882
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "2d31e92b-18d4-4f6b-8cdb-bed0056d50d7",
    "timestamp": 1783205560882
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "b6efba81-18b0-4378-bb91-51f39ca57f3e",
    "timestamp": 1783205560884
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "whatsapp",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "send",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205561386
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "b6efba81-18b0-4378-bb91-51f39ca57f3e",
    "timestamp": 1783205561386
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "69f1b78b-7c93-4713-863a-27e04809996f",
    "timestamp": 1783205561392
  },
  {
    "data": {
      "mode": "read",
      "status": "ok",
      "fixture": true,
      "service": "toolvectorstore",
      "latencyMs": 0,
      "operation": "run",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205561392
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "69f1b78b-7c93-4713-863a-27e04809996f",
    "timestamp": 1783205561392
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "63abb6b2-b955-4e65-9c63-3211dca65613",
    "timestamp": 1783205561396
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205561396
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "63abb6b2-b955-4e65-9c63-3211dca65613",
    "timestamp": 1783205561396
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "a36524d0-22a6-48cc-93fe-b4571cec428a",
    "timestamp": 1783205561399
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 1024
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783205561399
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783205561399
  },
  {
    "data": {
      "model": "gpt-4o-mini-2024-07-18",
      "costUsd": 0.00062,
      "provider": "openai",
      "latencyMs": 691,
      "promptTokens": 100,
      "completionTokens": 37
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783205562091
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "a36524d0-22a6-48cc-93fe-b4571cec428a",
    "timestamp": 1783205562091
  },
  {
    "data": {
      "nodeType": "passthrough"
    },
    "event": "node_start",
    "nodeId": "86bd5334-d735-4650-aeff-06230119d705",
    "timestamp": 1783205562097
  },
  {
    "data": {},
    "event": "noOp",
    "nodeId": "passthrough",
    "timestamp": 1783205562097
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "passthrough"
    },
    "event": "node_end",
    "nodeId": "86bd5334-d735-4650-aeff-06230119d705",
    "timestamp": 1783205562097
  },
  {
    "data": {
      "nodeType": "integration"
    },
    "event": "node_start",
    "nodeId": "1ae5a311-36d7-4454-ab14-6788d1331780",
    "timestamp": 1783205562101
  },
  {
    "data": {
      "mode": "write",
      "status": "ok",
      "service": "whatsapp",
      "safeMode": true,
      "latencyMs": 500,
      "operation": "send",
      "simulated": true
    },
    "event": "integration_mocked",
    "nodeId": "integration",
    "timestamp": 1783205562602
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "integration"
    },
    "event": "node_end",
    "nodeId": "1ae5a311-36d7-4454-ab14-6788d1331780",
    "timestamp": 1783205562602
  }
]