App Builders · Analysis Layer
Use Belo AI as the analysis layer in Lovable, Replit, v0 and Bolt
During build time, connect Belo's MCP server (https://belo.ai/mcp) so your agent can explore data, run SQL, R, or Python, and save a verified Asset. In the published app, call https://belo.ai/v1 through Lovable's connector gateway or server-side secrets so visitors see live rows, fresh citations, and a link to the methodology without exposing credentials in the browser.
1. Lovable custom connector (API key — under 5 minutes)
Lovable locks a custom connector's base URL and authentication method once any connection exists. Use Belo AI (API key) for scoped API keys and keep Belo AI free for OAuth 2.0.
- Connector name
- Belo AI (API key)
- Base URL
- https://belo.ai
- Authentication
- Bearer token using a Belo API key created with the
Lovable / App builderpreset (api:readby default, restricted to named Assets, with expiry; opt intoapi:runonly when visitors trigger parameterized runs) - Test request
- GET /v1/me
- Data setting
- Shared team data for team dashboards, or Personal data for private workspace apps
- Knowledge file
- Upload /developers/belo-v1-api.md (3,606 chars, under Lovable's 50,000-char limit)
2. Lovable custom connector (OAuth 2.0 on /v1)
Create a workspace OAuth client in Belo Settings (POST /api/user/oauth-clients) with Lovable's connector callback URL, scopes api:read (and optionally api:run), and PKCE S256. Tokens issued for https://belo.ai/v1 are strictly audience-separated from https://belo.ai/mcp.
- Connector name
- Belo AI
- Authorization URL
- https://belo.ai/oauth/authorize
- Token URL
- https://belo.ai/oauth/token
- Resource metadata
- https://belo.ai/.well-known/oauth-protected-resource/v1
3. Copyable builder prompt
Paste this prompt alongside your feature request so the generated app renders citations, debounces parameterized runs, and handles revoked credentials cleanly.
Use the connected Belo AI workspace connector (or a server-side route reading `BELO_API_KEY` from server secrets; never expose keys or tokens in browser code).
List available Assets with `GET /v1/assets`, inspect the target Asset contract with `GET /v1/assets/{id}`, and bind the app to that stable Asset ID.
Fetch saved rows with `GET /v1/assets/{assetId}/data/{tableName}?format=json&meta=1`, sending `If-None-Match` when cached.
When a visitor changes filter parameters, debounce user input before calling `POST /v1/assets/{assetId}/calls` with `Prefer: wait=20` and an `Idempotency-Key`, then read outputs with `meta=1`.
Always render a concise attribution line under tables and charts showing the returned `sources` labels, `dataAsOf` timestamp, and a link to `methodologyUrl`.
Use the app's own tables and charts for `meta=1` rows, or use `<script async src="https://belo.ai/embed.js"></script><belo-embed src="..."></belo-embed>` when the user wants a public or explicitly shared Belo chart frame.
Handle `401` by displaying a clear reconnect notice and handle `429` with a calm retry state.4. Replit, v0 and Bolt
- Replit: Add Belo AI for Replit Agent (build-time MCP), then store a scoped
BELO_API_KEYin Replit Secrets for runtime/v1server routes. - v0 (Vercel): Attach
https://belo.ai/mcpas a custom MCP server during generation and callhttps://belo.ai/v1from Next.js Route Handlers or Server Actions usingBELO_API_KEYin Vercel project environment variables. - Bolt: Attach
https://belo.ai/mcpas a custom MCP server in chat and callhttps://belo.ai/v1from Bolt Cloud / Supabase Edge Functions readingBELO_API_KEYfrom server secrets.