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.
- Node.js installed on your machine.
- ngrok installed for exposing your local server to the internet.
- Vonage Developer Account
- A registered RCS Business Messaging (RBM) Agent.
- A phone with RCS capabilities for testing.
- Clone this repo
- Initialize your Node application and install dependencies:
npm init -y
npm install express dotenv @vonage/server-sdk
- Rename the
.env.example
file to.env
, and add yourVONAGE_APPLICATION_ID
andRCS_SENDER_ID
values. - Add your
private.key
file in the root of the project directory. - Start your Node server:
node index.js
- Create a tunnel using ngrok:
ngrok http 3000
- 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"
}'