{
"email": {
"receipt": {
"mailbay_domain": "acme.mailbay.cloud",
"recipient": "john.doe@acme.mailbay.cloud",
"sender": "notifications@example.com",
"spam_score": 0.1,
"received_timestamp": "2023-08-15T14:22:33.457Z"
},
"content": {
"size": 285680,
"download_url": "https://mailbay-storage.s3.amazonaws.com/emails/abc123def456?signature=xyz789"
},
"headers": {
"subject": "Monthly System Maintenance Notification",
"date": "15 Aug 2023 16:22:11 +0200",
"to": [
"john.doe@acme.mailbay.cloud"
],
"cc": [
"Engineering <engineering@example.com>"
],
"bcc": null,
"from": [
"System Notifications <notifications@example.com>"
],
"sender": null
}
},
"attachments": [
{
"filename": "maintenance-schedule.pdf",
"size": 156780
},
{
"filename": "backup-procedures.docx",
"size": 89234
}
],
"ai_processing": {
"prompt": "Based on the email content, return a JSON object with the following schema: { \"type\": string, \"scheduled_date\": string (YYYY-MM-DD), \"duration\": string, \"affected_systems\": string[], \"urgency\": \"low\" | \"medium\" | \"high\", \"action_required\": boolean }",
"result_json": {
"type": "maintenance_notification",
"scheduled_date": "2023-08-20",
"duration": "4 hours",
"affected_systems": [
"Database",
"API Gateway",
"File Storage"
],
"urgency": "medium",
"action_required": false
},
"result": "{\n \"type\": \"maintenance_notification\",\n \"scheduled_date\": \"2023-08-20\",\n \"duration\": \"4 hours\",\n \"affected_systems\": [\"Database\", \"API Gateway\", \"File Storage\"],\n \"urgency\": \"medium\",\n \"action_required\": false\n}",
"total_tokens_consumed": 1245,
"request_tokens_consumed": 1180,
"response_tokens_consumed": 65
}
}