Research Agents

Pattern
Competitor Research Agent
Enter a competitor URL to get a research brief grounded in their own site. Firecrawl maps and scrapes up to four pages, every extracted fact is checked against the scraped text, and an agent adds positioning, gaps, and a sales battle card with quoted evidence.
IntermediateJan 2026View the full pattern on desktop


Problems solved
- Extract competitor site data with Firecrawl map and scrape
- Keep model output grounded by verifying it against scraped text
- Analyze positioning and gaps with quoted evidence
- Detect technologies used on competitor properties
- Generate sales battle cards from live competitor pages
Use cases
- Sales competitive intelligence
- Pricing strategy research
- Feature gap analysis
- Product roadmap inputs from competitor sites
- Battle cards for account executives
AI SDK APIs
useChatgatewayToolLoopAgenttool(hasToolCallisStepCountgenerateObjecttoolsContextcreateAgentUIStreamResponseInferAgentUIMessageDefaultChatTransportUIMessage
Tags
aiagentscompetitor-analysiscompetitive-intelligencesalesbattlecardfirecrawlai-sdktool-looppricingfeaturestech-stack
Requirements
- Node.js
- 24+
- Memory
- 256MB
- Other
- OpenAI API key
- Firecrawl API key
External services
openaifirecrawlupstash
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktop






