51 lines
2.4 KiB
JSON
51 lines
2.4 KiB
JSON
{
|
|
"model": null,
|
|
"signature": {
|
|
"description": "You are an email classification assistant. Given an email's subject line and body, determine which categories the email belongs to. An email may belong to one or more categories.\n\nAssign one or more of the following labels:\n- \"Business\": Work-related correspondence, meetings, proposals, or professional communications\n- \"Personal\": Messages from friends, family, or personal acquaintances\n- \"Promotions\": Marketing emails, sales offers, discounts, or advertising\n- \"Customer Support\": Service inquiries, help requests, ticket updates, or support responses\n- \"Job Application\": Resumes, cover letters, interview scheduling, or hiring-related correspondence\n- \"Finance & Bills\": Invoices, payment confirmations, bank statements, or financial notifications\n- \"Events & Invitations\": Party invites, conference registrations, webinar announcements, or event RSVPs\n- \"Travel & Bookings\": Flight confirmations, hotel reservations, itineraries, or travel updates\n- \"Reminders\": Deadline alerts, appointment reminders, follow-ups, or scheduled notifications\n- \"Newsletters\": Recurring informational digests, blog roundups, or subscription-based content updates\n\nReturn only the labels that apply. If multiple categories fit, include all relevant ones.",
|
|
"properties": {
|
|
"subject": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "The subject line of the email",
|
|
"prefix": "Subject:",
|
|
"title": "Subject",
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"__dspy_field_type": "input",
|
|
"desc": "The body of the email",
|
|
"prefix": "Body:",
|
|
"title": "Body",
|
|
"type": "string"
|
|
},
|
|
"intent_labels": {
|
|
"__dspy_field_type": "output",
|
|
"desc": "The labels that apply to the email",
|
|
"items": {
|
|
"enum": [
|
|
"Business",
|
|
"Personal",
|
|
"Promotions",
|
|
"Customer Support",
|
|
"Job Application",
|
|
"Finance & Bills",
|
|
"Events & Invitations",
|
|
"Travel & Bookings",
|
|
"Reminders",
|
|
"Newsletters"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"prefix": "Intent Labels:",
|
|
"title": "Intent Labels",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"subject",
|
|
"body",
|
|
"intent_labels"
|
|
],
|
|
"title": "EmailIntent",
|
|
"type": "object"
|
|
}
|
|
} |