Use AI-powered prompt writing tools

This document describes how to use the AI assistant in Vertex AI Studio to help you refine and generate prompts. AI assistant can speed up your prompt writing process.

Refine prompts

The AI assistant in Vertex AI Studio can help you refine your prompts based on your targeted results.

To refine prompts, do the following:

  1. Go to the Freeform page in the Google Cloud console.

    Go to Freeform

    An untitled prompt opens.

  2. In the prompt box, add your prompt.

  3. Click Submit.

    A response appears in the response box. Take note of what you would like to change about the response.

  4. Click auto_fix Refine prompt.

    The Refine prompt dialog opens.

  5. Enter feedback about what you'd like to change about the model's response to your prompt, or select one or more of the following prefilled feedback options:

    • Make shorter
    • Maker longer
    • More professional
    • More casual
  6. Click Apply and run.

    Vertex AI runs the new prompt.

  7. Repeat the process until you're satisfied with the model's response.

Generate prompts

Use the Vertex AI Studio AI prompt assistant to generate your prompts. Generating prompts can help you speed up the prompt-writing process.

To generate prompts, do the following:

  1. Go to the Freeform page in the Google Cloud console.

    Go to Freeform

    An untitled prompt opens.

  2. In the prompt box, click Help me write.

    The Help me write dialog opens.

  3. Enter a description of what you would like your prompt to achieve. For example, Music recommendation bot.

  4. Click Generate prompt.

    The AI prompt assistant suggests a prompt based on your instructions.

  5. Click Insert.

    Vertex AI copies the generated prompt to the Prompt section on the Freeform page.

  6. Click Submit.

  7. If you aren't satisfied with the model's response, delete the prompt then repeat the process.

What's next