market_assistant/llm_analyze_acv_dist.py

38 lines
1.3 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import pandas as pd
from typing import List
from openpyxl import Workbook
from AgentProxy import AgentProxy
api_key = 'c6bbe7f48063a2c1'
api_secret = '5f8e7d3a97465cc099bf19bd1b70c266'
assistant_id = "66bb09a84673b57506fe7bbd"
agent = AgentProxy(assistant_id, api_key, api_secret)
prompt = f"""
任务:
请根据以下未成单商机预估ACV分布数据按照分析要点进行数据分析和解读并给出分析报告
要点:
1. 以销售专家的视角,分析上述数据,并给出洞见
2. 分析是否有可能完成销售目标,并给出原因和分析过程,如果有可以提升改进的点,也请给出
3. 分析上述构成是否存在潜在问题,如有,请给出原因和改进措施
4. 分析上述数据是否可以作为销售策略的参考,并给出原因和分析过程
请注意销售每个单子所要付出的effort是基本相同的
输入:
ACV金额分布
客户行业 <100万 100万-500万 >500万
Total 435,563,056.58 421,007,400.89 178,094,693.04
ACV单子数量分布
客户行业 <100万 100万-500万 >500万
Total 1311 249 22
销售目标人均任务ACV 500-600万
输出:
按照上述要点,给出分析报告
"""
print(agent.send_message(prompt))