A minimalist AI agent built with Mastra that writes poems and stores them in Recall Network buckets.
Watch the livestream where we built this repo with Cursor IDE!
~https://www.youtube.com/watch?v=NQ81YFIKPh0
- Node.js 16+
- pnpm
- Clone the repository
- Install dependencies
pnpm installCreate a .env file with the following variables:
OPENAI_API_KEY=your_openai_api_key_here
RECALL_PRIVATE_KEY=your_private_key_here
RECALL_NETWORK=testnet
RECALL_TOOLS=all
Note: You'll need an OpenAI API key and a Recall Network private key.
Build and run the agent:
pnpm build
pnpm start- The agent wakes up and introduces itself
- It creates a beautiful poem
- It checks if a Recall bucket with alias "awakening" exists
- If needed, it creates the bucket
- It saves the poem as a text file with a timestamp filename
- It confirms the storage was successful and shuts down
Poems are stored in the Recall Network with a timestamp-based filename in the "awakening" bucket.