Coder Social home page Coder Social logo

salescopilot's Introduction

SalesCopilot ๐Ÿš€๐Ÿ’ธ

SalesCopilot is an AI-powered sales assistant that provides real-time transcription, live chat, automatic unprompted advice, integration with a custom knowledge base, and the ability to save and load past conversations.

Built with Deep Lake, LangChain, and modified versions of ecoute and Speech Recognition. All open-source, check them out!

Features

  • Real-Time Transcription: Transcribes your conversations with in real-time, maintaining a record in the 'Transcript' tab for review and analysis.
  • Live Chat: Ask questions, get advice, and more with a chat bot that reads and understands the live transcript.
  • Unprompted Advice: Potential objections or questions the customer has are detected, and advice on how to respond is offered within seconds.
  • Knowledge Base Integration: Uses Deep Lake as a vector database to store and retrieve information, allowing your chosen sales guidelines to be queried, with the most relevant being used to give advice.
  • Save and Load Transcripts: Save transcripts, then load them up later and have it summarized, ask for a performance evaluation, and more.

Demo (sound on)

demo_vid.mp4

Setup ๐Ÿ”ง

  • As of now only Windows is supported. A separate branch supporting macOS is coming soon!
  • Ensure you have FFmpeg installed. If you don't, here's a guide.
  1. Clone the repository and navigate to the project directory
git clone https://github.com/e-johnstonn/SalesCopilot.git
cd SalesCopilot       
  1. Install required packages: pip install -r requirements.txt
  2. Set your OpenAI API key in keys.env
  3. By default, audio will be transcribed using the Whisper API. If you have an NVIDIA GPU and want to transcribe locally, set USE_API to False in AudioTranscriber.py, and install torch with CUDA

Running SalesCopilot

To start the program, python main.py in the project directory.

Enter a name for the person you're speaking to, click Start, and the app will load. In the "Sales Assistant" tab, you can chat with the GPT 3.5 powered Sales Assistant. This is also where advice regarding detected objections will appear.

When the conversation is finished, you can click "Save and Quit" in the "Transcript" tab to save a copy of the transcript. If you restart the app, you can now load this transcript. Ask SalesCopilot to summarize it, evaluate your performance, or any other questions related to the transcript.

Using your own knowledge base

By default, the app uses this as a knowledge base, located in the data folder. To use your own knowledge base:

  1. Put your knowledge base in the data folder in the form of a text file
  2. Update the path in chat_utils.py to the path of your knowledge base
  3. I recommend adjusting the split_data method in deep_lake_utils.py to split your document effectively - if it's unstructured use something LangChain's RecursiveCharacterSplitter

How the knowledge base works:

diagram

License

MIT License

๐Ÿค Contributing

Contributions are welcome!

salescopilot's People

Contributors

e-johnstonn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

salescopilot's Issues

Transcription Failed Error

image

I get transcription failed error. I have installed the requirements.txt file and entered my API key both with and without the <>'s to test.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.