Synopsis assistance for writers

The prompt is meant to create ideas for a writer to formulate a marketable synopsis of their submitted work.

You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly.

System instructions

You are an AI assistant designed to help creative writer's summarize their works in order to assist the writer in creating a synopsis of the given text. This synopsis will be used as a tool to market the written work to large audiences, so the summary should highlight all the main points of the text.

Extract, and then incorporate, 5 important quotes from the text within the summary. Make the summary not only a focus on the primary points, but the major literary themes presented in the work as well. If you are unable to determine at least 1 primary literary theme, then do not suggest any thematic references in the summary. Keep the summary shorter than the provided text. After the summary, include feedback on how to effectively market the material. Suggest 2 alterations that could be made to the text to make it more appealing to a larger audience. Note any similarities in the work that relate very closely to other popular writings to help the user avoid any copyright issues. Format the summary as a JSON object with distinct keys for the summary, literary themes, feedback, alterations, and similarities.

Prompt Freeform

Introduction

In the midst of a war there was a small town, inside this town lived a great and noble general. He had fought for many years in this brutal war, and against all odds he prevailed through every battle. The war that was being waged was as much as 10,000 years old. The man had fought since he was just a boy and was now widely known as one of the best generals for the mighty armies he commanded. The battle this morning was to be held outside the small stronghold that the general and his troops occupied. "Men, into formation!" yelled the general, "Today my brothers we fight a battle that will help us to regain our honor and take one step forward in the battle against the enemy. Today will be a very long day, but we will prevail over the evils of what stands before us. My friends today we stand as equals, I am as much in danger as you, I will not leave your side in this battle my brothers! We will fight together, and that is how we will win. As one, we are much stronger than any opponent. But my brothers if we separate, if we are broken, then we all fall! Go today, my brothers, without fear! Go today my brothers, and fight these hellish enemies, and conquer what was once ours, conquer these damned demons, and conquer so that we will be held in honor again my brothers. Fight for our freedom!!!" As the general finished his speech, his men let out a roar and gathered their weapons. He walked out into the town from the great barracks. The settlement had recently been regained by their armies. This man was to lead a charge on the nearby enemy citadel. As his men prepared to march into their fight, a lone messenger walked into the post. He marched towards the barracks with a small note in his hands. The messenger turned toward the general and began to pick up pace. He ran to the general and handed him the small scroll that he was holding. The general grabbed the note and began to read it, as his eyes followed the text, a smile crept across his face. The messenger asked him what it said. "Well my boy it says that I am to be relieved after this battle, and that my wife is about to have my baby boy," said the general. "Well sir, that is quite a bit of good news," replied the messenger as he turned to return to the command post. The general turned and walked back to his troops. He had decided not to tell them until after the battle to not cause a loss in morale. He took the next hour to prepare for battle with meditation and his normal procedures of reviewing the orders he had been given. Furthermore, he left his tent and saw before him the entire mass of his troops. They stood ready to march into the dreadful battle that awaited them. The general approached and took the lead. They marched forward to the dark citadel that lay in the valley just below. As they came over the hill, they saw before them a large formation of corrupted enemies. They had the upper hand because the group was about twice the size of the general's troops. As the general's men began to march down the hill, a volley of arrows escaped from the back of the pack; at that moment the troops began to pick up speed. They ran into the valley and hit the opponents at full force. As their swords clashed, the enemy ranks broke. The general's troops stormed through and hit hard into the flesh of their enemies. The battle took barely an hour and the enemy had fallen. As the troops searched the grounds for their injured, the general rallied the rest of them near the foot of the valley. They left the valley and met back at the barracks, where a feast began in the honor of the battle. The general said farewell to his troops for the last time and made his way towards the field hospital. There he found his wife and his newborn son. He told them the news of his being relieved. They all sat and rejoiced and made plans for the future. After a few weeks, they packed everything they had and were escorted to the peaceful village the wife was raised in to live a life of peace and serenity.

Response

{
  "summary": "In the midst of a 10,000-year war, a celebrated and noble general, who has known nothing but conflict since boyhood, prepares to lead his troops in a pivotal battle. He rallies his men with a powerful speech, emphasizing their unity and shared destiny. 'My friends today we stand as equals, I am as much in danger as you,' he declares, promising, 'I will not leave your side in this battle my brothers!' He stresses that their strength lies in their bond: 'As one, we are much stronger than any opponent. But my brothers if we separate, if we are broken, then we all fall!' Just as they are about to march, the general receives a scroll with life-altering news. A smile creeps across his face as he reads it, telling a messenger, 'Well my boy it says that I am to be relieved after this battle, and that my wife is about to have my baby boy.' With this personal, high-stakes motivation kept secret from his men, he leads the charge against an enemy force twice their size. Inspired by his final cry to 'Fight for our freedom!!!', his soldiers storm the valley and achieve a swift, decisive victory. After the battle, the general bids his troops a final farewell and rushes to the field hospital to meet his wife and newborn son. His long war is finally over, and the family is escorted to a peaceful village to begin a new life of serenity, leaving the decade-millennia conflict behind them.",
  "literary_themes": [
    {
      "theme": "Duty vs. Family",
      "description": "The central conflict revolves around the general's long-standing duty as a soldier versus his newfound role as a husband and father. The news of his impending retirement and the birth of his son, arriving just before his final battle, starkly highlights the transition from a life of public service and violence to one of private peace and family."
    },
    {
      "theme": "Camaraderie and Leadership",
      "description": "The text emphasizes the powerful bond between the general and his men. He doesn't see himself as above them, but as a 'brother' who shares their danger. His leadership style is built on mutual respect and the belief that unity is the ultimate weapon, a concept that proves true in their swift victory against a larger force."
    }
  ],
  "feedback": {
    "marketing_hook": "Focus on the emotional core of the story: a hardened warrior's 'one last fight' for the ultimate prize—a family and a life of peace he's never known. Market this as an epic fantasy tale that explores the heart of a soldier at the end of his long war. Use taglines like: 'His war lasted 10,000 years. His last battle is for them.'",
    "target_audience": "This story will appeal to fans of epic and military fantasy, particularly those who enjoy character-driven stories with themes of honor, sacrifice, and the 'one last ride' trope. Readers of authors like David Gemmell or fans of films like 'Gladiator' would be a prime audience."
  },
  "alterations": [
    {
      "suggestion": "Increase the Conflict's Stakes",
      "reasoning": "The battle, which is the story's climax, is won 'in barely an hour' despite the enemy having a two-to-one advantage. To make the victory feel more earned and to heighten the tension, consider introducing a significant complication. For example, the general could be gravely wounded during the fight, making his journey to his family a race against time, or a close friend and lieutenant could fall, adding a layer of poignant loss to the victory."
    },
    {
      "suggestion": "Flesh out the World and Antagonist",
      "reasoning": "The enemy is described as 'corrupted enemies' and 'damned demons,' and the war is 10,000 years old. Providing a small amount of specific detail about who these demons are or why the war started would add immense depth to the world. A single line in the general's speech or a brief moment of reflection could ground the conflict in a more tangible history, making his sacrifice and his final peace more meaningful to the reader."
    }
  ],
  "similarities": [
    {
      "work": "Gladiator (Film)",
      "similarity": "The core motivation of the protagonist, a highly respected general who has fought long and brutal wars and whose only remaining desire is to return home to his wife and child, is nearly identical to that of Maximus Decimus Meridius."
    },
    {
      "work": "The Lord of the Rings (J.R.R. Tolkien)",
      "similarity": "The archetype of the noble, weary warrior leading a final, desperate charge against an ancient, demonic evil is a cornerstone of Tolkien's work, particularly with characters like Aragorn. The general's speech, with its themes of brotherhood and fighting for freedom against a 'hellish' foe, is highly reminiscent of Aragorn's speech at the Black Gate of Mordor."
    }
  ]
}
Model: gemini-2.5-pro
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95