/vonage-whatsapp-bot

A WhatsApp Bot for Currency Conversion using Node & Nexmo

Primary LanguageJavaScript

Vonage WhatsApp Bot

This is a basic demo of WhatsApp Chatbot that performs currency conversion using Coinbase's API.

Topics

Node, Express, Vonage, WhatsApp

Prerequisites

  • A Nexmo account, sign up for a new account here if you don't have one already
  • EITHER a WhatsApp Business number OR you can try this app using the Messages API Sandbox - but only telephone numbers that you whitelist through the dashboard can be used. This makes the sandbox ideal for testing with a controlled group of numbers.
  • NodeJS and NPM

Set up the application to run locally

  1. Using the Messages Sandbox, configure the sandbox URL for Inbound Messages to point to the URL [APP URL]/webhooks/inbound-message.
  1. Clone this repo, and run npm install
  2. Copy the .env.example file to .env
  3. Add your configuration values to the .env file, this will include your Nexmo credentials.
  4. Run npm start in your terminal

Further Reading

Help

If you have any issues, Nexmo's developer support team is here to help you. You can find them on Slack