Welcome to the AI Person Mimicry Chat project! This application allows you to utilize your WhatsApp chat history to create an AI persona that mimics a specific participant from your conversations. Powered by local Large Language Models (LLMs) via Ollama, all your data stays on your machine, ensuring privacy.
- 🕵️ Persona Mimicry: Select your WhatsApp chat history file and select a participant for the AI to mimic.
- 🔒 Local Processing: All chat parsing happens locally on your machine and AI interactions using Ollama on your machine itself. BitWattr does not guarantee privacy as it depends on your machine and Ollama.
- 🚀 Easy Setup: Get started quickly with a pre-built executable or by running the Deno source code directly.
- ⚙️ Customizable LLM Settings: Adjust your Ollama host and LLM model directly from the application's settings page or by modifying
config.json
in downloaded releases. - 🌐 Web-Based Interface: Access the application easily through your web browser.
To use this application, you'll need to have Ollama installed and at least one LLM model downloaded (e.g., llama3.2
).
-
Download Ollama: Visit https://ollama.com/download and download the appropriate version for your operating system (Windows, macOS, Linux).
-
Install Ollama: Follow the installation instructions for your system.
-
Download an LLM Model: Open your terminal or command prompt and download a model. For example:
ollama run llama3.2
This command will download the model if you don't have it already. Ensure Ollama is running in the background when you use the application.
You can run the application locally in two ways:
- Download Release: Download the latest
.zip
file from the releases page. - Extract: Extract the contents of the zip file to your desired location.
- Run: Execute
launcher.exe
from the extracted folder. - Your default web browser should automatically open to
http://localhost:3000
. If not, paste the link into a browser. - Configure (Optional): You can change the Ollama API URL and model by editing the
config.json
file in the extracted folder.
-
Install Deno: If you don't have Deno installed, follow the instructions at https://deno.land/#installation.
-
Clone the Repository:
git clone [https://github.com/BitWattr/chat-clone-ai-local](https://github.com/BitWattr/chat-clone-ai-local) cd chat-clone-ai-local
-
Run the Application:
deno run --allow-run --allow-env --allow-net --allow-read launcher.ts
-
Your default web browser should automatically open to
http://localhost:3000
. If not, paste the link into a browser.
You can change the Ollama API URL and model by editing the config.json file in the root folder.
- Ollama Host URL: The address where your Ollama server is running (default is
http://localhost:11434
). - LLM Model Name: The name of the Large Language Model you want to use (default is
llama3.2
). This model must be downloaded in Ollama (see "Install Ollama & Download an LLM" above).
Important: Ensure Ollama is running and the specified LLM model is downloaded before attempting to use the chat functionality.
This AI-powered person mimicry application, developed by the BitWattr organization, functions locally on your machine with a strong emphasis on privacy.
Here's a breakdown of the process:
- 📤 Upload Chat History:
- You begin by uploading your WhatsApp chat history as a
.txt
file. A detailed tutorial on how to export this file from WhatsApp is available on the upload page. - Your locally running backend service receives this file.
- You begin by uploading your WhatsApp chat history as a
- 📝 Parse Chat Data:
- The uploaded chat content is immediately parsed in-memory using a custom Deno parser.
- This process extracts individual messages, their timestamps, and identifies all unique participants in the conversation.
- ⏳ Session Management:
- A unique, temporary session ID is generated for your parsed chat data.
- This session and its associated data are held in volatile memory only. They are never permanently stored or written to your disk.
- Your session automatically expires and all associated data is permanently deleted from memory after 30 minutes of inactivity.
- 👤 Persona Selection:
- Once your chat is processed, the application lists identified participants.
- You then select one of these participants to be the "persona" that the AI will mimic. The other participant in the chat will be considered "You" for the AI's responses.
- 💬 AI Interaction:
- When you send a message in the chat interface, it's added to the live, in-memory chat history.
- This updated history, along with a carefully crafted system prompt instructing the AI to act as your chosen persona, is sent to the Large Language Model (LLM) powered by Ollama, running directly on your local machine.
- ✨ Generating Responses:
- The local LLM analyzes the entire conversation history and generates a response that is natural, coherent, and crucially, in the distinct style and character of the selected persona.
- This AI-generated response is then displayed back in your chat interface.
In essence, this project leverages your private chat history to create a dynamic AI twin of a specific person, allowing it to generate responses that closely resemble how that person would communicate – all within the secure confines of your local environment.
- No Data Storage: We do not store any of your chat data or personal information on any external servers. All processing happens locally and in-memory on your machine.
- Temporary Sessions: Chat data is held temporarily in your computer's RAM for the duration of your active session and is automatically deleted after 30 minutes of inactivity.
- Open Source: The entire codebase is open-source and available on our GitHub repository, allowing for full transparency and inspection of how your data is handled.
For more details, please refer to the "Data Privacy Policy for Local Use" section on the application's upload page.
If you find this project useful, consider supporting us! Donate. Your contributions help us continue developing and improving privacy-focused AI tools.
For questions, issues, or contributions, please visit our GitHub repository and open an issue or pull request.
This service is also hosted at: https://chat-clone-ai.pages.dev/
Developed with ❤️ by BitWattr Organization