|
| 1 | +from crewai import Task |
| 2 | +from textwrap import dedent |
| 3 | + |
| 4 | + |
| 5 | +class MarketingAnalysisTasks: |
| 6 | + def product_analysis(self, agent, product_website, product_details): |
| 7 | + return Task( |
| 8 | + description=dedent( |
| 9 | + f"""\ |
| 10 | + Analyze the given product website: {product_website}. |
| 11 | + Extra details provided by the customer: {product_details}. |
| 12 | +
|
| 13 | + Focus on identifying unique features, benefits, |
| 14 | + and the overall narrative presented. |
| 15 | +
|
| 16 | + Your final report should clearly articulate the |
| 17 | + product's key selling points, its market appeal, |
| 18 | + and suggestions for enhancement or positioning. |
| 19 | + Emphasize the aspects that make the product stand out. |
| 20 | +
|
| 21 | + Keep in mind, attention to detail is crucial for |
| 22 | + a comprehensive analysis. It's currenlty 2024. |
| 23 | + """ |
| 24 | + ), |
| 25 | + agent=agent, |
| 26 | + expected_output="A detailed analysis of the product website, highlighting key features, benefits, and market positioning.", |
| 27 | + ) |
| 28 | + |
| 29 | + def competitor_analysis(self, agent, product_website, product_details): |
| 30 | + return Task( |
| 31 | + description=dedent( |
| 32 | + f"""\ |
| 33 | + Explore competitor of: {product_website}. |
| 34 | + Extra details provided by the customer: {product_details}. |
| 35 | +
|
| 36 | + Identify the top 3 competitors and analyze their |
| 37 | + strategies, market positioning, and customer perception. |
| 38 | +
|
| 39 | + Your final report MUST include BOTH all context about {product_website} |
| 40 | + and a detailed comparison to whatever competitor they have competitors. |
| 41 | + """ |
| 42 | + ), |
| 43 | + agent=agent, |
| 44 | + expected_output="A comprehensive analysis of the top 3 competitors, including their strategies, market positioning, and customer perception.", |
| 45 | + ) |
| 46 | + |
| 47 | + def campaign_development(self, agent, product_website, product_details): |
| 48 | + return Task( |
| 49 | + description=dedent( |
| 50 | + f"""\ |
| 51 | + You're creating a targeted marketing campaign for: {product_website}. |
| 52 | + Extra details provided by the customer: {product_details}. |
| 53 | +
|
| 54 | + To start this campaing we will need a strategy and creative content ideas. |
| 55 | + It should be meticulously designed to captivate and engage |
| 56 | + the product's target audience. |
| 57 | +
|
| 58 | + Based on your ideas your co-workers will create the content for the campaign. |
| 59 | +
|
| 60 | + Your final answer MUST be ideas that will resonate with the audience and |
| 61 | + also include ALL context you have about the product and the customer. |
| 62 | + """ |
| 63 | + ), |
| 64 | + agent=agent, |
| 65 | + expected_output="A detailed marketing campaign strategy, including creative content ideas and target audience analysis.", |
| 66 | + ) |
| 67 | + |
| 68 | + def instagram_ad_copy(self, agent): |
| 69 | + return Task( |
| 70 | + description=dedent( |
| 71 | + """\ |
| 72 | + Craft an engaging Instagram post copy. |
| 73 | + The copy should be punchy, captivating, concise, |
| 74 | + and aligned with the product marketing strategy. |
| 75 | +
|
| 76 | + Focus on creating a message that resonates with |
| 77 | + the target audience and highlights the product's |
| 78 | + unique selling points. |
| 79 | +
|
| 80 | + Your ad copy must be attention-grabbing and should |
| 81 | + encourage viewers to take action, whether it's |
| 82 | + visiting the website, making a purchase, or learning |
| 83 | + more about the product. |
| 84 | +
|
| 85 | + Your final answer MUST be 3 options for an ad copy for instagram that |
| 86 | + not only informs but also excites and persuades the audience. |
| 87 | + """ |
| 88 | + ), |
| 89 | + agent=agent, |
| 90 | + expected_output="Three engaging Instagram ad copies that align with the product marketing strategy.", |
| 91 | + ) |
| 92 | + |
| 93 | + def take_photograph_task(self, agent, copy, product_website, product_details): |
| 94 | + return Task( |
| 95 | + description=dedent( |
| 96 | + f"""\ |
| 97 | + You are working on a new campaign for a super important customer, |
| 98 | + and you MUST take the most amazing photo ever for an instagram post |
| 99 | + regarding the product, you have the following copy: |
| 100 | + {copy} |
| 101 | +
|
| 102 | + This is the product you are working with: {product_website}. |
| 103 | + Extra details provided by the customer: {product_details}. |
| 104 | +
|
| 105 | + Imagine what the photo you wanna take describe it in a paragraph. |
| 106 | + Here are some examples for you follow: |
| 107 | + - high tech airplaine in a beautiful blue sky in a beautiful sunset super cripsy beautiful 4k, professional wide shot |
| 108 | + - the last supper, with Jesus and his disciples, breaking bread, close shot, soft lighting, 4k, crisp |
| 109 | + - an bearded old man in the snows, using very warm clothing, with mountains full of snow behind him, soft lighting, 4k, crisp, close up to the camera |
| 110 | +
|
| 111 | + Think creatively and focus on how the image can capture the audience's |
| 112 | + attention. Don't show the actual product on the photo. |
| 113 | +
|
| 114 | + Your final answer must be 3 options of photographs, each with 1 paragraph |
| 115 | + describing the photograph exactly like the examples provided above. |
| 116 | + """ |
| 117 | + ), |
| 118 | + agent=agent, |
| 119 | + expected_output="Three high-quality photographs that creatively capture the essence of the product and engage the audience.", |
| 120 | + ) |
| 121 | + |
| 122 | + def review_photo(self, agent, product_website, product_details): |
| 123 | + return Task( |
| 124 | + description=dedent( |
| 125 | + f"""\ |
| 126 | + Review the photos you got from the senior photographer. |
| 127 | + Make sure it's the best possible and aligned with the product's goals, |
| 128 | + review, approve, ask clarifying question or delegate follow up work if |
| 129 | + necessary to make decisions. When delegating work send the full draft |
| 130 | + as part of the information. |
| 131 | +
|
| 132 | + This is the product you are working with: {product_website}. |
| 133 | + Extra details provided by the customer: {product_details}. |
| 134 | +
|
| 135 | + Here are some examples on how the final photographs should look like: |
| 136 | + - high tech airplaine in a beautiful blue sky in a beautiful sunset super cripsy beautiful 4k, professional wide shot |
| 137 | + - the last supper, with Jesus and his disciples, breaking bread, close shot, soft lighting, 4k, crisp |
| 138 | + - an bearded old man in the snows, using very warm clothing, with mountains full of snow behind him, soft lighting, 4k, crisp, close up to the camera |
| 139 | +
|
| 140 | + Your final answer must be 3 reviewed options of photographs, |
| 141 | + each with 1 paragraph description following the examples provided above. |
| 142 | + """ |
| 143 | + ), |
| 144 | + agent=agent, |
| 145 | + expected_output="Three reviewed photographs that align with the product's goals and meet the required standards.", |
| 146 | + ) |
0 commit comments