# Using Airtable for Apps

## **Usage Tips & Limitations**

* Deplyr cannot create an Airtable base for you, you must provide a base ID in your prompt
* Deplyr cannot create tables or columns/fields in Airtable
* Be specific about your base's schema when creating your app, be sure to specify the base ID, tables, fields, and field types that are relevant for your app

***

## Example - Lead Capture Form

Let's build a lead capture form using Deplyr and Airtable 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 Airtable: on the Integrations tab in Deplyr click Connect.
2. Create an Airtable Base and Table (name it "Leads"), be sure to copy the base ID.
3. Create the following fields in the Table:
   1. Name (Primary Field, Single Line Text)
   2. Email (Email)
   3. Message (Long Text)
   4. How Hear (Long Text)
   5. Accepted Terms (Checkbox)

Try the following prompt

{% code overflow="wrap" %}

```
Use my airtable base to store responses.
Base ID: <base ID>
Table Name: Leads

Airtable table info: Table is named "Leads". Fields:
- Name (Primary Field, Single Line Text)
- Email (Email)
- Message (Long Text)
- How Hear (Long Text)
- Accepted Terms (Checkbox)

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 %}

## Troubleshooting

{% embed url="<https://youtu.be/fuPYApC5pAc>" %}


---

# 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-airtable-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.
