This is a template project that demonstrates how to create a weather agent using the Mastra framework. The agent can provide weather information and forecasts based on user queries.
The Weather Agent template showcases how to:
- Create an AI-powered agent using Mastra framework
- Implement weather-related workflows
- Handle user queries about weather conditions
- Integrate with OpenAI's API for natural language processing
- Copy
.env.example
to.env
and fill in your API keys. - Install dependencies:
pnpm install
- Run the project:
pnpm dev
.
OPENAI_API_KEY
: Your OpenAI API key. https://platform.openai.com/api-keys