Introduction
Infobip is a communication platform consolidates various communication channels into a single, seamless, and powerful platform.
We provide an easy-to-use integration for MoyaApp detailed below. If you run into any issues, or have questions or feedback, please let us know by sending a message to api-support@moya.app. We support the infobip chatbots using the open channel. For details on how this works please refer to Infobip Documentation
Setup steps
Get a Moya token and endpoint
Please contact us at api-support@moya.app with your details to get the account set up. We will provide you with a token, and optionally a number if you don't have an existing number to use.
Integrating Chatbot with Messaging API
Required Parameters
Infobip Webhook: Required for sending messages to infobip. The webhook should look like
https://xxxx.api.infobip.com/open-channel/1/messages/inbound
Destination UUID: This is required in order to connect to the correct chatbot in your infobip account. This is found on the settings tab of your open channel chatbot.
Infobip Token: The token is required to authenticate messages from our messaging API to your infobip chatbot.
Phone number: The phone number to listen on
moya_auth_token
: If you already have a messaging account with us and wish to plug Infobip into this please provide us with it. If not then we will generate one on the phone number specified above.
Infobip to MoyaApp setup
Once all the parameters above are ready please email them to api-support@moya.app
Interacting with Chatbot
In order to interact with and test the chatbot you can send a message to the API phone number. You can also test the chatbot by sending a curl request.
Example Request
curl -X 'POST' \
'https://messaging-bridge.moya.app/webhook/<bot phone number>' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"message":
{
"type":"text",
"from":"number to receive response",
"text":
{
"body":"chatbot wake word/phrase"
}
}
}'
Example Response
{
"message": "success"
}