from praisonaiagents import Agent# Content creation agentwriter = Agent( name="ContentWriter", instructions="Write engaging content for the specified audience and format")writer.start("""Write a blog post about productivity tips.Audience: Remote workersLength: 500 wordsTone: Friendly and practical""")
from praisonaiagents import Agentblog_writer = Agent( name="BlogWriter", instructions="""You write engaging blog posts.- Create attention-grabbing headlines- Use clear subheadings- Include practical examples- End with a call-to-action""")blog_writer.start("""Topic: 5 Ways to Improve FocusAudience: StudentsLength: 600 words""")
social_agent = Agent( name="SocialMedia", instructions="""You create social media content.Platform guidelines:- Twitter: 280 chars, punchy, hashtags- LinkedIn: Professional, 1-3 paragraphs- Instagram: Visual-focused, emojis, hashtags""")social_agent.start("""Create posts for Twitter and LinkedIn:Topic: New product launchProduct: AI Writing AssistantKey benefit: Save 5 hours per week""")
from praisonaiagents import Agent, AgentTeam# Research for contentresearcher = Agent( name="Researcher", instructions="Research topics for content creation", web=True)# Write the contentwriter = Agent( name="Writer", instructions="""Write engaging content based on research.- Use clear structure- Include examples- Match the requested tone""")# Edit and polisheditor = Agent( name="Editor", instructions="Polish content for clarity and grammar")# Content creation teamteam = AgentTeam( agents=[researcher, writer, editor], process="sequential")team.start("""Create a blog post about sustainable living tips.Audience: Young professionalsLength: 800 wordsTone: Inspiring and practical""")