Insight O' Mate

Firebase Firestore

Firestore AI Query Builder — plain English to SDK.

Insight O\u2019 Mate is an AI-powered Firestore query assistant. Type a question in plain English; it generates the Firestore collection query with where clauses, orderBy, and count aggregations, runs it locally via the Admin SDK, and returns results.

What is Insight O' Mate for Firestore?

Insight O' Mate is a Text-to-Firestore platform and AI database copilot for Firebase. Developers connect their Firebase project using a service account JSON file, then ask questions in plain English. The stateless NLP engine receives the prompt and collection field names — never document values — and generates a Firestore Admin SDK query that executes locally on the developer's machine.

How it works

01

Connect your Firebase project

Upload your Firebase service account JSON file. Insight O’ Mate reads your collection structure. The file stays on your machine — it is never uploaded to any server.

02

Ask in plain English

Type your question: "Find users from India" or "Count pending orders." The NLP engine receives only your prompt and collection/field names — never your Firestore documents or field values.

03

Get the query and results instantly

The generated Firestore query runs locally via the Admin SDK. Inspect it, copy it into your application code, or ask a follow-up question.

Natural language Firestore query examples

Real examples showing how plain-English questions are translated into Firestore Admin SDK queries.

YOU

Show me all active users who joined in the last 30 days.

Generated Firestore query

// Generated Firestore query
const thirtyDaysAgo = new Date();
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);

const snapshot = await db
  .collection("users")
  .where("status", "==", "active")
  .where("createdAt", ">=", thirtyDaysAgo)
  .orderBy("createdAt", "desc")
  .get();

Compound where query filtering by status and date range, ordered by creation date descending.

YOU

Count how many orders have a status of 'pending'.

Generated Firestore query

// Generated Firestore aggregation query
const snapshot = await db
  .collection("orders")
  .where("status", "==", "pending")
  .count()
  .get();

// snapshot.data().count gives the total

Uses Firestore's native count() aggregation to count matching documents without fetching them.

YOU

Find all blog posts tagged 'AI' ordered by publish date descending.

Generated Firestore query

// Generated Firestore query
const snapshot = await db
  .collection("posts")
  .where("tags", "array-contains", "AI")
  .orderBy("publishedAt", "desc")
  .limit(20)
  .get();

Uses array-contains to find posts where the tags array includes 'AI', ordered by date.

YOU

Find users from India.

Generated Firestore query

// Generated Firestore query
const snapshot = await db
  .collection("users")
  .where("country", "==", "India")
  .get();

Simple equality filter on the country field.

YOU

Show orders created today.

Generated Firestore query

// Generated Firestore query
const startOfDay = new Date();
startOfDay.setHours(0, 0, 0, 0);

const snapshot = await db
  .collection("orders")
  .where("createdAt", ">=", startOfDay)
  .orderBy("createdAt", "desc")
  .get();

Filters orders to those created since midnight today, ordered by most recent first.

YOU

Find products with inventory below 10.

Generated Firestore query

// Generated Firestore query
const snapshot = await db
  .collection("products")
  .where("stock", "<", 10)
  .orderBy("stock", "asc")
  .get();

Finds low-stock products using a less-than filter on the stock field.

YOU

Get the 5 most recent support tickets that are still open.

Generated Firestore query

// Generated Firestore query
const snapshot = await db
  .collection("tickets")
  .where("status", "==", "open")
  .orderBy("createdAt", "desc")
  .limit(5)
  .get();

Filters by status, orders by recency, and limits to the 5 most recent results.

Who uses Insight O' Mate for Firestore?

Firebase developers

Skip the compound where clause syntax and index juggling. Describe the query in plain English and inspect the generated SDK call before running it.

Mobile and web app developers

Explore your Firestore production or staging data without building an internal admin panel. Ask questions directly in plain English.

Data analysts working with Firebase

Analyze Firestore collections without learning the Firestore SDK. Ask filtering, counting, and aggregation questions in plain English.

Technical product managers

Access Firestore data independently to answer product questions without depending on engineering for every data request.

When to use Insight O' Mate for Firestore

  • Exploring Firestore collections in a development, staging, or production project
  • Quickly counting or filtering documents without building a query from scratch
  • Ad-hoc reporting on Firebase data without an internal dashboard
  • Debugging data inconsistencies in Firestore collections
  • Learning Firestore query syntax by reading the generated SDK calls
  • Performing one-off data analysis on Firestore datasets

When NOT to use it

  • When you need write operations (set, update, delete) — Insight O’ Mate is read-only
  • For Firestore Security Rules testing or administration
  • For real-time listeners (onSnapshot) — Insight O’ Mate runs point-in-time read queries
  • For Firestore index management or Firebase project administration

Privacy-first by design

When you ask a question, Insight O' Mate sends only your prompt and your Firestore collection and field names to the stateless NLP engine — never your documents, never your field values. The query runs locally via the Firebase Admin SDK on your machine. Nothing is stored on our servers.

Read the full security and privacy model

Frequently asked questions

Can I query Firestore using natural language?
Yes. Insight O’ Mate translates your plain-English questions into Firestore collection queries using the Firebase Admin SDK. You describe what you want and the AI generates the correct query with where clauses, orderBy, and limit.
Does Insight O’ Mate work with Firebase Firestore?
Yes. Connect your Firebase project using a service account JSON file. Insight O’ Mate reads your Firestore collection and document structure to generate accurate queries.
What Firestore operations can Insight O’ Mate generate?
Collection queries with where filters (==, !=, <, >, <=, >=, array-contains, in, not-in), orderBy, limit, startAfter pagination, and native count() aggregation queries. It reads data — it does not generate write operations.
Is my Firestore data sent to any server?
No. Your Firestore documents and field values never leave your machine. Only your prompt and collection/field names are sent to the stateless NLP engine for query generation.
Do I need to know Firestore query syntax to use Insight O’ Mate?
No. Type your question in plain English and Insight O’ Mate generates the Firestore query. You can inspect and copy the generated query directly into your code.
What are the limitations of Firestore AI querying?
Firestore compound queries require composite indexes to exist in Firebase Console — Insight O’ Mate generates the query but cannot create indexes automatically. Currently supports single collection queries; nested sub-collections require specifying the sub-collection path explicitly.
Does Insight O’ Mate support Firestore subcollections?
Subcollections can be queried by specifying the full collection path (e.g., 'users/{userId}/orders'). Collection group queries across all subcollections are also supported for common patterns.

Start querying Firestore in plain English

Free plan available — 20 queries per day. No credit card required.