Enter a brand URL to extract colors, typography, and page copy with Firecrawl. A grounded ToolLoopAgent then checks contrast, generates palette variations, and describes writing voice from the scraped page.
Use this when you want a grounded agent that pulls a site's brand tokens and answers contrast, palette, and voice questions from the scraped page.
Similar patterns, and when each one is the better fit.

Brand Guidelines Image GeneratorUse this when you need brand-standards manual spreads like color, typography, and grid pages rendered as images from a website URL, with edits.
Brand Mood Board GeneratorUse this when you need abstract or environmental mood images, such as hero or slide backgrounds, generated from a brand's website URL.
Firecrawl Brand PDFUse this when you need a downloadable brand brief PDF from a single website URL, covering token candidates and implementation recommendations.
Accessibility Audit AgentUse this when you want a fast HTML accessibility scan of a live URL with an honest score and fix list, not a full WCAG conformance engine.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.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Fill .env.local
The download includes .env.local placeholders when needed. Add real values for: OPENAI_API_KEY, FIRECRAWL_API_KEY.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
AI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallisStepCounttoolsContextcreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/branding-agent/route.tslib/actions.tslib/brand-context.tslib/branding-types.tslib/color.tslib/contrast.tslib/grounding.tslib/labels.tslib/normalize-brand.tslib/rate-limit.tslib/scrape-brand.tslib/tokens.tslib/ai/branding-agent.tslib/ai/resolve-color.tslib/ai/tools/check-contrast.tslib/ai/tools/describe-voice.tslib/ai/tools/generate-palette.tsREADME.mdnpm packages
8
Registry components
branding-agent/route.tsAPI route that builds the agent per request and streams via createAgentUIStreamResponse with brand + pageText.
ai/branding-agent.tsToolLoopAgent factory with 3 grounded tools and toolsContext injection from scraped brand + page copy.
lib/scrape-brand.tsFirecrawl scrape pipeline that normalizes brand tokens and page text for the agent.
tools/check-contrast.tsWCAG contrast check tool that resolves role names or hex against brand context.
tools/generate-palette.tsPalette tool for shade scales, complementary, and analogous colours from a base brand colour.
tools/describe-voice.tsVoice tool that describes page copy tone with quoted evidence from scraped text.
lib/actions.tsServer action for initial brand extraction from a URL before the agent chat starts.
Enter a brand URL to extract colors, typography, and page copy with Firecrawl. A grounded ToolLoopAgent then checks contrast, generates palette variations, and describes writing voice from the scraped page.
Use this when you want a grounded agent that pulls a site's brand tokens and answers contrast, palette, and voice questions from the scraped page.
Similar patterns, and when each one is the better fit.

Brand Guidelines Image GeneratorUse this when you need brand-standards manual spreads like color, typography, and grid pages rendered as images from a website URL, with edits.
Brand Mood Board GeneratorUse this when you need abstract or environmental mood images, such as hero or slide backgrounds, generated from a brand's website URL.
Firecrawl Brand PDFUse this when you need a downloadable brand brief PDF from a single website URL, covering token candidates and implementation recommendations.
Accessibility Audit AgentUse this when you want a fast HTML accessibility scan of a live URL with an honest score and fix list, not a full WCAG conformance engine.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.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Fill .env.local
The download includes .env.local placeholders when needed. Add real values for: OPENAI_API_KEY, FIRECRAWL_API_KEY.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
AI SDK APIs
useChatgatewayToolLoopAgenttoolhasToolCallisStepCounttoolsContextcreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessageProviders
External services
app/page.tsxapp/layout.tsxapp/api/branding-agent/route.tslib/actions.tslib/brand-context.tslib/branding-types.tslib/color.tslib/contrast.tslib/grounding.tslib/labels.tslib/normalize-brand.tslib/rate-limit.tslib/scrape-brand.tslib/tokens.tslib/ai/branding-agent.tslib/ai/resolve-color.tslib/ai/tools/check-contrast.tslib/ai/tools/describe-voice.tslib/ai/tools/generate-palette.tsREADME.mdnpm packages
8
Registry components
branding-agent/route.tsAPI route that builds the agent per request and streams via createAgentUIStreamResponse with brand + pageText.
ai/branding-agent.tsToolLoopAgent factory with 3 grounded tools and toolsContext injection from scraped brand + page copy.
lib/scrape-brand.tsFirecrawl scrape pipeline that normalizes brand tokens and page text for the agent.
tools/check-contrast.tsWCAG contrast check tool that resolves role names or hex against brand context.
tools/generate-palette.tsPalette tool for shade scales, complementary, and analogous colours from a base brand colour.
tools/describe-voice.tsVoice tool that describes page copy tone with quoted evidence from scraped text.
lib/actions.tsServer action for initial brand extraction from a URL before the agent chat starts.
Loading preview…
Early-bird pricing — limited time


Open on desktop for the interactive preview.
Enter a brand URL to extract colors, typography, and page copy with Firecrawl. A grounded ToolLoopAgent then checks contrast, generates palette variations, and describes writing voice from the scraped page.
Loading preview…
Early-bird pricing — limited time


Open on desktop for the interactive preview.
Enter a brand URL to extract colors, typography, and page copy with Firecrawl. A grounded ToolLoopAgent then checks contrast, generates palette variations, and describes writing voice from the scraped page.