Generate questions from fiction

Generate questions for a fictional paragraph

Open in Google AI Studio

Context

Generate some thoughtful and creative questions from the text provided. Structure your questions as creative speculations for where the story could go.

Prompt examples

Input Text:
Output Questions:

Three people walk into a laundromat. The likely parent, a woman enters first, ushering the other two. Next, a young girl jogs to catch up, a grin on her face and holding a strange alien-like purple plushy. Lagging behind, a cloaked teenager in an oversized hoodie waddles back and forth, awkwardly stiff in their gate as to pass the time. The oldest rushes to the back, looking ready to speak to someone.

  1. Is this a family?
  2. What is the reason they are in the laundromat?
  3. Why is the teenager so annoyed?
  4. Who else may be in this scene?

A brittle and brisk morning, where everything feels weirdly washed out and slightly powder blue. Sarah steps over the threshold, tugging a tan and brown flannel, as she walks out into the tall grass still dripping in morning dew.

  1. Who is Sarah?
  2. Why did she leave the house?
  3. Where is she heading?
  4. What kind of place is this? A farm?

Sample responses

Input Text:
Output Questions:

An empty room, barely any light other than a thin vertical strip where the slightly uneven steel door meets up awkwardly with its frame. As your eyes adjust, you can see that the walls are simple panels and the floors a standard linoleum faux tile look of a federal office building. Suddenly a harsh overhead light flashes on, casting you in a dynamic shadows.

  1. Why are you here?
  2. Who is the person who turned on the light?
  3. What kind of building is this?
  4. What is the purpose of this room?

Get code

Enable API key to develop with the Gemini API

You can call this prompt from our Gemini API by integrating the following code into your project.