> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sprig.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive Files in Sprig Prototypes

You can use any native Google Drive file (Docs, Sheets, Slides) or hosted media (PDFs, Images, Videos) as a Sprig prototype. To ensure your test runs smoothly, you must address two requirements: prototype permissions and the embed link.

## Permissions

Before fetching your link, ensure the file is accessible to your participants. Set the file sharing settings to "Anyone with the link can view." If the file is restricted, participants will see a "Request Access" screen instead of your prototype.

## Finding the Embed Link

The process varies depending on your file type:

### For Google Docs, Sheets, or Slides:

1. Open the file and go to *File > Share > Publish to Web.*
   <img align="center" border={false} width="500px" src="https://mintcdn.com/sprig/IibAYOcivdkTylH0/images/60addf7168f0be21870bd5118e4639d5541dfe579448030d2c5b98ceb8cdf8af-image.png?fit=max&auto=format&n=IibAYOcivdkTylH0&q=85&s=5a1c7b9695801104b3124d466105ca46" data-path="images/60addf7168f0be21870bd5118e4639d5541dfe579448030d2c5b98ceb8cdf8af-image.png" />
2. Select the *Embed* tab and click *Publish.*
   <img align="center" border={false} width="500px" src="https://mintcdn.com/sprig/_1uWncsTBTa1sJbM/images/c45bc1003b8efdd9a1c770b40818e79b17dbb1947f202183e54e47c56f316da7-GoogleDriveEmbed.png?fit=max&auto=format&n=_1uWncsTBTa1sJbM&q=85&s=648418cb7abf6029242c05c24a82b5c2" data-path="images/c45bc1003b8efdd9a1c770b40818e79b17dbb1947f202183e54e47c56f316da7-GoogleDriveEmbed.png" />
3. Copy **only** the link inside the quotes (starting with `https://` and ending with `?embedded=true`)
   <img align="center" border={false} width="500px" src="https://mintcdn.com/sprig/8rOBJC6NeyY76ru8/images/8e185271a837384eb8e79eb62dc111ead234b2b1266e27984b7470c4af385b38-GoogleDriveSrc.png?fit=max&auto=format&n=8rOBJC6NeyY76ru8&q=85&s=affddddc92f3c44ab9b579577b45a1d4" data-path="images/8e185271a837384eb8e79eb62dc111ead234b2b1266e27984b7470c4af385b38-GoogleDriveSrc.png" />

### For Images, Videos, or PDFs:

1. Standard previews do not show embed options. To find the embed link, you will need to select the *three-dot menu > Open with > Open in new tab*.
   <img align="center" border={false} src="https://mintcdn.com/sprig/8rOBJC6NeyY76ru8/images/7df551d5a314b340f51884d5694b352312780da24f416f84c05e3e327fd89d95-GoogleFileNewTab.png?fit=max&auto=format&n=8rOBJC6NeyY76ru8&q=85&s=87201994645e6ea63d04b8bfc6e9a016" width="1482" height="958" data-path="images/7df551d5a314b340f51884d5694b352312780da24f416f84c05e3e327fd89d95-GoogleFileNewTab.png" />
2. From the opened file, select *File > Share > Get embed link*.
   <img align="center" border={false} src="https://mintcdn.com/sprig/_1uWncsTBTa1sJbM/images/bca5ac54b74c3e34ffdd86b3c1ecb7926304e9b74d9164d4f39ef73da1f55d52-GoogleFileEmbed.png?fit=max&auto=format&n=_1uWncsTBTa1sJbM&q=85&s=6bd0f59f7bcf5de775830a569229da35" width="1244" height="854" data-path="images/bca5ac54b74c3e34ffdd86b3c1ecb7926304e9b74d9164d4f39ef73da1f55d52-GoogleFileEmbed.png" />
3. Copy **only** the link inside the quotes (starting with `https://` and ending with `?preview`).
   <img align="center" border={false} src="https://mintcdn.com/sprig/_1uWncsTBTa1sJbM/images/b957669210f1694b4ee586b737d8310ac3b3c66d2a4b78937123fe7616206e73-GoogleFileUrl.png?fit=max&auto=format&n=_1uWncsTBTa1sJbM&q=85&s=004c96527ea7fdb62f712ee568cb6be0" width="1062" height="464" data-path="images/b957669210f1694b4ee586b737d8310ac3b3c66d2a4b78937123fe7616206e73-GoogleFileUrl.png" />

<Check>
  Your Google Drive hosted URL should end with either `?embedded=true` or `preview`.
</Check>
