Generate AI Email Draft Replies
442893fb-7bcc-4521-ac35-68bda8c71a5c
Latency
1322ms
Cost
$0.0008
Tokens
136
Status
successgpt-4o-mini
Workflow Graph
Trace
[
{
"data": {
"nodeType": "manualTrigger"
},
"event": "node_start",
"nodeId": "trigger",
"timestamp": 1783203973149
},
{
"data": {
"initialData": {
"context": "You are an AI assistant helping a customer support team draft replies to incoming emails. The goal is to provide a helpful and professional response that addresses the customer's query.",
"incoming_email": {
"to": "support@yourcompany.com",
"body": "Hi there,\n\nI'm writing to inquire about the shipping status of my recent order, #12345. I placed it on October 26th and haven't received any shipping confirmation yet. Could you please provide an update on when I can expect it to be shipped?\n\nThank you,\nJane Doe",
"from": "customer@example.com",
"subject": "Question about Order #12345 - Shipping Status"
}
}
},
"event": "triggered",
"nodeId": "manualTrigger",
"timestamp": 1783203973149
},
{
"data": {
"status": "ok",
"nodeType": "manualTrigger"
},
"event": "node_end",
"nodeId": "trigger",
"timestamp": 1783203973149
},
{
"data": {
"nodeType": "llm"
},
"event": "node_start",
"nodeId": "drafter",
"timestamp": 1783203973152
},
{
"data": {
"messages": 2,
"maxTokens": 250
},
"event": "calling openai/gpt-4o-mini",
"nodeId": "llm",
"timestamp": 1783203973152
},
{
"data": {
"model": "gpt-4o-mini",
"provider": "openai"
},
"event": "llm_call",
"nodeId": "_context",
"timestamp": 1783203973152
},
{
"data": {
"model": "gpt-4o-mini-2024-07-18",
"costUsd": 0.0007525,
"provider": "openai",
"latencyMs": 1318,
"promptTokens": 81,
"completionTokens": 55
},
"event": "llm_result",
"nodeId": "_context",
"timestamp": 1783203974471
},
{
"data": {
"status": "ok",
"nodeType": "llm"
},
"event": "node_end",
"nodeId": "drafter",
"timestamp": 1783203974471
}
]