Docs

Developer docs

Everything you need to ship AI analytics inside your product. Integrate the widget in two lines, call the streaming REST API from your own backend, and configure privacy modes per customer, workspace, or table. Your users ask questions in plain English and get answers, charts, and auto-built dashboards in under five seconds — the engine writes and runs the SQL for them.

Quickstart

Two lines to live.

Load the script, then point a <table-ai> element at any table on the page. Customers ask questions in plain English and get answers, charts, and dashboards in under five seconds.

  • White-labelable on your own domain
  • Origin-locked via your public API key
  • Themeable via CSS variables
app.htmlwidget · 2 lines
<!-- 1. Load the widget -->
<script src="https://widget.tablearth.ai/v1.js"></script>

<!-- 2. Point it at a table -->
<table-ai
   api-key="pk_live_…"
   target="#revenue-table"
   user="u_8124"
   customer="acme"
   theme="dark" />
Reference

Key concepts.

The same four ideas show up across the widget, the REST API, and the extension. Learn them once and every integration path behaves the same way.

API keys

pk_live_… is your public key — origin-bound and safe to ship in the browser with the widget. sk_live_… is your secret key — server-side only, for the REST API.

Privacy modes

Pick how much the model sees: full_ai, masked, hybrid, or local_template — settable per customer, workspace, or table. See privacy →

Sessions

Pass a user id and a customer id on every request to scope answers and track usage per-customer and per-user.

Budget caps

Set hard caps, soft alerts, or pay-as-you-go limits per widget, API endpoint, customer, or user — so spend never gets away from you.

Start

Get an API key.

Talk to us, grab a key, and embed in minutes.