Enerfrog SQL ChatbotConversational analytics for energy and facilities
Facilities teams ask questions about their energy data in plain English and get answers that are correct 95% of the time, with no SQL needed.
Business question. A facilities team can ask which site had the highest average electricity usage in a given month. The supervisor extracts the utility type, reporting period and requested comparison from the question and conversation history, then routes the request to the relevant specialist.
SQL validation and retry. The query workflow loads the PostgreSQL schema and table relationships before generating SQL. For a usage comparison, it joins utility bills to facility records, filters by billing period and utility type, then groups and ranks facilities by average usage. An EXPLAIN step checks the query before execution and feeds errors back into a bounded retry loop.
Weather context and provenance. The weather workflow maps facilities to stations and aggregates heating and cooling degree days when a question calls for weather context. The answer includes source-record IDs so users can trace the result back to the underlying data.