Repository files navigation # Voice Style Bot (Solar Industries Internship)
## Overview
A simple FastAPI-based NLP bot that accepts text transcripts, classifies intent, extracts entities, and calls a mock CRM.
## Setup
1. Install dependencies:
pip install fastapi uvicorn requests pytest
2. Run Mock CRM:
uvicorn mock_crm:app --port 8001
3. Run Bot:
uvicorn app:app --port 8000
## Example
curl -X POST http://localhost:8000/bot/handle -H "Content-Type: application/json" -d "{"transcript": "Add a new lead Rohan Sharma from Gurgaon phone 9876543210"}"
## Output Example
{
"intent": "LEAD_CREATE",
"entities": {"name": "Rohan Sharma", "phone": "9876543210", "city": "Gurgaon"},
"crm_call": {"endpoint": "...", "method": "POST", "status_code": 200},
"result": {"lead_id": "...", "status": "NEW"}
}# voice-style-bot
About
Voice-style bot: intent + entity extraction + mock CRM integration
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.