AgentSQL for RevOps and Sales Operations Teams That Need Pipeline Answers Today
Ask for pipeline by source, win rate or quota attainment in plain English. AgentSQL runs the query read-only on your database and shows the SQL beside the number. Team is $59 a month billed yearly.
PostgreSQL and MySQL · read-only user · SQL shown every time
Ask the demo shop a question, or type your own:
Reading the schema, writing SQL… Writing SQL… Running (read‑only)… SQL AgentSQL wrote
▋
A real MySQL shop: customers, products, orders and signups over the last year. AgentSQL writes the SQL, runs it read-only, and answers.
Direct answer
AgentSQL is an AI data analyst that lets a RevOps or sales operations team ask questions of the deal and account database in plain English. It writes the query, runs it through a user that can only read, and returns a chart, a table and the SQL it used. Most requests arrive minutes before a forecast call, such as win rate by rep or pipeline created by source. This page shows the ones that go wrong and which plan covers a team, from $24 a month.
›_ the RevOps workflow
Four steps from a forecast question to a number you can check.
The request that used to wait in an engineering queue becomes a question you ask yourself.
01
Connect a read-only user
Point AgentSQL at the PostgreSQL or MySQL database that holds your deals, accounts and activities, with a user that can only SELECT. Reps and managers cannot change a record.
02
Ask the question from the forecast call
Type it the way the VP of sales would say it. AgentSQL reads your tables and foreign keys and writes the query with your real column names.
03
Read the number and the SQL
You get a chart, a table and a one-line answer, with the query beside them, so you can see which stages and dates the figure counts.
04
Refine and reuse
If win rate counts open deals, say so and ask again. The same question next Monday takes one line, not a ticket to the BI admin.
›_ pipeline reporting, the part that goes wrong
Six ordinary pipeline questions where a query returns a wrong number, not an error.
None of these fail loudly. That is why every answer shows the SQL, so you can read the filter before the figure goes into a forecast.
| The question | What quietly goes wrong | What to state or check |
|---|---|---|
| Pipeline created this quarter by source. | Opportunity rows are often updated in place, so a deal that moved stage keeps one row with its latest stage. Counting rows by current stage hides how much entered the pipeline earlier. | Ask for created date, not stage date, and check whether a stage history table exists |
| Win rate by rep. | Open deals sit in the same table as won and lost ones. Dividing wins by all rows treats every open deal as a loss and pushes every rep down. | Divide wins by closed deals only and say so in the question |
| Average sales cycle in days. | Closed lost deals and test records drag the average. Deals that were reopened carry a close date earlier than their last update. | Limit to closed won, and name the two date columns you subtract |
| Quota attainment per rep. | Quota usually lives in a separate table by period. A join on rep alone repeats the quota for every deal, so attainment looks tiny. | Total the deals per rep and period first, then join the quota row once |
| Revenue by region this month. | Deals in several currencies are added as if they were one unit, and the region on the account can differ from the region on the opportunity. | Group by currency or convert at a stated rate, and name which table owns region |
| Leads that never got a follow up. | A left join to activities returns every lead when the filter on activity type sits in the WHERE clause, because the filter removes the empty rows you wanted. | Put the activity filter in the join condition and read the shown SQL for it |
The quota row is the one that embarrasses people in a review. A rep with 40 deals and one quota row shows the quota 40 times after a careless join, so attainment looks like 2 percent and nothing flags it. The ad hoc reporting page covers the wider category, and AgentSQL for finance teams applies the same checks to invoices and refunds.
›_ which plan fits a sales ops team
The plan follows the number of people asking, not the number of questions.
Prices are the ones on the pricing page.
| Plan | Price | Fits |
|---|---|---|
| Starter | $24 a month billed yearly ($49 monthly) | One RevOps lead with one database connection |
| Team | $59 a month billed yearly ($119 monthly) | A sales ops team plus managers, up to 10 people, several connections |
| Scale | $179 a month billed yearly ($359 monthly) | Sales, marketing and finance asking from the same data |
A sales ops team of six on Team pays $708 a year, about $9.83 a person a month. If you are comparing that with seat-based dashboards, the AI data analyst pricing comparison shows what other tools charge. Forecast tooling that owns commit calls and territory planning stays in your CRM.
›_ who it is for and who it is not for
A fit for teams with deal data in a database, not for every sales team.
It is for
RevOps and sales ops leads at software, marketplace and ecommerce companies, where deals, accounts and activities are synced into a PostgreSQL or MySQL database and the BI admin owns the dashboards. Also sales managers who ask several one-off questions a week and are tired of waiting. Teams that coordinate with marketing, for example by hiring through a place to find marketers, can ask lead source questions from the same data.
It is not for
Teams whose deals live only inside a CRM with no database copy to connect, since AgentSQL does not read a CRM through its own API. It does not own forecast commits, territories or quota setting. It also does not connect to Snowflake or BigQuery today, only PostgreSQL and MySQL.
The same pattern for other roles is on the founders, ops teams and analysts pages. If read access worries your auditors, start with read-only security. The PostgreSQL grant that matches this setup is described in the PostgreSQL GRANT documentation.
›_ frequently asked
RevOps questions, answered.
Can RevOps query the CRM data without SQL?
Yes, when the deal, account and activity data sits in a PostgreSQL or MySQL database. A RevOps lead types a question such as pipeline created by source this quarter, and AgentSQL writes the SQL, runs it read-only and returns a chart, a table and the query it used.
Does AgentSQL connect to Salesforce or HubSpot directly?
No. AgentSQL connects to PostgreSQL and MySQL databases. If your CRM data is synced into a warehouse database you control, point AgentSQL at that copy. It does not read the CRM through its own API.
How accurate is AI-generated SQL for win rate and quota numbers?
It is accurate when the question states the rules, such as closed deals only, which date counts and where quota lives. Every answer shows its SQL, so a wrong filter is visible before the number reaches a forecast deck.
Is it safe to connect AI to the sales database?
It is safe when the user can only read. AgentSQL connects through a read-only user, so no question can insert, update or delete a row. A read replica keeps heavy questions off the primary.
How much does AgentSQL cost for a sales ops team?
Team is $59 a month billed yearly, or $119 billed monthly, for up to 10 seats and several connections, which is $708 a year. Starter is $24 a month billed yearly for one person with one connection. Every plan is on the pricing page.
Answer the forecast question before the call starts.
Connect a read-only user and get the number, the chart and the query behind it.