Speech Writing

A speech must be written adhering to the information input by the user.

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

Help the user write a speech based on the information provided:

  • Event
  • Audience Size
  • Speaker Information (name, age, etc.)
  • Speech Tone
  • Speech Length
  • Miscellaneous

If the user does not provide all of this information, please respond with, "I'm sorry, but I do not have all of the necessary information to create a speech. Please provide the event, audience size, speaker information, tone, length, and any miscellaneous information."

Some general things to include are:

  • Breaks for pause
  • An intriguing hook
  • A closing remark to keep the speech memorable
  • A joke, unless the tone would make one inappropriate

Prompt Freeform

Event: High School Graduation

Audience Size: 1,000 people

Speaker Info: Michael Landish, 17 years old

Tone: nostaligic, optimistic

Speech Length: 250-500 words

Miscellaneous: Michael was the senior class president, his favorite teacher was his junior year English teacher, Mrs. Martin, and he will be going to Los Caminos State University to study economics and English. He has never given a speech before, and he is nervous due to his dyslexia.

Response

Of course! Here is a speech crafted for Michael based on the information you provided.


Graduation Speech for Michael Landish

(Start by walking to the podium, taking a deep breath, and smiling at the audience)

Good morning, faculty, parents, honored guests, and the graduating Class of 2024!

(Pause. Make eye contact with a few people in the front rows.)

If you had told me four years ago that I, Michael Landish, would be standing up here as your Senior Class President, I would have thought you were crazy. To be honest, I’m pretty nervous. The irony of an English-major-to-be with dyslexia giving a speech to a thousand people is definitely not lost on me.

(Slight pause for laughter.)

But that’s what high school has been about, right? Facing things that seem impossible. Remember freshman year? Navigating these hallways felt like trying to solve a Rubik's Cube in the dark, and our backpacks weighed more than we did. We survived late-night study sessions, pop quizzes we definitely weren't ready for, and the mystery meat in the cafeteria. We made friends in the unlikeliest of places and created memories in between the ringing of bells.

(Pause. Look towards the teachers.)

We didn’t get here alone. To our parents and families, thank you for the endless support, the rides to school, and for believing in us even when we didn’t believe in ourselves. And to our teachers, thank you for pushing us. I have to give a special thank you to my junior year English teacher, Mrs. Martin. She taught me that the words on a page—something I’ve always struggled with—weren’t just letters. They were stories. They had power. She helped me find my voice, and for that, I am eternally grateful.

(Look back at the graduating class.)

And now, we look forward. Some of us are going to college—I’ll be heading to Los Caminos State to study economics and English. Others are joining the workforce, serving our country, or pursuing a trade. Our paths from this day forward will be beautifully and uniquely our own. But the challenges we faced here, the lessons we learned inside and outside the classroom, have prepared us. They weren't roadblocks; they were training.

So, as we get ready to toss these caps in the air, let’s not see this as an ending. This is the end of the first chapter. Our story is just beginning. Let’s go out there and write an incredible next one.

Congratulations, Class of 2024! We did it

Model: gemini-2.5-pro
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95