In order to set up your Conversation API application, you typically need to carry out the following steps:
- Create a Nexmo application
- Rent and assign a Nexmo number
- Build a backend service
- Create a client-side application (possibly using the Client SDK)
This process is illustrated in the following diagram:
Rent and assign a Nexmo number to your Nexmo Application.
Build a backend service that will:
a. Set an
answer_urlwebhook to define the behavior when a new call is taking place.
event_urlwebhook for your Nexmo application's voice capability to receive the voice events that are dispatched by Voice API. This step is optional but recommended.
event_urlwebhook for your Nexmo application's RTC capability to receive the RTC events that are dispatched by Conversation API. This step is optional but recommended.
d. Create Users using the Conversation API.
e. Generate JWTs that are used to authorize your Users when performing Conversation API calls, or when logging in to the Client SDKs.
f. Use Conversation API or other Nexmo API capabilities as required. For example, to create conversations, and send events. You can also analyze your user's communication behavior and reach interesting conclusions on how to better engage with them. This step is optional but recommended.
Now you can create a client-side application and integrate the Nexmo Client SDK. Using the Client SDK your client app will be able to:
- Log in a User
- Create and join Conversations
- Start and answer phone and in-app calls
- Send in-app messages
For further information see the following documentation: