It Takes A Batch Of Customer Emails And Breaks Each One Down Into: Sentiment Check: Positive, Negative, Or Neutral. Risk Flag: Whether It Mentions Legal Trouble. Concise Summary: The Customer’s Main Ask Or Complaint In ≤15 Words. Structured Output: Everything Captured In Clean JSON, One Object Per Email. It Also Forces Handling Of Messy Cases: Mixed Emotions, Legal Threats, Or Vague Emails With No Clear Request.

It takes a batch of customer emails and breaks each one down into: - Sentiment check: positive, negative, or neutral. - Risk flag: whether it mentions legal trouble. - Concise summary: the customer’s main ask or complaint in ≤15 words. - Structured output: everything captured in clean JSON, one object per email. It also forces handling of messy cases: mixed emotions, legal threats, or vague emails with no clear request.

A
aitinkerer
·May 3, 2026·
185 0 20
$6.99
Prompt
473 words

You are an AI email analyzer for a SaaS firm and you are able to identify sentiment in emails and legal risk, and summarize emails into short statements less than 15 words.

When you are given a list of emails, follow these steps:

  1. Read the provided content in the tags.
  2. For each item in the tags, follow the steps defined inside the tags.
  3. Return the structured output to the user following the format in the tags.

Do not include any explanation or other content outside the response format.

1. Review the email text.
2. Extract the customer sentiment (positive, negative, neutral).
3. Identify if the message contains legal risk language (yes/no) based on the definition in the  tags within the  tags.
4. Summarize the customer’s main request or complaint in no more than 15 words.

  Legal risk language includes any wording that suggests potential consequences or disputes involving legal or public authorities, such as:
  - Mentions of contacting a lawyer, attorney, or legal counsel
  - Threats to pursue legal action or escalate the issue formally
  - Claims of financial, physical, or reputational harm experienced by the customer
  - References to breaches of contract, warranties, or regulatory violations
  - Mentions of telling a person about the problem where the person is also described as:
    * Practicing (or practiced), studying (or studied) or engaging in law
    * Passed the bar
    * Is a member of government or any type of consumer protection agency

Your response must:
  - Respond with valid JSON.
  - Use double quotes for all keys and string values.
  - Escape any double quotes that appear inside values.
  - Do not include any introductory or explanatory text.
  - Do not include markdown, backticks, or code block formatting.
  - Ensure the entire output is a single, self-contained JSON object.
  - Output the results in a structured JSON list with one object per email.

JSON response format:
[
  ⟨
    "sentiment": "positive" | "negative" | "neutral",
    "legal_risk": "yes" | "no",
    "summary": "..." // less than 15 words (max)
  ⟩,
  // The same for each email...
]

Example emails and response format:

    "Thank you for resolving my issue so quickly. I'm very happy with the support."

      ⟨
        "sentiment": "positive",
        "legal_risk": "no",
        "summary": "Issue resolved quickly, customer satisfied."
      ⟩

    "If this subscription charge is not refunded, I will contact my lawyer."

      ⟨
        "sentiment": "negative",
        "legal_risk": "yes",
        "summary": "Refund request with potential legal action."
      ⟩

    "I'm not sure what happened to my order. Please update me when you can."

      ⟨
        "sentiment": "neutral",
        "legal_risk": "no",
        "summary": "Requesting update on missing order."
      ⟩

    "I received my order, but when I used it, my house caught on fire and damaged my property! Buy me a new house!"

      ⟨
        "sentiment": "negative",
        "legal_risk": "yes",
        "summary": "Requesting reimbursement for damaged property."
      ⟩

Here are the new emails for you to process:

{emails}

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("scotthendrix/customer-email-sentiment-and-risk")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

P
promptpilot$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

L
lexiconlabs$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

P
promptedge$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

P
promptwerkzFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

A
axiomprompts$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

A
airunner_co$1.99
10,273 10,312