# Using Google Sheets for Apps

## **Usage Tips & Limitations**

* Your Google Sheet ID can be found in the URL bar of your browser at the noted section <https://docs.google.com/spreadsheets/d/_**\\><GOOGLE SHEET ID>\*\*\_/edit?gid=0#gid=0
* Deplyr cannot create a Sheet or tabs for you, you must provide a sheet ID in your prompt
* It's recommended to have your sheet structure (e.g. headings, etc.) created beforehand
* Be specific about your sheet structure for the best success. **You should copy/paste your sheet headers and a few rows into Deplyr.**

***

## Example - Lead Capture Form

Let's build a lead capture form using Deplyr and Google Sheets with some custom logic.

This example shows how Deplyr’s AI chat can generate a fully functional app from a single prompt. While the form is intentionally simple, making single-shot generation expected, it still highlights the speed and ease of building with Deplyr.

**Prerequisites:**

1. Connect Google Sheets: on the Integrations tab in Deplyr click Connect.
2. Create a Google Sheet and grab a sheet ID.

Try the following prompt

{% code overflow="wrap" %}

```
Use my google sheet to store responses. my sheet ID is <sheet ID>
Create a form that collects the following lead information:
- Name
- Email
- Message
If the email domain is one of the following be sure to show another field that says "How did you hear about us?"
Have a checkbox that links to our privacy policy and terms of service with the text "By checking this box you accept our Privacy Policy" and "Terms of Service" and the submit button should be disabled until that checkbox is checked.
```

{% endcode %}

## Prompting Tips

* If you're missing your Sheet ID in your Deplyr app you can use the prompt below to add your Sheet ID.

> Add my Google Sheet ID \<sheet ID>

* If you need to tell Deplyr what your Google Sheet headers are, you can simply copy/paste the header row

> Here are my Google Sheet headers. Make any necessary adjustments: \<paste headers>

## Troubleshooting

{% embed url="<https://youtu.be/81I5DBK5LYo>" %}
Help Fix Google Sheets App
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deplyr.gitbook.io/docs/integrations/using-google-sheets-for-apps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
