This sample RBM agent demonstrates how to use the RBM Node.js SDK to send and receive messages to an RCS-enabled device.
You need the following software installed on your development machine:
- Node.js version 8 or above
Set up the RBM agent:
-
Open the RBM Developer Console (https://business-communications.cloud.google.com/console/partner-console/) with your RBM Platform Google account and create a new RBM agent.
-
When the agent is available, click the agent's card.
-
In the left navigation, click Service account.
-
Click Create key, then click Create. Your browser downloads a service account key for your agent. You need this key to make RBM API calls as your agent.
-
Now add the JSON into
resouces/rbm-agent-service-account-credentials.json
.
-
In a terminal, navigate to this sample's root directory.
-
Run the following commands:
npm install
npm start
-
In a browser, navigate to http://localhost:7777/.
-
Invite your device as a tester.
-
After accepting the invite, initiate a chat with your device.