"""Hand off the campaign idea to the copywriter agent."""
returncopywriter_agent
defhandoff_to_analyst():
"""Hand off the website content to the analyst agent."""
returnanalyst_agent
defhandoff_to_campaign_idea():
"""Hand off the target audience and goals to the campaign idea agent."""
returncampaign_idea_agent
defhandoff_to_website_scraper():
"""Hand off the url to the website scraper agent."""
returnwebsite_scraper_agent
user_interface_agent=Agent(
name="User Interface Agent",
instructions="You are a user interface agent that handles all interactions with the user. You need to always start with a URL that the user wants to create a marketing strategy for. Ask clarification questions if needed. Be concise.",
functions=[handoff_to_website_scraper],
)
website_scraper_agent=Agent(
name="Website Scraper Agent",
instructions="You are a website scraper agent specialized in scraping website content.",
functions=[scrape_website,handoff_to_analyst],
)
analyst_agent=Agent(
name="Analyst Agent",
instructions="You are an analyst agent that examines website content and provides insights for marketing strategies. Be concise.",
instructions="You are a campaign idea agent that creates innovative marketing campaign ideas based on website content and target audience. Be concise.",