NAV

Introduction

Welcome to the documentation for creating Voiceflow bots to use with MoyaApp Messenger API. If you run into any issues, or have questions or feedback, please let us know by sending a message to api-support@moya.app.

Creating a bot with Voiceflow

Please refer to the Voiceflow documentation for examples of how to create a chat bot using Voiceflow.

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

Voiceflow 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"
}