What You’ll Build
A question-answering agent that:- Leverages Agentuity for easy deployment and monitoring
- Retrieves live data from a SQL database through Snow Leopard
- Requires no MCP setup, no ETL or data pipelines, and no RAG setup for data retrieval
Prerequisites
- Agentuity CLI
- Snow Leopard API key
- A datafile uploaded to Snow Leopard Playground
- OpenAI API key (or another supported model provider)
Don’t have data? Use our sample Northwind dataset to get started, or choose from our other sample datasets.
1. Create an Agentuity project
2. Install dependencies
Once you have an Agentuity project and are in its working directory, we will need to add a few new dependencies to add live data retrieval to your agent.3. Configure environment variables
Add your API keys and datafile ID to your.env file:
.env
4. Create the Snow Leopard tool
Create a Vercel AI tool that calls Snow Leopard to retrieve data:src/agent/getData.ts
5. Create the agent
Build an Agentuity agent that uses the Snow Leopard tool:src/agent/agent.ts
6. Expose the agent via HTTP
Add an API route to handle chat requests:src/api/index.ts
7. Try it out!
Start your development server:Next steps
- View the full example on GitHub
- Learn more about Agentuity agents
- See our full API documentation to learn about the Retrieve and Response endpoints
- Explore Recipes for more agent examples