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
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

Hello everyone.

Wow, 1,000 people. Just a few months ago, this would have seemed like a nightmare. (Pause) But now, looking out at all of you, it feels…right. Like coming home.

(Pause)

I’m Michael Landish, and for those of you who don’t know me – which, statistically speaking, is probably most of you – I was your senior class president this year. (Small chuckle) And yes, I’m aware that’s a sentence that usually precedes a joke about questionable leadership decisions. But honestly? Being your class president was an incredible honor. It wasn't always easy, especially with my…ahem…unique challenges. (Pause, smile) Dyslexia, for those playing along at home. It made things…interesting. Let's just say I've learned to appreciate the power of a good spell-checker.

(Pause)

But today isn’t about my presidency, or even about my dyslexia. Today is about us. About this incredible journey we’ve shared these past four years. Remember freshman year? The sheer terror of navigating the hallways, the awkwardness of trying to fit in, the excitement of discovering new friendships? (Pause) And then sophomore year, the slow dawning realization that high school wasn't just about surviving, but about thriving. The late-night study sessions, the triumphs and failures, the inside jokes that only we understand. (Pause) Junior year… Mrs. Martin’s English class. (Smile) I’ll never forget her passion, her ability to make even the most challenging texts come alive. She taught me more than just grammar and vocabulary; she taught me the power of words, the power of storytelling, the power of finding your voice. And that’s something I’ll carry with me always.

(Pause)

And now, senior year. It feels like just yesterday we were wide-eyed freshmen, and now… we're here. Standing on the precipice of something new, something exciting, something terrifying. But also, something incredibly hopeful. We’ve learned, we’ve grown, we’ve laughed, we’ve cried, and we’ve done it together.

(Pause)

I’m heading off to Los Caminos State University in the fall to study economics and English – a pretty ambitious combination, if I do say so myself. (Small chuckle) But I’m ready. Ready for the challenges, ready for the adventures, ready for whatever the future holds. And I know, deep down, that each and every one of you is ready too.

(Pause)

So, as we stand here, on the cusp of a new chapter, let’s remember this feeling. The feeling of camaraderie, of accomplishment, of shared memories. Let’s carry this with us, always. Because high school might be over, but our story…our story is just beginning. Thank you.

Model: gemini-1.5-flash-002
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95