GiantAnalytics commited on
Commit
5f86230
·
verified ·
1 Parent(s): f325734

made changes in prompt and final report

Browse files
Files changed (1) hide show
  1. phase3_agents.py +49 -51
phase3_agents.py CHANGED
@@ -35,9 +35,6 @@ def generate_ai_strategy(company_data: str, industry_trends: str, ai_use_cases:
35
 
36
  Generate a structured AI strategy including:
37
  1. Key AI Opportunities
38
- 2. Recommended AI Tools & Technologies
39
- 3. AI Implementation Roadmap
40
- 4. Future Scalability Plan
41
  """
42
  response = reasoning_agent.run(query)
43
  return response.content # Returns the generated AI strategy
@@ -46,30 +43,30 @@ def generate_ai_strategy(company_data: str, industry_trends: str, ai_use_cases:
46
  ##############################
47
  # 2️⃣ AI Integration Advisor #
48
  ##############################
49
- ai_integration_agent = Agent(
50
- name="AI Integration Advisor",
51
- model=OpenAIChat(id="gpt-4o"),
52
- description="Suggests AI implementation strategies based on industry insights and company operations.",
53
- show_tool_calls=True,
54
- markdown=True,
55
- )
56
-
57
- def suggest_ai_integration(company_data: str, ai_strategy: str) -> str:
58
- """Suggests a structured AI implementation plan."""
59
- query = f"""
60
- Based on the AI adoption strategy:
61
- - **Company Context:** {company_data}
62
- - **AI Strategy Summary:** {ai_strategy}
63
-
64
- Provide a structured AI implementation plan including:
65
- 1. Step-by-step AI adoption process
66
- 2. Required AI Technologies & Infrastructure
67
- 3. Workforce training & AI skill development
68
- 4. Risk considerations (data security, compliance, ethical AI)
69
- 5. Key performance indicators (KPIs) for AI success.
70
- """
71
- response = ai_integration_agent.run(query)
72
- return response.content # Returns AI integration plan
73
 
74
 
75
  ##############################
@@ -86,15 +83,17 @@ revenue_growth_agent = Agent(
86
  def identify_revenue_opportunities(company_data: str, ai_strategy: str) -> str:
87
  """Identifies AI-driven revenue generation opportunities for a business."""
88
  query = f"""
89
- You are an AI business analyst identifying AI-driven revenue growth opportunities for:
90
- - **Company Overview:** {company_data}
91
- - **AI Strategy:** {ai_strategy}
92
-
93
- Provide:
94
- 1. AI-based Monetization Strategies (new revenue streams)
95
- 2. Cost Reduction & Operational Efficiency
96
- 3. Market Expansion through AI-driven solutions
97
- 4. Competitive Positioning & Differentiation using AI.
 
 
98
  """
99
  response = revenue_growth_agent.run(query)
100
  return response.content # Returns revenue opportunities
@@ -119,11 +118,19 @@ def get_bni_membership_benefits(company_data: str) -> str:
119
  ##############################
120
  # 6️⃣ Report Generation Agent #
121
  ##############################
122
- def generate_report(company_name: str, company_data: str, industry_trends: str, ai_use_cases: str,
123
- ai_strategy: str, ai_integration: str, revenue_opportunities: str,
 
124
  bni_benefits: str) -> str:
125
  """
126
  Generates a structured AI strategy report in PDF format using `pdfkit`.
 
 
 
 
 
 
 
127
 
128
  Returns:
129
  str: Filename of the generated PDF.
@@ -134,25 +141,16 @@ def generate_report(company_name: str, company_data: str, industry_trends: str,
134
  ## 1️⃣ Company Overview
135
  {company_data}
136
 
137
- ## 2️⃣ Industry Trends
138
- {industry_trends}
139
-
140
- ## 3️⃣ AI Use Cases
141
- {ai_use_cases}
142
-
143
- ## 4️⃣ AI Adoption Strategy
144
  {ai_strategy}
145
 
146
- ## 5️⃣ AI Implementation Plan
147
- {ai_integration}
148
-
149
- ## 6️⃣ Revenue Growth Opportunities
150
  {revenue_opportunities}
151
 
152
- ## 7️⃣ How BNI Can Help Your Business
153
  {bni_benefits}
154
 
155
- ## 8️⃣ Recommended BNI Pearl Chapter Connections
156
 
157
  """
158
 
 
35
 
36
  Generate a structured AI strategy including:
37
  1. Key AI Opportunities
 
 
 
38
  """
39
  response = reasoning_agent.run(query)
40
  return response.content # Returns the generated AI strategy
 
43
  ##############################
44
  # 2️⃣ AI Integration Advisor #
45
  ##############################
46
+ # ai_integration_agent = Agent(
47
+ # name="AI Integration Advisor",
48
+ # model=OpenAIChat(id="gpt-4o"),
49
+ # description="Suggests AI implementation strategies based on industry insights and company operations.",
50
+ # show_tool_calls=True,
51
+ # markdown=True,
52
+ # )
53
+
54
+ # def suggest_ai_integration(company_data: str, ai_strategy: str) -> str:
55
+ # """Suggests a structured AI implementation plan."""
56
+ # query = f"""
57
+ # Based on the AI adoption strategy:
58
+ # - **Company Context:** {company_data}
59
+ # - **AI Strategy Summary:** {ai_strategy}
60
+
61
+ # Provide a structured AI implementation plan including:
62
+ # 1. Step-by-step AI adoption process
63
+ # 2. Required AI Technologies & Infrastructure
64
+ # 3. Workforce training & AI skill development
65
+ # 4. Risk considerations (data security, compliance, ethical AI)
66
+ # 5. Key performance indicators (KPIs) for AI success.
67
+ # """
68
+ # response = ai_integration_agent.run(query)
69
+ # return response.content # Returns AI integration plan
70
 
71
 
72
  ##############################
 
83
  def identify_revenue_opportunities(company_data: str, ai_strategy: str) -> str:
84
  """Identifies AI-driven revenue generation opportunities for a business."""
85
  query = f"""
86
+ You are an AI business analyst identifying practical AI-driven revenue growth opportunities for:
87
+
88
+ Company Overview: {company_data}
89
+ AI Strategy: {ai_strategy}
90
+ Provide a concise, single-paragraph summary covering:
91
+
92
+ AI-based Monetization Strategies How can the company create new revenue streams using AI?
93
+ Cost Reduction & Operational Efficiency – How can AI streamline operations and reduce costs?
94
+ Market Expansion How can AI open new markets or customer segments?
95
+ Competitive Positioning – How can AI help differentiate the company from competitors?
96
+ Keep it short, crisp, and actionable, avoiding complex or unnecessary details.
97
  """
98
  response = revenue_growth_agent.run(query)
99
  return response.content # Returns revenue opportunities
 
118
  ##############################
119
  # 6️⃣ Report Generation Agent #
120
  ##############################
121
+ def generate_report(company_name: str, company_data: str, #industry_trends: str, ai_use_cases: str,
122
+ ai_strategy: str,# ai_integration: str
123
+ revenue_opportunities: str,
124
  bni_benefits: str) -> str:
125
  """
126
  Generates a structured AI strategy report in PDF format using `pdfkit`.
127
+
128
+ ## AI Use Cases
129
+ #ai_use_cases
130
+ ## AI Implementation Plan
131
+ # {ai_integration
132
+ ## Industry Trends
133
+ # {industry_trends
134
 
135
  Returns:
136
  str: Filename of the generated PDF.
 
141
  ## 1️⃣ Company Overview
142
  {company_data}
143
 
144
+ ## 2️⃣ AI Adoption Strategy
 
 
 
 
 
 
145
  {ai_strategy}
146
 
147
+ ## 3️⃣ Revenue Growth Opportunities
 
 
 
148
  {revenue_opportunities}
149
 
150
+ ## 4️⃣ How BNI Can Help Your Business
151
  {bni_benefits}
152
 
153
+ ## 5️⃣ Recommended BNI Pearl Chapter Connections
154
 
155
  """
156