This example of the WhatsApp bot implementation touches in detail on the most frequently used functionality: send message, send file, create group, send message to WhatsApp Group. This will allow you to adapt WhatsApp API and source code to your tasks and needs, or take it as a basis for creating any other integration. In the source code of the bot you will find the following functionality:
- Send regular text message;
- Send media: image / file / video;
- Send contact (vCard);
- Send product;
- Create new group, send an invitation and send message to the group;
- Receive and reading incoming messages;
- Respond to an unfamiliar command, this could be an instruction or your welcome message;
You will be able to use our source code in your project, easily modifying and supplementing the script's functionality. Based on the code, you can create your chatbot or any integration. Easily integrate it into existing workflows, continuing to use WhatsApp as usual!
Step-by-step instructions on how to set up and run this chatbot: https://whapi.cloud/setting-up-chatbot-whatsapp-nodejs
We'll talk in detail about how to test the bot on a local, which servers to use, some tips and the main causes of popular failures.