You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ChatConnect-Pro is an advanced integration project that seamlessly connects the WhatsApp platform with the OpenAI Chatbot, facilitating efficient communication and information exchange between the two platforms. Leveraging sophisticated automation tools and cutting-edge conversational AI capabilities, ChatConnect-Pro streamlines the interaction process without the need for OpenAI API keys, relying solely on the presence of a signed-in ChatGPT window.
6
13
7
-
### Requirements
14
+
### 📝 Requirements
8
15
9
16
Before deploying the ChatConnect-Pro project, ensure the following prerequisites are in place:
10
17
@@ -16,7 +23,100 @@ Before deploying the ChatConnect-Pro project, ensure the following prerequisites
16
23
-**Whatsmeow:** Install the Whatsmeow library, which acts as a bridge for communication with the WhatsApp platform.
17
24
-**SQLite:** Configure the SQLite database connector to support data storage and management within the project.
Run the following command in the same terminal/cmd
108
+
```
109
+
set CGO_ENABLED=1
110
+
```
111
+
112
+
> If you get the 'gcc' error, make sure you have installed the correct version of TDM-GCC
113
+
114
+
```go
115
+
go run main.go
116
+
```
117
+
> First time it will take 5-10 to run completely!
118
+
119
+
### 🌐 Browser Configuration
20
120
21
121
To configure the browser settings for the ChatConnect-Pro project, follow these instructions:
22
122
@@ -30,7 +130,7 @@ BROWSER = PLAY.firefox.launch_persistent_context(user_data_dir=PROFILE_DIR, head
30
130
31
131
- Additionally, you can change the headless mode by modifying the `headless=True` parameter. Setting it to `True` enables headless mode, which runs the browser without a user interface, making it ideal for automated tasks. Setting it to `False` activates the browser's graphical interface, allowing real-time visualization during script execution.
32
132
33
-
### Headless Mode
133
+
### 💻 Headless Mode
34
134
35
135
The headless mode enables the browser to operate without a graphical user interface, allowing it to run in the background. This mode is particularly useful for automated tasks and server-side operations where a visible browser window is not required. It significantly reduces resource consumption and enhances the efficiency of the automation process.
36
136
@@ -57,7 +157,7 @@ In this line, time.sleep(0.2) introduces a smaller delay of 0.2 seconds. This sh
57
157
The strategic use of time.sleep at these specific lines demonstrates the function's efficient and optimized approach to wait for and retrieve the latest non-empty message from the ChatGPT interface, enhancing the overall performance and resource management of the ChatConnect-Pro project.
58
158
59
159
60
-
### Usage
160
+
### ⚙️ Usage
61
161
62
162
To effectively utilize the ChatConnect-Pro integration project, follow these steps:
63
163
@@ -76,7 +176,7 @@ To effectively utilize the ChatConnect-Pro integration project, follow these ste
76
176
5.**Monitoring and Interaction:**
77
177
- Monitor the ongoing communication and interaction between the WhatsApp platform and the OpenAI Chatbot through the integrated communication channel. Leverage the powerful capabilities of ChatConnect-Pro to streamline communication processes and enhance the overall user experience for both WhatsApp users and the OpenAI Chatbot.
78
178
79
-
### Introduction
179
+
### Server.py Introduction
80
180
The `server.py` file is a Python script that facilitates communication between the OpenAI Chatbot and the WhatsApp platform. It establishes a connection between these two platforms, allowing seamless integration for the exchange of messages. The script utilizes the Flask web framework for creating the server, and the Playwright library for web automation tasks.
81
181
82
182
### Dependencies
@@ -163,4 +263,5 @@ The `multichat.py` script is designed to create a conversation between two insta
163
263
- The `metaprompt` is used to identify and replace specific prompts during the conversation, ensuring the messages remain coherent and meaningful.
164
264
165
265
### Usage
166
-
Ensure that the `server.py` script is already running on ports 5001 and 5002 before executing the `multichat.py` script. The script simulates a conversation between two instances of the OpenAI Chatbot, with each instance communicating with the other in an alternating manner. The `metaprompt` helps in maintaining the coherence and flow of the conversation.
266
+
Ensure that the `server.py` script is already running on ports 5001 and 5002 before executing the `multichat.py` script. The script simulates a conversation between two instances of the OpenAI Chatbot, with each instance communicating with the other in an alternating manner. The `metaprompt` helps in maintaining the coherence and flow of the conversation.
0 commit comments