Home » Building a SaaS Product » AI Features

How to Add AI Features to Your SaaS Product

Adding AI features to your SaaS gives customers capabilities that would be impossible to build with traditional code alone. The platform provides built-in access to GPT, Claude, and other AI models, so your custom app can generate content, analyze data, answer questions, make predictions, and automate decisions without you managing any AI infrastructure.

AI Capabilities You Can Add

The platform provides access to multiple AI providers through simple function calls. Your custom app code can call these functions directly to add AI-powered features:

How AI Calls Work in Your Code

Your custom app functions can call AI models the same way they call the database. The platform provides functions for each AI provider. You pass a system prompt (instructions for the AI), a user message (the actual request), and optionally a model selection. The function returns the AI's response as a string.

For example, a helpdesk SaaS might add an AI feature that suggests a response to a support ticket:

The AI call costs credits based on the model used. GPT-4.1-mini at 2-4 credits per call is good enough for most text generation tasks. Claude Sonnet at 5-8 credits handles complex reasoning. Choose the cheapest model that produces acceptable results for each feature.

AI in the Admin Panel

The admin panel has built-in support for AI assistance in forms. Any field in your database pages can have an AI suggestion button that generates content based on a pre-configured prompt. For example, a product description field can have a button that generates a description from the product name and features.

You can also add full AI chat interfaces to your admin pages using the chatForm field type. This creates a conversational interface where your customers can chat with an AI that has access to their data. See How to Add AI-Built Pages to Your Portal.

Knowledge Base and RAG

If your SaaS needs AI that understands customer-specific information, use the embeddings and RAG (Retrieval Augmented Generation) system. Your customers upload documents, paste text, or point to their website. The platform chunks the content, creates vector embeddings at 3 credits per chunk, and stores them for retrieval.

When the AI needs to answer a question, it searches the embeddings for relevant content, includes that content in the AI prompt, and generates an answer grounded in the customer's actual data. This dramatically reduces hallucinations and ensures answers are specific to each customer's business. See What Is RAG and How Does It Work for the full explanation.

Choosing the Right Model

The platform supports multiple AI models at different price and capability levels:

For a deeper comparison, see Understanding AI Models: GPT, Claude, and How to Choose.

Add AI features to your SaaS with built-in access to GPT, Claude, and more. No AI infrastructure to manage.

Get Started Free