I am trying to setup a WhatsApp bot using voiceflow, based on the tutorial found here. I've set this up before and everything has worked fine, but now I can't seem to configure the webhook.
The steps I'm performing are as follows:
- Clone the repo here
- Checked ngrok is installed (version 3.0.7), and its location (/usr/local/bin/ngrok)
- Created a .env file at the root with the VERIFY_TOKEN, PORT, and WHATSAPP_TOKEN
- Started the app from root with
npm start
- Started ngrok with
ngrok http 8000
(the same port as specified in my .env) - Checked the resulting address works in the browser
According to the documentation, I then configure the webhook by adding "/webhook" to the end of the URL, and adding the same VERIFY_TOKEN as specified in my .env file. This, however, gives me the following error:
The callback URL or verify token couldn't be validated. Please verify the provided information or try again later.
I've had a look around at similar questions here, but could not find what was wrong. I have also spoken to others who encountered similar issues over the last few weeks. This process was working up until recently (Nov 2022).