{
execution_context: {
vars: {...}, // Workflow variables
system: {...}, // System data
context: {...}, // Execution context
metadata: {...} // Metadata
},
flow_events: [...], // Recent workflow events (last 10)
flow_info: {
id: "flow_abc123", // Flow ID
name: "My Flow", // Flow name
step_id: "step_xyz" // Current step ID
},
available_edges: [ // Condition labels from your DecideNode
"premium",
"standard",
"trial"
],
whatsapp_context: { // Only present when triggered by WhatsApp
conversation: {
id: "conv_123",
phone_number: "+1234567890",
status: "open",
last_active_at: "2024-01-15T10:30:00Z",
whatsapp_config_id: "config_abc",
metadata: {},
created_at: "2024-01-10T08:00:00Z",
updated_at: "2024-01-15T10:30:00Z"
},
messages: [ // All messages, ordered by created_at (oldest first)
{
id: "msg_001",
message_type: "text", // text, image, video, document, audio, location, interactive, template, reaction, contacts
content: "Hello!",
direction: "inbound", // inbound (from user), outbound (from bot)
status: "delivered",
processing_status: "processed",
whatsapp_message_id: "wamid_abc",
origin: "cloud_api",
phone_number: "+1234567890",
has_media: false,
reply_option_id: null, // Button/list ID when user clicks interactive reply
reply_option_title: null, // Button/list title when user clicks interactive reply
interactive_type: null, // button_reply, list_reply, nfm_reply (for interactive responses)
interactive_data: null, // Full interactive payload
created_at: "2024-01-15T10:00:00Z",
updated_at: "2024-01-15T10:00:00Z"
}
]
}
}