Email Response Service
is used to generate contextually appropriate email responses.
The service offers multiple tone options, style customization, and thread analysis capabilities to create professional and contextually aware email responses.
Overview
The Email Response Service provides intelligent email response generation capabilities. It analyzes email threads to understand context and generates appropriate responses while maintaining conversation flow. The service supports various tones from formal to casual, allows style customization, and ensures responses address key points from the original emails. You can configure the tone, style, and other parameters while being confident that the responses will be contextually appropriate and professional. The service produces well-structured emails and is optimized for both single emails and thread analysis.
Endpoints
Here is an overview of the endpoints that are available for this service.
Generate Response
The generate response endpoint is used to create contextually appropriate email responses.
API Endpoint
Endpoint Parameters
Here is an overview of the parameters that are used by the endpoint for response generation.
Request
email_thread
(array, required)
An array of email messages containing the conversation thread. Each message must include:
sender
(string): Email address of the senderrecipient
(string): Email address of the recipientsubject
(string): Email subjectcontent
(string): Email contenttimestamp
(string): When the email was sent
tone
(string, optional)
The desired tone for the response. Options:
formal
: Business-formal communicationcasual
: Relaxed and informal stylefriendly
: Warm and approachable tonedirect
: Clear and concise messaging
Default: "professional"
style_guide
(object, optional)
Configuration for email formatting:
language
(string): Preferred language for responsemax_length
(integer): Maximum response lengthsignature
(string): Email signature to appendgreeting_style
(string): Format for salutations
key_points
(string array, optional)
Specific points that should be addressed in the response
model_id
(string, optional)
The ID of the model to use for response generation Default: "ministral-8b-2410"
options
(object, optional)
Additional options for the model
Response
status
(string)
Status of the response generation
response
(object)
Contains the generated response:
subject
(string): Generated or modified subject linecontent
(string): Generated email response
metadata
(object)
Additional information about the generation:
model
: Model used for generationcreated_at
: Timestamp of creationprocessing_time
: Time taken to process
Examples
Below are examples demonstrating different ways to use the email response service.
Request
Basic Response Generation
Response with Style Guide
Response
Successful Response Generation
Error Response
Analyze Thread
The analyze thread endpoint provides detailed analysis of email conversations, including sentiment, key points, action items, and response urgency assessment.
API Endpoint
Endpoint Parameters
Here is an overview of the parameters that are used by the endpoint for thread analysis.
Request
email_thread
(array, required)
An array of email messages to analyze. Each message must include:
sender
(string): Email address of the senderrecipient
(string): Email address of the recipientsubject
(string): Email subjectcontent
(string): Email contenttimestamp
(string): When the email was sent
analysis_type
(string array, optional)
Types of analysis to perform. Available options:
sentiment
: Analyze emotional tone of messageskey_points
: Extract main discussion pointsaction_items
: Identify required actionsresponse_urgency
: Assess how quickly a response is needed
model_id
(string, optional)
Specific model to use for the analysis.
Response
status
(string)
Status of the analysis operation
analysis
(object)
Contains the analysis results:
sentiment
: Sentiment analysis resultskey_points
: Array of main points from the threadaction_items
: Array of identified action itemsresponse_urgency
: Suggested response urgency level
metadata
(object)
Additional information about the analysis:
model
: Model used for analysiscreated_at
: Timestamp of analysisprocessing_time
: Time taken to process
Examples
Below are examples demonstrating different ways to use the thread analysis service.
Request
Basic Thread Analysis
Comprehensive Analysis
Response
Successful Analysis
Error Response
Configuration
The email thread analysis service uses the following default configuration:
- Maximum Thread Length: 10 emails
- Default Language: English
- Default Tone: Professional
These settings can be overridden by specifying custom values in the request parameters.