File size: 6,763 Bytes
fa8f1a7
8bab08d
 
 
 
fa8f1a7
8bab08d
fa8f1a7
 
8bab08d
 
 
 
 
 
 
 
 
 
 
 
 
fa8f1a7
 
8bab08d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
title: CX AI Agent - B2B Sales Intelligence
emoji: πŸ€–
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
license: mit
short_description: AI-powered B2B sales automation with MCP tools
tags:
- mcp-in-action-track-enterprise
- mcp
- autonomous-agent
- b2b-sales
- prospect-discovery
- email-automation
- gradio
- huggingface
- qwen
- sales-intelligence
---

# πŸ€– CX AI Agent - B2B Sales Intelligence Platform

[![Enterprise Application](https://img.shields.io/badge/MCP-Enterprise%20Track-blue)](https://github.com)
[![Powered by AI](https://img.shields.io/badge/Powered%20by-HuggingFace-yellow)](https://huggingface.co)
[![Gradio](https://img.shields.io/badge/Built%20with-Gradio-orange)](https://gradio.app)

> **πŸ† MCP in Action Track - Enterprise Applications**
>
> Tag: `mcp-in-action-track-enterprise`

## πŸ“Ή Overview

An AI-powered B2B sales automation platform that helps sales teams discover prospects, find decision-makers, and draft personalized outreach emailsβ€”all powered by autonomous AI agents using the **Model Context Protocol (MCP)**.

## 🎯 Key Features

| Feature | Description |
|---------|-------------|
| **πŸ” AI Discovery** | Automatically find and research prospect companies matching your ideal customer profile |
| **πŸ‘₯ Contact Finder** | Locate decision-makers (CEOs, VPs, Founders) with verified email addresses |
| **βœ‰οΈ Email Drafting** | Generate personalized cold outreach emails based on company research |
| **πŸ’¬ AI Chat** | Interactive assistant for pipeline management and real-time research |
| **πŸ‘€ Prospect Chat** | Demo of prospect-facing AI with handoff & escalation capabilities |
| **πŸ“Š Dashboard** | Real-time pipeline metrics and progress tracking |

## πŸš€ Quick Start

1. **Setup**: Enter your HuggingFace token and company name
2. **Discover**: Let AI find prospects matching your profile
3. **Review**: Check discovered companies and contacts
4. **Engage**: Use AI-drafted emails for outreach

## πŸ—οΈ Architecture

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      CX AI Agent                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚   Gradio   β”‚  β”‚  Autonomousβ”‚  β”‚    MCP     β”‚         β”‚
β”‚  β”‚     UI     │──│    Agent   │──│   Servers  β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”‚         β”‚                β”‚                β”‚             β”‚
β”‚         β–Ό                β–Ό                β–Ό             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚  β”‚              MCP Tool Definitions           β”‚        β”‚
β”‚  β”‚  β€’ Search (Web, News)                       β”‚        β”‚
β”‚  β”‚  β€’ Store (Prospects, Contacts, Facts)       β”‚        β”‚
β”‚  β”‚  β€’ Email (Send, Thread Management)          β”‚        β”‚
β”‚  β”‚  β€’ Calendar (Meeting Slots, Invites)        β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
└─────────────────────────────────────────────_β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

## πŸ”§ MCP Tools Available

### Search MCP Server
- `search_web` - Search the web for company information
- `search_news` - Find recent news about companies

### Store MCP Server
- `save_prospect` / `get_prospect` / `list_prospects` - Manage prospects
- `save_company` / `get_company` - Store company data
- `save_contact` / `list_contacts_by_domain` - Manage contacts
- `discover_prospects_with_contacts` - Full discovery pipeline
- `find_verified_contacts` - Find decision-makers

### Email MCP Server
- `send_email` - Send outreach emails
- `get_email_thread` - Retrieve conversation history

### Calendar MCP Server
- `suggest_meeting_slots` - Generate available times
- `generate_calendar_invite` - Create .ics files

## 🎭 Prospect Chat Demo

The **Prospect Chat Demo** showcases how prospects can interact with your company's AI:

- **Lead Qualification**: AI asks qualifying questions to understand prospect needs
- **Handoff Packets**: Generate comprehensive summaries for human sales reps
- **Escalation Flows**: Automatically escalate complex inquiries to humans
- **Meeting Scheduling**: Integrate with calendar for instant booking

## πŸ“Š Technology Stack

| Component | Technology |
|-----------|------------|
| **Frontend** | Gradio 5.x |
| **AI Model** | Qwen2.5-72B / Qwen3-32B via HuggingFace |
| **Protocol** | Model Context Protocol (MCP) |
| **Search** | Serper API |
| **Language** | Python 3.8+ |

## πŸ”‘ Environment Variables

Set these in your Space Secrets:

```
HF_TOKEN=your_huggingface_token_here
SERPER_API_KEY=your_serper_api_key_here  # Optional
```

## πŸ“ Project Structure

```
cx-ai-agent/
β”œβ”€β”€ app.py                    # Main Gradio application
β”œβ”€β”€ requirements.txt          # Python dependencies
β”œβ”€β”€ README.md                 # This file
β”œβ”€β”€ app/
β”‚   └── schema.py            # Pydantic data models
└── mcp/
    β”œβ”€β”€ agents/              # Autonomous AI agents
    β”œβ”€β”€ servers/             # MCP server implementations
    └── tools/
        └── definitions.py   # MCP tool definitions
```

## πŸ“ License

This project is open source and available under the MIT License.

## πŸ™ Acknowledgments

- **Anthropic** - Model Context Protocol specification
- **HuggingFace** - AI model hosting and inference
- **Gradio** - UI framework
- **Serper** - Web search API

---

## πŸ‘¨β€πŸ’» Developer

**Syed Muzakkir Hussain**

[![HuggingFace](https://img.shields.io/badge/HuggingFace-muzakkirhussain011-yellow?logo=huggingface)](https://huggingface.co/muzakkirhussain011)

---

<div align="center">

**Built with ❀️ by [Syed Muzakkir Hussain](https://huggingface.co/muzakkirhussain011) for the Gradio Agents & MCP Hackathon 2025**

`mcp-in-action-track-enterprise`

</div>