Loading preview…
Loading preview…
Queue management assistant using AI agents. Generate structured queues with messages, todos, and attachments through conversation.
Loading preview…
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in — then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
GOOGLE_API_KEY, UPSTASH_REDIS_REST_URL, UPSTASH_REDIS_REST_TOKEN
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
AI SDK APIs
generateObjecttoolAgentvalidateUIMessagesProviders
app/page.tsxapp/layout.tsxapp/api/agent/route.tscomponents/queue-demo.tsxlib/queue-agent.tslib/queue-tool.tslib/types.tslib/schema.tslib/request-utils.tsREADME.mdnpm packages
5
Registry components
agent/route.tsAPI route using createAgentUIStreamResponse with the Experimental_Agent pattern. Shows the new Agent API pattern from AI SDK.
lib/queue-agent.tsDefines the queue management Agent using the Experimental_Agent API from AI SDK. Uses google/gemini-3-flash with createQueue tool and stepCountIs(5) stop condition.
lib/queue-tool.tsImplements the createQueue tool that uses generateObject with a structured Zod schema to generate queue data (sections with messages, todos, attachments).
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Queue management assistant using AI agents. Generate structured queues with messages, todos, and attachments through conversation.