E-commerce

AI-powered API

Custom Thank You E-mail Generator

Generates a detailed thank you message after a purchase, excluding the title, greeting, and sender info.

The response content does not contain the title, greeting or sender info at the end so you can personalize the rest of the email easily.

This API is perfect for e-commerce platforms looking to automate customer engagement. It ensures each customer receives a thoughtful thank you message, enhancing their shopping experience. Use cases include sending personalized thank you emails, improving customer satisfaction, and fostering customer loyalty.

Only the content parameter is required.

You can limit the output with the max_length parameter. Please keep in mind that max_length serves as a strong suggestion for the Language Model, rather than a strict requirement, to maintain the general sense of the outcome.

You can set your preferred writing style by providing a voice_tone parameter. It can be adjectives like funny or joyous, or even the name of a famous writer.

This API method also provides an optional context parameter, which can be used to supply additional flexible instructions for content processing.

AI jobs involve two key steps:

  1. Submitting the AI job: Initiating the process by sending the job request.
  2. Monitoring and receiving results: Continuously checking the job status and obtaining the final output upon successful completion.


SharpAPI SOC 2 Type II

SharpAPI is now SOC 2 Type II compliant. You can check details at our Trust Center Portal.

Your data is your data. Learn how we protect it and comply with global privacy standards in our Data Handling and Compliance policy .

Step 1. Submit the AI Job request

Endpoint: POST - /v1/ecommerce/thank_you_email

Attribute Type Mandatory Description
content String Yes Product name and its parameters to generate the thank you email.
language String No Specify the language of the output, defaults to English.
max_length Number No Specify the maximum length of the email in words, e.g., 100.
voice_tone String No Specify the voice tone of the output. It can be adjectives like funny or joyous, or even the name of a famous writer.
context String No An additional flexible instructions for content processing.

REQUEST EXAMPLE:

{
  "content": "Razer Blade 16 Gaming Laptop: NVIDIA GeForce RTX 4090-13th Gen Intel 24-Core i9 HX CPU",
  "language": "English",
  "voice_tone": "neutral",
  "context": "At the end of the email include an invitation for the customer to visit our store again"
}

RESPONSE EXAMPLE:

{
  "status_url": "https://sharpapi.com/api/v1/content/translate/job/status/5de4887a-0dfd-49b6-8edb-9280e468c210",
  "job_id": "5de4887a-0dfd-49b6-8edb-9280e468c210"
}

Step 2. Monitor & Fetch AI Job Results

Endpoint: GET- v1/ecommerce/thank_you_email/job/status/:uuid

An endpoint is used to check on the progress of the requested API job.

RESULT EXAMPLE:

{
  "data": {
    "type": "api_job_result",
    "id": "8c3af4d1-a8ae-4c52-9656-4f26254b7b71",
    "attributes": {
      "status": "success",
      "type": "ecommerce_thank_you_email",
      "result": {
        "email": "Dear Customer,\n\nThank you for your recent purchase of the Razer Blade 16 Gaming Laptop: NVIDIA GeForce RTX 4090-13th Gen Intel 24-Core i9 HX CPU. We appreciate your business and are confident that you will enjoy the high performance and advanced features of your new laptop.\n\nWe look forward to serving you again. Please visit our store soon for more exciting products and offers.\n\nBest regards,\n[Your Company Name]"
      }
    }
  }
}