Welcome to the Personalized Sales Message Generator repository! This cutting-edge tool is designed to help sales professionals craft engaging, customized sales messages based on detailed company insights and LinkedIn user profiles. Harnessing the power of OpenAI’s GPT models and Langchain, this tool brings a new level of personalization and efficiency to your sales outreach.
Our Personalized Sales Message Generator takes your target company's website information and a LinkedIn user ID to generate compelling, tailored sales messages. Whether you're looking to win over potential clients or create meaningful connections, this tool provides you with the perfect message every time!
- AI-Powered Personalization: Leverage OpenAI’s GPT models to create messages that resonate with your audience.
- Dynamic Data Processing: Extract and analyze information from company websites for relevant insights.
- LinkedIn Integration: Utilize LinkedIn user IDs to craft messages that address your prospects’ unique needs and interests.
- Easy to Use: Streamlined setup and intuitive interface for seamless integration into your sales process.
This solution can be applied to any other business as well!
- Customer Provides URL: The sales automation company's customer provides a URL.
- Crawl Website: The sales automation company crawls the provided website to extract texts.
- Extract Texts from Website: The extracted texts are processed and summarized using a large language model (LLM).
- Store Summarized Data: The summarized data, including the URL, company name, summary, and top facts, is stored in the Facts DB.
- Calculate Embeddings: The extracted texts are chunked, and embeddings are calculated and stored in a Vector DB (RAG).
- Fetch LinkedIn Data: The sales automation company fetches data from the LinkedIn profile of the customer’s lead.
- Extract Facts from LinkedIn: Facts from the LinkedIn profile are extracted.
- Calculate Embeddings: Embeddings for these facts are calculated.
- Find Closest Chunks: The closest chunks from the Vector DB (RAG) are found using the embeddings.
- Generate Prompt: Using the facts and information about the person, a summary of the company, and relevant chunks, a prompt is generated.
- Evaluate Output: The generated message is evaluated to ensure it matches the template (mentions customer and their facts, connections, style, etc.).
- Send to Customer: The final personalized message is sent to the customer.
Create virtual environment:
python -m venv venv
Activate the virtual environment:
- On macOS and Linux:
source venv/bin/activate
- On Windows:
venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Install pre-commit hooks:
pre-commit install
Create a .env
file in the root directory and add your API keys and other secrets:
OPENAI_API_KEY=
LINKEDIN_LOGIN=
LINKEDIN_PASSWORD=
To run streamlit frontend for the app:
streamlit run app.py
You can now view the Streamlit app in your browser at local URL: http://localhost:8501