Try to generate essay form the given Answers and coummity guidlines

I try to build an application where user answer some question and based on those answers our application build a beautiful essay

Q: what should be my input and output for this system as you can see we have Question and users Answers and final Output that we want AI should generate “which is currently written by our content writer” Question, Answers and final Output “Essay” is huge and API has token Limit


These essays are unique in every way because answers are given by the human
“as OpenAI says that the output must be very specific in a structure that can’t be repurposed.”
so our application falls into these examples such as a cover letter, a recipe that has a specific structure. same way our “Essay” has specific structure

Q: So am I think right or not this application passes OpenAI guidelines or not and yes this tool is not for general purpose only our team internally use this for fasten the process of writing and human is always involved into a loop

Please answer your opinion matters a lot

sorry to not mention “huge mean” 750 - 1000 words kinda typical essay it should be based on the user’s answers but better I hope I make my point clear

if you want OpenAI to do your homework you are best to look at it first like any other essay. How did your teachers teach you to group and format the essay? They also likely taught you how quotes work and the references.
What you want is to get your sources, get your quotes and then have OpenAI derive an essay. Then you’ll want to teach it to format it in Chicago or APA or whatever. I would suggest DaVinci and the semantic stuff, likely your audience (teachers) want a particular style of essay. -OR look at it this way, you need to ensure you generate an essay using the language that will likely and probably provide you the best score -AND won’t get picked up by over-priced-google-searching-anti-plagiarism software - uploading example essays that you know got As and example essays that you know are Fs will refine your final output.
Tell it to avoid the language in F graded essays and score higher for language used in A graded essays.

2 Likes

well thanks for your answer but my question is:
let say I ask you 3 question
Q1: What makes you want to pursue this specialization?
Q2: Elaborate your career plans
Q3: Describe the projects that you undertook during your undergraduate tenure.

ok and you answer these question thoroughly but it is possible what you answered is not so good in terms of “English or grammar” and your word count is also less let say. so I want AI to do some magic
hope this make sense

1 Like

It’s the exact same thing. What you are referencing is a user-interface.
The answers you collect will then frame the data you are uploading via the API for processing.
If your questions are career oriented questions and you need to produce a career story, then it’s a matter of playing around with the sandbox and getting the wording right with where you’d insert the answers to your questions.
If you want an essay, then it needs to understand the format of the essay you want as an output.
If you want a story, then it needs to understand how you want the story constructed.

2 Likes

copy this codein your GPT Instruction section, but add one line in the code to ask your user first to send any relevent data about the essay(criteria structure word count topic, research question, essay type and , anything else in one file :slight_smile:

def write_essay_with_dynamic_analysis():
“”"
Writes an essay paragraph by paragraph, dynamically analyzing the file for each paragraph’s requirements.

Returns:
None
"""
essay = ""
continue_writing = True
paragraph_number = 1

# Analyze the file to understand the topic, question, title, position, and thesis
topic, question, title, position, thesis = analyze_file_for_essay_basics()

while continue_writing:
    # Gather necessary information for the current paragraph
    paragraph_info = gather_paragraph_info(paragraph_number)

    # Write the paragraph based on the gathered information
    paragraph = write_paragraph(paragraph_info, essay)
    
    # Append the paragraph to the essay
    essay += paragraph + "\n\n"
    
    # Output the current paragraph for approval
    print("Current paragraph:\n", paragraph)

    # Ask for user approval to proceed or end
    user_input = input("Is this paragraph okay? Type 'yes' to continue, or type anything else to end: ").strip().lower()
    
    if user_input == "yes":
        paragraph_number += 1
    else:
        continue_writing = False

# Output the final essay
print("Final essay:\n", essay)

def analyze_file_for_essay_basics():
“”"
Analyzes the file to understand the basic components of the essay.

Returns:
tuple: A tuple containing topic, question, title, position, and thesis statement.
"""
# Implement logic to analyze the file
topic = "Sample Topic"
question = "Sample Question"
title = "Sample Title"
position = "Sample Position"
thesis = "Sample Thesis Statement"
return topic, question, title, position, thesis

def gather_paragraph_info(paragraph_number):
“”"
Gathers information necessary for writing the current paragraph.

Args:
paragraph_number (int): The number of the current paragraph.

Returns:
dict: Information about the current paragraph.
"""
# Implement logic to gather paragraph-specific information
# Example:
return {
    "structure": "Sample Structure",
    "conditions": "Sample Conditions",
    "purpose": "Sample Purpose",
    "word_count": 150  # Example value
}

def write_paragraph(paragraph_info, current_essay):
“”"
Writes a paragraph for the essay based on the gathered information.

Args:
paragraph_info (dict): Information about the paragraph.
current_essay (str): The current state of the essay.

Returns:
str: The written paragraph.
"""
# Implement the logic to write a paragraph based on the gathered information
return "Sample paragraph based on paragraph_info."

Example usage

write_essay_with_dynamic_analysis()