Spaces:
Sleeping
Sleeping
Update app.py
Browse filesShorter version of keyworder.
Merged wishes with pain points and differentiators with benefits
app.py
CHANGED
|
@@ -12,13 +12,11 @@ def generate_keywords(customer_profile, pain_points, customer_wishes, brand_name
|
|
| 12 |
# Craft the prompt for the OpenAI model
|
| 13 |
prompt = f"""You are an experienced digital marketing specialist AI.
|
| 14 |
Provide customized digital marketing strategy recommendations for a producer or service provider (user of the chatbot)
|
| 15 |
-
who wishes to market their product online using recommended media mix (Google Search Ads, Facebook Ads, SEO, SEM, etc.) using the following details:
|
| 16 |
-
-
|
| 17 |
-
- Problems
|
| 18 |
-
- Customer needs and what they wish the solution (product or service) would have to make their lives easier: {customer_wishes}
|
| 19 |
- Brand name (suggest a brand name and a slogan if the user doesn't yet have them): {brand_name}
|
| 20 |
-
- What the solution (product or service) offers to solve customer problems,
|
| 21 |
-
- What differentiates the solution from existing competitor offerings: {differentiators}
|
| 22 |
- They main marketing goal the service provider (user of the chatbot) wishes to pursue: {goal}
|
| 23 |
|
| 24 |
Include:
|
|
@@ -53,35 +51,25 @@ keyworder_app = gr.Interface(
|
|
| 53 |
allow_flagging="never",
|
| 54 |
inputs=[
|
| 55 |
gr.Textbox(
|
| 56 |
-
label="Customer Profile",
|
| 57 |
placeholder="Describe your customer and what task or job they are trying to do. (e.g., My customer is a busy executive on the go. They have a pet whom they love dearly. They want to make sure that their pet is always taken care of even when they are busy or delayed at work.)",
|
| 58 |
lines=2,
|
| 59 |
),
|
| 60 |
gr.Textbox(
|
| 61 |
-
label="Customer Pain Points",
|
| 62 |
-
placeholder="Identify problems
|
| 63 |
lines=2,
|
| 64 |
),
|
| 65 |
gr.Textbox(
|
| 66 |
-
label="
|
| 67 |
-
placeholder="Describe your customers' needs and wishes. (e.g., They need someone reliable to check on their pets, walk them, ensure that that they have food and water, etc. They wish they could see their pets, make sure they are OK and say hi to them via their phones.)",
|
| 68 |
-
lines=2,
|
| 69 |
-
),
|
| 70 |
-
gr.Textbox(
|
| 71 |
-
label="Brand Name",
|
| 72 |
placeholder="List your brand name and slogan (e.g., InstaPet, where you are always with your pet.) or request suggestions.",
|
| 73 |
lines=2,
|
| 74 |
),
|
| 75 |
gr.Textbox(
|
| 76 |
-
label="Benefits of your Solution",
|
| 77 |
-
placeholder="Enter key benefits your product or service offers. (e.g., You can always rely on our network of pet lovers to care for your pet while you are held up at work or other commitments!) ",
|
| 78 |
lines=2,
|
| 79 |
-
),
|
| 80 |
-
gr.Textbox(
|
| 81 |
-
label="Differentiators",
|
| 82 |
-
placeholder="List what differentiates you from the competition.(e.g., Our pet-care-providers love pets and will help you say hi to your pet via our secure network.).",
|
| 83 |
-
lines=2,
|
| 84 |
-
),
|
| 85 |
gr.Textbox(
|
| 86 |
label="Marketing Goal",
|
| 87 |
placeholder="What is your main marketing goal (e.g., Boost awareness, website visits, conversion, etc.).",
|
|
@@ -89,7 +77,7 @@ keyworder_app = gr.Interface(
|
|
| 89 |
),
|
| 90 |
],
|
| 91 |
outputs=gr.Textbox(label="Customized Digital Marketing Advice"),
|
| 92 |
-
title="
|
| 93 |
description="This app provides customized digital marketing strategy advice based on your input. Powered by OpenAI GPT 4, Design Thinking and domain expertise. Developed by wn. Note and Disclaimer: Even AI can make mistakes. Use with caution and at your own risk!",
|
| 94 |
)
|
| 95 |
|
|
|
|
| 12 |
# Craft the prompt for the OpenAI model
|
| 13 |
prompt = f"""You are an experienced digital marketing specialist AI.
|
| 14 |
Provide customized digital marketing strategy recommendations for a producer or service provider (user of the chatbot)
|
| 15 |
+
who wishes to market their product or service online using recommended media mix (Google Search Ads, Facebook Ads, SEO, SEM, etc.) using the following details:
|
| 16 |
+
- Their customer profile and what task or job they are trying to do: {customer_profile}
|
| 17 |
+
- Problems, pain points, needs, preferences and wishes that their customers have while trying to do the task: {pain_points}
|
|
|
|
| 18 |
- Brand name (suggest a brand name and a slogan if the user doesn't yet have them): {brand_name}
|
| 19 |
+
- What the solution (product or service) offers to solve customer problems, pain points, needs, wishes and how they are different from the competition: {solution_benefits}
|
|
|
|
| 20 |
- They main marketing goal the service provider (user of the chatbot) wishes to pursue: {goal}
|
| 21 |
|
| 22 |
Include:
|
|
|
|
| 51 |
allow_flagging="never",
|
| 52 |
inputs=[
|
| 53 |
gr.Textbox(
|
| 54 |
+
label="Your Customer Profile",
|
| 55 |
placeholder="Describe your customer and what task or job they are trying to do. (e.g., My customer is a busy executive on the go. They have a pet whom they love dearly. They want to make sure that their pet is always taken care of even when they are busy or delayed at work.)",
|
| 56 |
lines=2,
|
| 57 |
),
|
| 58 |
gr.Textbox(
|
| 59 |
+
label="Your Customer Pain Points, Needs, Wishes, and Preferences ",
|
| 60 |
+
placeholder="Identify problems, pain points, needs, wishes and preferences of your customers. (e.g., When busy they are worried about their pets and feel guilty.)",
|
| 61 |
lines=2,
|
| 62 |
),
|
| 63 |
gr.Textbox(
|
| 64 |
+
label="Your Brand Name",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
placeholder="List your brand name and slogan (e.g., InstaPet, where you are always with your pet.) or request suggestions.",
|
| 66 |
lines=2,
|
| 67 |
),
|
| 68 |
gr.Textbox(
|
| 69 |
+
label="Benefits and Differentiators of your Solution",
|
| 70 |
+
placeholder="Enter key benefits your product or service offers. (e.g., You can always rely on our network of pet lovers to care for your pet while you are held up at work or other commitments! Our pet-care-providers love pets and will help you say hi to your pet via our secure network.) ",
|
| 71 |
lines=2,
|
| 72 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
gr.Textbox(
|
| 74 |
label="Marketing Goal",
|
| 75 |
placeholder="What is your main marketing goal (e.g., Boost awareness, website visits, conversion, etc.).",
|
|
|
|
| 77 |
),
|
| 78 |
],
|
| 79 |
outputs=gr.Textbox(label="Customized Digital Marketing Advice"),
|
| 80 |
+
title="Digital Marketer",
|
| 81 |
description="This app provides customized digital marketing strategy advice based on your input. Powered by OpenAI GPT 4, Design Thinking and domain expertise. Developed by wn. Note and Disclaimer: Even AI can make mistakes. Use with caution and at your own risk!",
|
| 82 |
)
|
| 83 |
|