An automated chat acceptance tool for Tawk.to live chat platform. This bot uses browser automation powered by Puppeteer to automatically detect and accept incoming chat requests, ensuring faster response times and improved customer service efficiency.
TawkAutomaticTaker eliminates the need for manual chat acceptance by automatically monitoring your Tawk.to dashboard and instantly joining incoming chat requests. Perfect for businesses that want to ensure no customer is kept waiting.
- ✨ Automatic Chat Detection - Monitors dashboard for new incoming chats in real-time
- ⚡ Instant Acceptance - Joins chats automatically with configurable delay
- 🔐 Secure Authentication - Safely logs into your Tawk.to account
- 🎯 Headless Operation - Runs in the background without UI interference
- 📊 Desktop Notifications - Get notified when chats are accepted (via node-notifier)
- 🔄 Continuous Monitoring - Runs 24/7 without interruption
- Node.js (v14.0.0 or higher)
- A Tawk.to account with active chat widget
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/yourusername/TawkAutomaticTaker.git cd TawkAutomaticTaker -
Install dependencies
npm install
-
Configure your credentials
Create a
config.jsonfile in the root directory based onexample.config.json:{ "email": "your-tawk-email@example.com", "password": "your-tawk-password", "takeDelay": 1000 }Configuration Options:
email- Your Tawk.to account emailpassword- Your Tawk.to account passwordtakeDelay- Delay in milliseconds before accepting chat (default: 1000ms)
-
Run the bot
node index.js
The takeDelay parameter controls how long the bot waits after detecting a chat before accepting it. Adjust this based on your needs:
- Instant acceptance:
500-1000ms - Natural delay:
1000-2000ms - Conservative:
2000-3000ms
By default, the bot runs in headless mode (no visible browser window). To run in headed mode for debugging:
// In index.js, change:
headless: true,
// To:
headless: false,- Authentication - Logs into your Tawk.to dashboard using provided credentials
- Monitoring - Continuously watches for the "new chat" button in the dashboard
- Detection - Identifies incoming chat requests via XPath selectors
- Acceptance - Automatically clicks the join button after the configured delay
- Logging - Outputs status messages with colored console logs
Contributions are welcome! Here's how you can help:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is provided for educational and automation purposes. By using this bot:
- You agree to comply with Tawk.to's Terms of Service
- You acknowledge that automated interactions may violate platform policies
- You accept full responsibility for any consequences of using this tool
- The authors are not liable for any account suspensions or violations
Use at your own risk. Always review the terms of service of any platform before automating interactions.
If you encounter issues or have questions:
- Open an Issue
- Check existing issues for solutions
- Provide detailed error logs and configuration (without credentials)
Made with ❤️ for better customer service automation
Star ⭐ this repository if you find it useful!