Skip to content

Vonage-Community/tutorial-messages-node-rcs_suggested_replies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Send and Receive RCS Suggested Replies with Node.js

A node application that allows you to send and receive Rich Communications Services suggested reply messages.

You can find full step-by-step instructions on the Vonage Developer Blog.

Prerequisites

  1. Node.js installed on your machine.
  2. ngrok installed for exposing your local server to the internet.
  3. Vonage Developer Account
  4. A registered RCS Business Messaging (RBM) Agent.
  5. A phone with RCS capabilities for testing.

Instructions

  1. Clone this repo
  2. Initialize your Node application and install dependencies:
npm init -y
npm install express dotenv @vonage/server-sdk
  1. Rename the .env.example file to .env, and add your VONAGE_APPLICATION_ID and RCS_SENDER_ID values.
  2. Add your private.key file in the root of the project directory.
  3. Start your Node server:
node index.js
  1. Create a tunnel using ngrok:
ngrok http 3000
  1. Test your app by sending an RCS suggested reply from the command line:
curl -X POST https://**YOUR_NGROK_URL***/send-rcs \
  -H "Content-Type: application/json" \
  -d '{
    "to": "**YOUR_RCS_TEST_NUMBER"
}'

About

A node application that allows you to send and receive Rich Communications Services suggested reply messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •