Marketing Agents

Pattern

HIL Agentic Context Builder

Build brand context through AI-guided questioning and web research. Gathers insights to create detailed brand profiles.

IntermediateOct 2025View the full pattern on desktop
HIL Agentic Context Builder preview

Problems solved

  • Build brand context through guided AI questioning and web research
  • Stop the agent loop when a completion tool is called
  • Share AsyncLocalStorage context across a rich toolset
  • Synthesize competitive and audience insights into a brand profile

Use cases

  • Brand discovery interviews
  • Marketing strategy intake agents
  • Competitive landscape research sessions
  • Campaign briefing copilots

AI SDK APIs

streamTexttools:convertToModelMessagesgenerateObjecttool(

Tags

aihuman-in-the-loopstrategycontext-buildingresearchai-sdkartifactscompetitive-analysisbrand-positioningtarget-audience

Requirements

Node.js
24+
Memory
512MB
Other
  • OpenAI API key
  • Exa API key (optional)

Environment variables

External services

openaiupstash

Ready to use?

View the full interactive pattern with live preview and copy the source code.

View the pattern on desktop

Related patterns