Validate startup ideas with a two-phase workflow: discover relevant subreddits, then analyze pain points, existing solutions, willingness to pay, demand trends, and early adopters. Get a go/no-go scorecard with actionable insights.
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_GENERATIVE_AI_API_KEY
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.
GOOGLE_GENERATIVE_AI_API_KEYGet keyAI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallstepCountIscreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/reddit-validation-agent/route.tslib/validation-types.tslib/rate-limit.tslib/ai/reddit-validation-agent.tslib/ai/tools/discover-subreddits.tslib/ai/tools/find-pain-points.tslib/ai/tools/analyze-existing-solutions.tslib/ai/tools/detect-willingness-to-pay.tslib/ai/tools/validate-demand.tslib/ai/tools/find-early-adopters.tslib/ai/tools/generate-validation-report.tsREADME.mdnpm packages
8
Registry components
reddit-validation-agent/route.tsAPI route passing phase-based options (ideaContext, selectedSubreddits, phase) via callOptions for the two-phase agent.
ai/reddit-validation-agent.tsTwo-phase ToolLoopAgent: discovery phase (1 tool) and analysis phase (6 tools). Uses prepareCall to switch instructions based on phase.
tools/discover-subreddits.tsSubreddit discovery tool for finding relevant Reddit communities.
tools/find-pain-points.tsPain point analysis tool searching for frustration expressions in Reddit posts.
tools/analyze-existing-solutions.tsTool for analyzing existing solutions discussed on Reddit.
tools/detect-willingness-to-pay.tsTool for finding pricing discussions and payment intent signals.
tools/validate-demand.tsTool for analyzing discussion frequency and demand trends.
tools/find-early-adopters.tsTool for identifying users actively seeking solutions.
tools/generate-validation-report.tsFinal go/no-go validation report tool synthesizing all analysis into a comprehensive scorecard.
Validate startup ideas with a two-phase workflow: discover relevant subreddits, then analyze pain points, existing solutions, willingness to pay, demand trends, and early adopters. Get a go/no-go scorecard with actionable insights.
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_GENERATIVE_AI_API_KEY
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.
GOOGLE_GENERATIVE_AI_API_KEYGet keyAI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallstepCountIscreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/reddit-validation-agent/route.tslib/validation-types.tslib/rate-limit.tslib/ai/reddit-validation-agent.tslib/ai/tools/discover-subreddits.tslib/ai/tools/find-pain-points.tslib/ai/tools/analyze-existing-solutions.tslib/ai/tools/detect-willingness-to-pay.tslib/ai/tools/validate-demand.tslib/ai/tools/find-early-adopters.tslib/ai/tools/generate-validation-report.tsREADME.mdnpm packages
8
Registry components
reddit-validation-agent/route.tsAPI route passing phase-based options (ideaContext, selectedSubreddits, phase) via callOptions for the two-phase agent.
ai/reddit-validation-agent.tsTwo-phase ToolLoopAgent: discovery phase (1 tool) and analysis phase (6 tools). Uses prepareCall to switch instructions based on phase.
tools/discover-subreddits.tsSubreddit discovery tool for finding relevant Reddit communities.
tools/find-pain-points.tsPain point analysis tool searching for frustration expressions in Reddit posts.
tools/analyze-existing-solutions.tsTool for analyzing existing solutions discussed on Reddit.
tools/detect-willingness-to-pay.tsTool for finding pricing discussions and payment intent signals.
tools/validate-demand.tsTool for analyzing discussion frequency and demand trends.
tools/find-early-adopters.tsTool for identifying users actively seeking solutions.
tools/generate-validation-report.tsFinal go/no-go validation report tool synthesizing all analysis into a comprehensive scorecard.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Validate startup ideas with a two-phase workflow: discover relevant subreddits, then analyze pain points, existing solutions, willingness to pay, demand trends, and early adopters. Get a go/no-go scorecard with actionable insights.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.

Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Validate startup ideas with a two-phase workflow: discover relevant subreddits, then analyze pain points, existing solutions, willingness to pay, demand trends, and early adopters. Get a go/no-go scorecard with actionable insights.
Unlock the live preview and source
Locked on free (high token spend). Pro runs the live demo and includes the source.