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

# AI

> Learn how to use the built-in AI in Buildy

### What is the built-in AI integration?

Buildy comes with a powerful built-in AI integration that allows you to easily add AI capabilities to your app without managing API keys or handling complex AI service integrations yourself.

### How does it work?

When you ask Buildy to integrate AI functionality (like "analyze user feedback sentiment" or "generate product descriptions"), Buildy automatically uses its built-in AI integration by default. This integration:

* **Uses OpenAI GPT-4.1** under the hood for high-quality responses
* **Handles API management** - no need for your own OpenAI API key
* **Supports both text generation and structured data** - can return plain text or JSON objects with specific schemas
* **Counts as integration requests** based on your Buildy plan

### When to use the built-in AI integration?

The built-in AI integration is perfect for most common AI use cases:

* **Text analysis**: Sentiment analysis, content categorization, language detection
* **Content generation**: Product descriptions, email templates, social media posts
* **Data extraction**: Extracting structured information from unstructured text
* **Conversational features**: Chatbots, Q\&A systems, customer support
* **Content moderation**: Detecting inappropriate content or spam

### Example use cases:

##### **Sentiment Analysis**

"When a user submits a review, analyze the sentiment and store it as positive/negative/neutral"

##### **Content Generation**

"Generate a product description based on the product name and features"

##### **Data Extraction**

"Extract contact information (name, email, phone) from a business card text"

##### **Smart Categorization**

"Automatically categorize support tickets based on their content"

### Built-in vs Custom Backend Functions

| Built-in AI Integration          | Custom Backend Functions                |
| -------------------------------- | --------------------------------------- |
| ✅ No API key required            | ❌ Requires your own API key             |
| ✅ Counts as integration requests | ❌ Costs based on your API usage         |
| ✅ Quick setup, works immediately | ⏱️ More setup required                  |
| ✅ Good for standard AI tasks     | ✅ Full control over AI models/providers |
| ❌ Limited customization          | ✅ Advanced customization options        |

### When to use custom backend functions instead?

Consider creating a custom backend function for AI when you need:

* **Specific AI models** (Claude, Gemini, custom models)
* **Advanced prompt engineering** with complex chains
* **Multiple AI provider integrations** in one function
* **Custom rate limiting or caching**
* **Integration with specialized AI services** (speech-to-text, image recognition)

### How to get started?

Simply describe what you want in the Buildy chat:

**Example**: "When users upload a document, extract the key information and summarize it in 3 bullet points"

Buildy will automatically:

1. Set up the AI integration
2. Create the necessary UI components
3. Handle the data flow between your app and the AI
4. Store or display the results as needed

### Pricing

AI integration requests are included in your Buildy plan. For detailed pricing information and request limits, please visit our [Pricing page](https://superdev.build/pricing).
