Marketing Agents

Pattern
Marketing Plan & Implement Agent
Two-phase marketing agent with brand context: Stage 0 extracts brand info from URL or manual input, planning phase gathers requirements and creates a plan with todos, implementation phase executes the plan using web scraping and research tools. Uses callOptionsSchema + prepareCall for dynamic agent configuration.
AdvancedDec 2025View the full pattern on desktop


Problems solved
- Extract brand context from a URL or manual intake
- Plan marketing work with human-approved todos
- Execute the plan with research and scraping tools
- Pass brandContext at runtime via callOptions and prepareCall
- Share runtime context with tools through experimental_context
Use cases
- Marketing campaign plan-and-execute agents
- Competitor research implementation loops
- Content strategy agents with approval gates
- SEO research that moves from plan to action
AI SDK APIs
useChatgatewayToolLoopAgenttool(generateObjecthasToolCallstepCountIscreateAgentUIStreamResponseInferAgentUIMessagecallOptionsSchemaprepareCallexperimental_context
Tags
aiagentsmarketingplanningimplementationai-sdktool-loopweb-scrapingfirecrawlhuman-in-the-looptodo-management
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- OpenAI API key
- Firecrawl API key
External services
openaifirecrawl
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktop






