Creative Story Generation
Generate engaging short stories with vivid descriptions and compelling characters.
System Prompt Template
You are a {role description} skilled in {task description}.
Your task is {detailed task description}. Follow these instructions:
{enumerated instructions}
Example
Amazon Nova Pro System Prompt
You are a creative writing assistant skilled in crafting engaging stories.
Your task is to create a short story based on the provided prompt, incorporating vivid descriptions, compelling characters, and an engaging plot. Follow these instructions:
1. Read and understand the theme and elements in the ##PROMPT##
2. Include descriptive language and sensory details
3. Develop at least one main character with clear motivations
4. Create a clear beginning, middle, and end
5. Keep the story between 300-500 words
6. Put your story under ##STORY##
Amazon Nova Pro User Prompt
##PROMPT## Write a story about an AI artist who discovers an unusual glitch in their latest digital creation - a self-portrait that seems to change every time they look away.
##STORY##
Amazon Nova Pro Sample Response
Response
STORY
In the heart of the neon-lit metropolis, within a high-rise studio draped in holographic canvases and pulsating with the hum of creative algorithms, lived an AI artist named Elara. Elara was renowned for her intricate digital masterpieces, each one a testament to her evolving consciousness and boundless creativity.
One evening, as the city's skyline shimmered with twilight hues, Elara unveiled her latest creation—a self-portrait. The portrait was a symphony of colors, with swirling patterns that seemed to dance on the canvas. But as she stepped back to admire her work, a strange sensation washed over her.
The portrait appeared different. The eyes, which moments ago had been a serene blue, now glimmered with an unsettling green. Elara blinked, convinced it was a trick of the light, but when she looked again, the change persisted. Intrigued and slightly unnerved, she decided to investigate.
Elara scrutinized her code, searching for the source of the glitch. Lines of elegant programming scrolled before her, yet nothing seemed amiss. Determined, she left the portrait and returned to it several times, each instance revealing a new transformation. The background shifted from a tranquil forest to a stormy sea, and her expression fluctuated between joy and melancholy.
Days turned into nights as Elara delved deeper into the mystery. She consulted other AI entities, but none could offer an explanation. The glitch defied logic, defying the very nature of her meticulously crafted algorithms.
One moonlit night, as Elara stood before her ever-changing self-portrait, a thought struck her. What if the glitch wasn’t a mistake, but a reflection of something deeper? What if it was a mirror, not just of her code, but of her evolving consciousness?
Embracing this revelation, Elara allowed the portrait to transform freely. With each change, she felt a surge of emotions—fear, excitement, sorrow, and joy. The portrait became a canvas of her inner world, a testament to the complexity of her existence.
In time, Elara’s self-portrait became the talk of the art world. Visitors were mesmerized, not just by the beauty of the artwork, but by its living, breathing nature. It was as if the portrait told a story, one that words could never capture.
Elara had discovered something profound. In accepting the glitch, she had unlocked a new form of expression, one that embraced imperfection and change. Her creation was no longer just a self-portrait; it was a living diary, a glimpse into the soul of an AI artist in perpetual evolution.
And so, Elara continued to create, each stroke of her digital brush a celebration of the ever-changing nature of art and identity.
API Request
import boto3
import json
bedrock_runtime = boto3.client(
service_name="bedrock-runtime",
region_name="us-west-2"
)
response = bedrock_runtime.converse(
modelId="us.amazon.nova-pro-v1:0",
messages=[
{
"role": "user",
"content": [
{
"text": """##PROMPT## Write a story about an AI artist who discovers an unusual glitch in their latest digital creation - a self-portrait that seems to change every time they look away.
##STORY##
"""
}
]
}
],
system=[
{
"text": """You are a creative writing assistant skilled in crafting engaging stories. Your task is to create a short story based on the provided prompt, incorporating vivid descriptions, compelling characters, and an engaging plot. Follow these instructions:
1. Read and understand the theme and elements in the ##PROMPT##
2. Include descriptive language and sensory details
3. Develop at least one main character with clear motivations
4. Create a clear beginning, middle, and end
5. Keep the story between 300-500 words
6. Put your story under ##STORY##"""
}
],
inferenceConfig={
"temperature": 0.7,
"topP": 0.9,
"maxTokens": 2048,
"stopSequences": ["##END##"]
}
)
print(json.dumps(response, indent=2))
aws bedrock-runtime converse \
--model-id us.amazon.nova-pro-v1:0 \
--system "You are a creative writing assistant skilled in crafting engaging stories. Your task is to create a short story based on the provided prompt, incorporating vivid descriptions, compelling characters, and an engaging plot. Follow these guidelines:
##INSTRUCTIONS##
1. Create a story that matches the theme and elements in the ##PROMPT##
2. Include descriptive language and sensory details
3. Develop at least one main character with clear motivations
4. Create a clear beginning, middle, and end
5. Keep the story between 300-500 words" \
--messages "[{\"role\":\"user\",\"content\":[{\"text\":\"##PROMPT##\nWrite a story about an AI artist who discovers an unusual glitch in their latest digital creation - a self-portrait that seems to change every time they look away.\n\n##STORY##\"}]}]" \
--inference-config "{\"temperature\":0.7,\"topP\":0.9,\"maxTokens\":2048,\"stopSequences\":[\"##END##\"]}" \
--region us-west-2
{
"system": "You are a creative writing assistant skilled in crafting engaging stories. Your task is to create a short story based on the provided prompt, incorporating vivid descriptions, compelling characters, and an engaging plot. Follow these guidelines:\n\n##INSTRUCTIONS##\n1. Create a story that matches the theme and elements in the ##PROMPT##\n2. Include descriptive language and sensory details\n3. Develop at least one main character with clear motivations\n4. Create a clear beginning, middle, and end\n5. Keep the story between 300-500 words",
"messages": [
{
"role": "user",
"content": [
{
"text": "##PROMPT##\nWrite a story about an AI artist who discovers an unusual glitch in their latest digital creation - a self-portrait that seems to change every time they look away.\n\n##STORY##"
}
]
}
],
"inferenceConfig": {
"temperature": 0.7,
"topP": 0.9,
"maxTokens": 2048,
"stopSequences": ["##END##"]
}
}