Useful links for this video: How to get started with our WhatsApp API: https://support.whapi.cloud/help-desk/getting-started/getting-started NodeJS bot source code from this video: https://github.com/Whapi-Cloud/nodejs-whatsapp-chatbot Detailed article about working with webhooks in WhatsApp API: https://support.whapi.cloud/help-desk/guides/webhooks-for-whatsapp-api Features of our Cloud API: https://whapi.cloud/features **************** Your WhatsApp bot and API gateway should communicate with each other so that when something changes on one system, the other system knows about it. For example, tracking changes in the status of messages such as 'sent', 'delivered' and 'read'. A specially configured webhook allows your server to be instantly aware of certain events. Depending on your settings, you can receive notifications about messages, their status, channel status and even missed calls. Whapi.Cloud provides the ability to customize a webhook for your bot. And you can customize several webhooks at once for different events and with different conditions. In this video, we will show how to run ngrok and demonstrate the key principles of testing your bot for WhatsApp locally. When developing your bot for WhatsApp, you'll want to test it locally before deploying it to the server. The easiest way to do this is to use tools like ngrok, which creates a secure tunnel to your localhost, allowing you to grant access to your local server from the Internet. 1. Download ngrok and unzip it. https://ngrok.com/ 2. Open your terminal and navigate to the folder where ngrok is stored. 3. Run ./ngrok http PORT_NUMBER, replacing PORT_NUMBER with the port where your Express server is running locally. 4. Now you should have a public URL that you can use as a webhook URL in your Whapi.Cloud dashboard.
Comments