Linkedin responder allows you to have an automatic answering machine for your received messages.
It is different from the tool offered by LinkedIn Premium, because it is completely customizable and not only an answering machine when you are on leave.
This is an example of how to list things you need to use the software and how to install them.
- Installing dependencies
npm install
- Rename .env.example to .env
- Put your email and password
- Optional : SIGNATURE allows you to add a message at the end
Fill in the answers.json file with the answers you want. This is a list with a priority order, put the highest as high as possible.
- matchs: Allows you to detect keywords.
- IsFirstMessage: Lets you know if this is his first message
- response: Put your answer here
- To jump on the line use \n because the json does not allow the multiline
- To add the name of the person use {name}
- The person's first name use {firstname}
- And the lastname use {lastname}
To start the responder run the command
npm run start
The recommended way is to use pm2
npm install pm2@latest -g
pm2 start linkedin-responder.js --name linkedin-responder
pm2 save
- If you have a Captcha at the opening of LinkedIn, launch in headless mode with
npm run devand once connected you can relaunch normal way.
If you do not have a graphical interface, connect you to your machine and copy the cookies.json file to the server.
- If you have an error at launch (Error: Failed to launch the browser process!)
Replace
const browser = await puppeteer.launch({ headless: !!!process.env.HEADLESS, defaultViewport: { width: 1000, height: 720 } });const browser = await puppeteer.launch({ headless: !!!process.env.HEADLESS, defaultViewport: { width: 1000, height: 720 }, args: ['--no-sandbox'] });
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue.
- 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
MIT License
Copyright (c) 2021 Othneil Drew
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.