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.

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]"
      }
    }
  }
}
When Laravel/PHP E-commerce App Meets AI

When Laravel/PHP E-commerce App Meets AI

Jan 1, 2024

Hey fellow Laravel enthusiasts! In the ever-evolving landscape of e-commerce, integrating AI into your Laravel applications is not just a luxury, it’s a necessity. With SharpAPI’s Laravel package, it’s now easier than ever. In this blog, I’ll guide you through 10 transformative use cases for enhancing your Laravel-based e-commerce applications using SharpAPI.

SharpAPI Introduction Video

SharpAPI Introduction Video

Feb 2, 2024

SharpAPI is a powerful AI-powered API, which provides a range of workflow automation endpoints to help improve efficiency across various industries. It has features for E-commerce, Content & Marketing Automation, SEO, HR Tech, and Travel & Hospitality industries.

Leveraging AI for Enhanced Online Engagement

Leveraging AI for Enhanced Online Engagement

Jul 18, 2024

Let’s explore how AI can be leveraged to build scalable solutions for online engagement across various industries seeking to enhance efficiency and productivity through AI-driven workflow automation.