Agentic AI Engineer — Text-to-SQL Analytics Chatbot (LangChain/LangGraph + OpenAI)
Worldwide
We're building an **agentic AI, text-to-SQL analytics chatbot**. It lets users ask questions about their business data in plain English — things like _"Show me the revenue trend,"_ _"Which source brought the most leads last month?,"_ or _"Where are we losing people in the funnel?"_ — and get clear, accurate, data-backed answers. Behind the chatbot is a **large relational database (30+ tables)** covering areas like leads, appointments, revenue, and marketing performance. The AI agent understands each question, figures out where the answer lives across those tables, and responds with the numbers, trends, comparisons, and breakdowns the user asked for — always grounded in real data, never made up. We're looking for an **AI engineer** who is strong on LLM / agent orchestration and text-to-SQL to help us build out and improve this agent. ### What you'll be working on - Build and improve an agentic AI that turns natural-language questions into accurate answers over a 30+ table database. - Support analytics use cases end to end: single-period metrics, time-series trends, period-over-period comparisons, grouped breakdowns, and funnel / diagnostic questions. - Keep answers accurate and trustworthy — the agent must return real numbers from the data and never fabricate them. - Improve prompts, accuracy, and the range of questions the agent can confidently handle. ### Tech stack (you should be comfortable with most of this) `Python` · `FastAPI` · `LangChain` & `LangGraph` · `OpenAI API` · `PostgreSQL` · `Pydantic` · (`LangSmith`, `Docker`, `DigitalOcean` a plus) ### Required skills - **Agentic AI / LLM orchestration** (LangChain / LangGraph or similar) and tool / function calling. - **Text-to-SQL** / natural-language-to-SQL over relational databases. - Strong **Python** and backend API development (FastAPI). - Solid **SQL** and **PostgreSQL**. - A focus on **accuracy** — making sure the AI returns correct, non-hallucinated answers. ### Nice to have - Prompt engineering and LLM evaluation / observability experience. - Marketing / sales analytics domain knowledge (leads, appointments, revenue, paid ads). - Docker / cloud deployment experience. ### Deliverables / definition of done - Working, tested improvements to the agent. - Accurate answers verified against real data across the supported question types. - Updated documentation where relevant.
- More than 30 hrs/weekHourly
- 6+ monthsDuration
- IntermediateExperience Level
$15.00
-
$40.00
Hourly- Remote Job
- Ongoing projectProject Type
Skills and Expertise
Activity on this job
- Proposals:20 to 50
- Interviewing:0
- Invites sent:1
- Unanswered invites:1
About the client
- IndiaAhmedabad2:35 AM
- $4K total spent5 hires, 1 active
- 206 hours
Explore similar jobs on Upwork
How it works
Create your free profileHighlight your skills and experience, show your portfolio, and set your ideal pay rate.
Work the way you wantApply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
Get paid securelyFrom contract to payment, we help you work safely and get paid securely.
About Upwork
- 4.9/5(Average rating of clients by professionals)
- G2 2021#1 freelance platform
- 49,000+Signed contract every week
- $2.3BFreelancers earned on Upwork in 2020
Find the best freelance jobs
Growing your career is as easy as creating a free profile and finding work like this that fits your skills.
Trusted by