Save and share prompts

This document describes how to save and share prompts in Vertex AI Studio. Sharing prompts lets you collaborate with team members, ensure consistency, and build a library of effective prompts for various tasks.

Sharing works as follows:

  • By default, all Vertex AI users (roles/aiplatform.user) have full access to all saved prompts in the project. There is no need to share saved prompts with other users in the project unless organizational or project restrictions have been placed on them or specific resources like datasets.

  • Vertex AI administrators (roles/aiplatform.admin) can share any prompt and Vertex AI users can share the prompts that they created.

  • Only Vertex AI users can share prompts. If an outside user is invited to collaborate on a prompt, they cannot share the prompt with another user.

  • Prompt sharing is per prompt, not per project. Invited users can access only the prompts that they have been invited to collaborate on. They don't have access to the other prompts in the project.

Save a prompt

To save a prompt for later use or sharing:

  1. Go to Vertex AI Studio.

    Go to Vertex AI Studio

  2. Write a new prompt or open an existing prompt and then click send Submit.

  3. Click the Save button.

Share a saved prompt

To share a saved prompt:

  1. In Vertex AI Studio, go to either Prompt management or Chat playground

    Go to Prompt management

    Go to Chat playground

  2. Open a saved prompt and click the Share button.

    If prompt sharing was enabled successfully, you will see a window similar to the following:

    Prompt sharing window

    When a prompt is shared, the recipient(s) of the shared prompt receive an email notification similar to the following:

    Prompt sharing email

Stop sharing a prompt

To revoke access to a prompt:

  1. Open a saved prompt and click the Share button.

  2. Next to the principals, select Remove and then click Save.

    Prompt sharing stop sharing

    Note that deleting a saved prompt automatically removes access for anyone it was shared with.

What's Next