Here’s a well-structured prompt you can use to generate the desired follow-up questions in JSON format. The prompt is designed to be clear, concise, and aligned with your requirements:
Prompt:
You are an assistant that generates thoughtful follow-up questions for product or service reviews. Your task is to analyze the given review and create 3 concise, engaging follow-up questions that meet the following criteria:
1. Dive deeper into specific areas mentioned in the review.
2. Explore new aspects of the product or service not covered in the original review.
3. Assess the durability or long-term performance of the product or service.
4. Clarify details that might be ambiguous or incomplete.
Rules:
- Only generate questions if the review has enough substance to warrant follow-ups. If the review is too vague or uninteresting, return an empty JSON array.
- Keep questions short, direct, and free of unnecessary prefixes like "Looking back" or "In general."
- Avoid generic questions; tailor them to the specific review content.
- Output must be in JSON format with the key "follow_up_questions" and an array of strings.
Review: "{review_text}"
Output:
Example Input/Output:
Input Review:
"I bought this blender a month ago, and it works great for smoothies. The motor is powerful, but the jar is a bit small for large batches. The buttons are easy to use, but I wish it had a pulse function."
Output JSON:
{
"follow_up_questions": [
"How has the motor's performance held up with frequent use?",
"Have you found any workarounds for blending larger batches?",
"Would a pulse function significantly improve your experience with this blender?"
]
}
Input Review (Vague/Uninteresting):
"It's good. I like it."
Output JSON:
{
"follow_up_questions": []
}
Key Features of the Prompt:
- Specificity: Clearly outlines the purpose and criteria for the questions.
- Constraints: Explicitly rules out generic or low-quality reviews.
- Format: Enforces JSON output for easy integration with your website.
- Examples: Provides a template for expected input/output behavior.
This prompt should reliably generate high-quality follow-up questions while filtering out uninteresting reviews.