RCS MaaP Simulator
Simulate an RCS Chatbot Platform and mobiles for testing chatbots
Create RCS MaaP Simulator
From the Simulators section of the RCS Business Messaging portal, click on the Create button on the top-right of the page.
The New RCS MaaP Chatbot Platform simulator is displayed.
Enter a name to identify the new simulator instance. Optionally enter a description of this simulator instance.
Click the Create button to start the creation of the instance.
The new simulator instance will be displayed in the list of simulators.
When the simulator creation has finished, a green indicator will show in the status column for that instance.
The HOST field identifies the simulator instance server hostname.
Get MaaP credentials
Credentials are for a MaaP connection that can be used directly by a chatbot or used by the RCS Chatbot Gateway. When requesting credentials, you can specify the webhook where the RCS MaaP Simulator will send MaaP events (e.g. messages from users, typing events, etc).
curl -v -k -H "Content-Type: application/json" https://<SIMULATOR-HOST/registerRCSMaap -d '{"webhook":"WEBHOOK"}'
SIMULATOR-HOST is the simulator hostname.
WEBHOOK is the webhook of the RCS Chatboot Gateway to where the simulator sends events.
Example response:
{"bot_id":"bot841421","client_id":"10830361015326957917","client_secret":"6136701143044829976"}
The following fields are returned:
bot_id: Bot ID used in MaaP requests to the RCS MaaP Simulator
client_id: Client ID for OAuth2
client_secret: Client secret for OAuth2
Update webhook for MaaP credentials
If you need to change the webhook associated with MaaP credentials, use the following:
curl -v -k -H "Content-Type: application/json" https://SIMULATOR-HOST/updateRCSMaap -d '{"bot_id":"BOTID","client_id":"CLIENTID","client_secret":"CLIENTSECRET","webhook":"https://GATEWAY-HOST/BOTID"}'
SIMULATOR-HOST is the simulator hostname.
CLIENTID and CLIENTSECRET are the OAuth2 credentials provided above.
GATEWAY-HOST is the gateway hostname.
BOT-ID is the bot ID use to identify the chatbot on the gateway.
Updated 8 months ago