WhatsApp channel integration via GLITCH (help)

Hi all,

To give you context, here is the tutorial we will follow in this post.

I installed the Glitch App and created my WhatsApp Channel. The issues are the following:

  • All the “WhatsApper” data is mocked. How do I set the “whatsapp_handler.js” to retrieve real data?

  • After 1 hour the app stop working beacuse the access token expires:
    image

and it begings to show a 401 error: ‘Invalid token: access token is invalid’. You can see the log below:

How can I update automatically the access token?

Thanks in advance!