Initialize Mastra AI Agent with Basic Memory

planningChallenge

Prompt Content

Start by setting up a basic Mastra AI agent. Define an initial `Agent` with a simple `memory` object to store temporary user preferences. Write a TypeScript function `createAgent()` that initializes the agent and its basic tools for setting reminders. Ensure you include the necessary Mastra AI imports and initial agent configuration (e.g., model provider).

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations