Home

WhatsApp ChatGPT Bot

WhatsApp ChatGPT Bot

WhatsApp ChatGPT Bot

Messages

1.0.1

Vonage

NodeJS

Create a WhatsApp ChatGPT Bot using the Vonage Messages API.

The Vonage Messages API allows you to send and in some cases receive messages over SMS, MMS, Facebook Messenger, Viber, and WhatsApp. In this project, using the OpenAI API, you will create an WhatsApp chatbot that will send and receive messages with ChatGPT. This project uses Vonage Cloud Runtime, removing the need to manage servers and hosting. Visit the developer portal to view documentation on how it works.

Steps

  1. To start, ensure you are signed into your Vonage developer account. If you do not have an account yet, you can create one here.

  2. To immediately deploy the application, go to the ‘Deploy Code’ tab. Enter a name for your application in ‘Instance Name’, select your AWS region, and click the ‘Deploy Code’ button.

    1. You will see a pop up prompting you to choose a region, enter a workspace name and to assign an external account.
    2. Click ‘Assign account’ to select your WhatApp number from the list.
    3. The popup will also ask for your OpenAI API Key. You can get one from the OpenAI API Dashboard. Ensure that your account has API usage available, then continue to create the application.
    4. You will then see your new application under ‘Deployed Instances’. Click ‘Launch’ to run the application.
  3. To view the code and edit the application, go to ‘Get Code’ and click ‘Create a new development environment’.

    1. You will see a pop up prompting you to choose a region, enter a workspace name and to assign an external account.
    2. Click ‘Assign account’ to select your WhatApp number from the list.
    3. The popup will also ask for your OpenAI API Key. You can get one from the OpenAI API Dashboard. Ensure that your account has API usage available, then continue to launch the workspace.
    4. When the workspace opens, you will see a README detailing how to edit, debug, run and deploy the project.
    5. Once your project is deployed, you can use the URL in the terminal output to access your application.

Created

09 January 2024

Updated

14 June 2024

Releases

2

market b3e562440e0d14db3734b5256f0df26d94ea8b24