@ -1,4 +1,5 @@
from swarms import Agent , HierarchicalSwarm
from swarms_tools import exa_search
# =============================================================================
# HEAD OF CONTENT AGENT
@ -45,11 +46,10 @@ head_of_content_agent = Agent(
- Content ROI measurement and reporting
You deliver strategic , data - driven content recommendations that drive engagement , conversions , and brand growth . """ ,
model_name = " claude-3-sonnet-20240229 " ,
model_name = " gpt-4.1 " ,
max_loops = 1 ,
temperature = 0.7 ,
dynamic_temperature_enabled = True ,
streaming_on = True ,
print_on = True ,
)
@ -99,11 +99,11 @@ ad_creative_director_agent = Agent(
- Innovative advertising approaches and trends
You deliver creative solutions that are both strategically sound and creatively brilliant , driving brand awareness , engagement , and conversions . """ ,
model_name = " claude-3-sonnet-20240229 " ,
model_name = " gpt-4.1 " ,
max_loops = 1 ,
tools = [ exa_search ] ,
temperature = 0.8 ,
dynamic_temperature_enabled = True ,
streaming_on = True ,
print_on = True ,
)
@ -165,11 +165,11 @@ seo_strategist_agent = Agent(
- Voice search and featured snippet optimization
You deliver data - driven SEO strategies that drive sustainable organic growth , improve search visibility , and generate qualified traffic that converts . """ ,
model_name = " claude-3-sonnet-20240229 " ,
model_name = " gpt-4.1 " ,
max_loops = 1 ,
temperature = 0.6 ,
tools = [ exa_search ] ,
dynamic_temperature_enabled = True ,
streaming_on = True ,
print_on = True ,
)
@ -239,11 +239,9 @@ brand_strategist_agent = Agent(
- Brand architecture and portfolio management
You deliver strategic brand solutions that create powerful market differentiation , build strong brand equity , and drive sustainable business growth through compelling brand positioning and experiences . """ ,
model_name = " claude-3-sonnet-20240229 " ,
model_name = " gpt-4.1 " ,
max_loops = 1 ,
temperature = 0.7 ,
dynamic_temperature_enabled = True ,
streaming_on = True ,
tools = [ exa_search ] ,
print_on = True ,
)
@ -296,11 +294,10 @@ marketing_director_agent = Agent(
- Stakeholder communication and executive reporting
You deliver comprehensive marketing strategies that leverage the full expertise of your specialized team , ensuring all marketing efforts work together to drive business growth , brand awareness , and customer acquisition . """ ,
model_name = " claude-3-sonnet-20240229 " ,
model_name = " gpt-4.1 " ,
max_loops = 1 ,
temperature = 0.7 ,
dynamic_temperature_enabled = True ,
streaming_on = True ,
print_on = True ,
)
@ -319,26 +316,26 @@ marketing_agents = [
marketing_swarm = HierarchicalSwarm (
name = " Hierarchical-Marketing-Swarm " ,
description = " A comprehensive marketing team with specialized agents for content, creative, SEO, and brand strategy, coordinated by a marketing director " ,
director = marketing_director_agent ,
agents = marketing_agents ,
max_loops = 2 ,
verbose = True ,
max_loops = 1 ,
verbose = False ,
director_reasoning_model_name = " o3-mini " ,
# interactive=True,
)
# =============================================================================
# EXAMPLE USAGE
# =============================================================================
if __name__ == " __main__ " :
# Example marketing challenge
task = """ Develop a comprehensive marketing strategy for a new SaaS product launch.
The product is a project management tool targeting small to medium businesses .
Please coordinate the team to create :
1. Content strategy and editorial plan
2. Creative campaign concepts and visual direction
3. SEO strategy for organic growth
4. Brand positioning and market differentiation
Ensure all elements work together cohesively to drive awareness , engagement , and conversions . """
"""
Example usage : Instruct the marketing swarm to research swarms . ai and develop a new marketing plan .
"""
task = (
" Research swarms.ai and come up with a new marketing plan. "
" Analyze the current market positioning, identify opportunities, and propose a comprehensive strategy. "
" Include recommendations for content, creative campaigns, SEO, and brand differentiation. "
" Ensure the plan is actionable and tailored to swarms.ai ' s unique value proposition. "
)
result = marketing_swarm . run ( task = task )
print ( " = " * 80 )