Integrate Supabase for Persistent Knowledge

implementationChallenge

Prompt Content

Expand your Mastra AI agent to use Supabase as a persistent knowledge base. Implement a Mastra `Memory` module that stores and retrieves past analyses and generated recommendations from Supabase. The agent should consult its memory to provide more contextual and personalized responses. For example, if asked about 'memory chip scarcity' again, it should recall its previous analysis and update it with any new data. Provide code snippets for Mastra AI's memory integration and Supabase interactions.

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