File size: 756 Bytes
33b8783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from crewai import Task
from dotenv import load_dotenv
from crewai_tools import SerperDevTool
from src.agents.blog_writer_agent import blog_writer_agent

load_dotenv()

os.environ['SERPER_API_KEY'] = os.getenv("SERPER_API_KEY")
tools = SerperDevTool()

blog_writer_agent_task = Task(
    description="Write a comprehensive blog post based on the 1 article provided by the Topic Researcher. The article must include an introduction, step-by-step guides and conclusion. The overall content must be about 400 words long.",
    expected_output="A comprehensive and well-written blog post with an outline and audience analysis and resources. Each section should have 2 or 3 paragraphs",
    agent=blog_writer_agent,
    tools=[tools]
)