- See requirements.txt file
- The API key is stored in
COHERE_API_KEY.json. The file has this format:- { "API_KEY": "xxxxxxxx" }
- A virtual environment cohere_demo was created for this project.
- Use
cohere_demo/bin/uvicorn ChatApp.main:app --reloadto run the application. - In your browser, go to:
127.0.0.1:8000/customer-chatfor the customer view and127.0.0.1:8000/customer-supportfor the customer support view
- Enter a conversation between a customer and customer support.
- When either the customer or customer support leaves the conversation, a pdf file is automatically created in
ChatApp/call_logs. This contains:- The date and time that the chat took place.
- The customer support worker ID: This is fixed for now but can be whichever user signed into the system.
- The customer ID. This is fixed for now but can integrate with business systems to get customer ID based on Order ID for example.
- The duration of the chat
- The chat sentiment [positive|negative|neutral] with associated confidence score. (This is determined using sentiment analysis and co:here Classify)
- The chat summary (This is created using co:here Generate)
- A full log of the chat for auditing purposes.