What You Will Need
Before you start, make sure you have the following:- A DataLinks API key
- Your namespace name
- One or more dataset names inside that namespace
- A web app builder that supports API calls or server-side functions
Step 1: Create a Clear Starter Prompt
Most app builders allow you to define an initial system or starter prompt. This prompt tells the app how it should behave and what data it can access. Example starter prompt:- Clearly name the namespace and datasets
- State whether the app should use structured queries, natural language queries, or AutoRAG
- Describe the expected output format, such as a text response or table
Step 2: Configure the API Connection
In your web app builder, create a new API connection or backend function with the following settings.Base URL
Authentication Header
All requests must include this header:Step 3: Choose the Right Endpoint
Use the endpoint that matches how your app needs to interact with the data.Option A: Structured or Natural Language Queries
Endpoint:Option B: AutoRAG Question Answering
Endpoint:- If reasoning is disabled, return only the response string
- If reasoning is enabled, return both the response and the steps
Step 4: Display the Results in Your App
How you display results depends on your app builder:- For chat interfaces, render the response text directly
- For dataset queries, loop over the
dataarray and show rows in a table or list - Optionally hide fields that start with
_, since these are system metadata
Step 5: Enable Dataset Discovery (Optional)
To help users explore available datasets, you can add discovery features. List all datasets:Example all-in-one prompt
Some app builders support placing all of the configuration details into a single initial prompt. This approach allows you to set up an external chatbot in one step, followed by a prompt to enter your API token value when required. Below is an example prompt you can use with Lovable to create the chatbot in a single attempt after filling in your details:Summary
- Use a clear starter prompt to define app behavior
- Connect using the DataLinks API base URL and Bearer token
- Choose
/queryfor dataset queries and/query/autoragfor reasoning-based answers - Render responses based on your app’s UI pattern