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 Cloud API key
- A Snow Leopard Cloud instance with at least one data source connected
- Your instance ID, from the instance’s Connection Info tab
- OpenAI API key (or another supported model provider)
Don’t have data? Load the sample Northwind dataset into a PostgreSQL database that Snow Leopard Cloud can reach, such as a hosted Neon or Supabase database. Run the dataset’s
northwind.sql script against your database, then add the database as a data source in your instance.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 instance 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
- Improve accuracy by giving Snow Leopard feedback about your business logic and terminology
- Explore Recipes for more agent examples