🤖 首席鉴定人MCP工具
一个轻量级的MCP工具,使用ChatGPT通过BANT机制(预算、权限、需求、时间线)对潜在客户进行资格认证。并引导用户逐一输入线索信息。
🚀 特性
- 🧠 LLM驱动的潜在客户资格信息(BANT)提取和评分
- 💬 每回合一场,对话流畅
- 💾 与内存中的会话跟踪一样快,可以扩展到Redis
- 🔌 通过MCP与Dify/Cursor兼容(
sse)
⚙️ 设置
在.env文件中配置ChatGPT apikey。
OPENAI_API_KEY=1234启动NodeJS服务器,即MCP服务器。
npm install
npm start可选:使用ngrok公开您的服务器
ngrok http 3001Dify代理策略配置
{
"lead_qualification": {
"transport": "sse",
"url": "https://24c3-172-235-53-238.ngrok-free.app/sse",
"headers": {},
"timeout": 50,
"sse_read_timeout": 50
}
}🛠 Example
工具名称: lead-qualifier\ 输入:
{
"sessionId": "abc123",
"message": "We have a budget of $1000"
}输出:
{
content: [
{
type: "text",
text: "Are you the main person evaluating tools like this, or is there someone else involved in the decision?"
}
],
isError: false
}会议:
{
"qualificationMap": {
"budget": "$1000 per month",
"authority": "",
"need": "",
"timeline": ""
},
"scoreMap": {
"budget": 30,
"authority": 0,
"need": 0,
"timeline": 0
},
"totalScore": 30,
"nextField": "authority",
"lastPromptedField": "authority",
"lastPromptedQuestion": "Are you the main person evaluating tools like this, or is there someone else involved in the decision?"
}
