cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In addition to facilitating conversations on many existing communication channels, you can also use the Conversation API to send and receive messages through chat clients integrated with your own apps and sites. This is made possible through the Sinch Chat channel of the Conversation API.

 

The Sinch Chat channel is automatically configured for every Conversation API app. In order to access the channel, you can use the Sinch Customer Dashboard to create a Client ID, which must be included in the code of your chat client. The customer dashboard will also provide you with code snippets that help in the creation of your chat client.

 

Note: The snippets that the customer dashboard provides can be used as a template in the creation of your chat client. However, you will have to edit, update, and adapt the code for your specific solution.

 

You can use the Sinch Customer Dashboard to help create and configure a chat client for iOS, Android, or a web page. To create a chat client for use with the Sinch Chat channel of the Conversation API:

 

  1. Log in to the Sinch Customer Dashboard.

  2. Select Sinch Chat from the left menu and select Overview. The Sinch Chat - Overview page is displayed:

    chat_client_overview.png

    In the Configure your clients section, click NEW CLIENT.

    Note:
    If you have never accessed the Sinch Chat tab before, you may be directed to a getting started wizard. The getting started wizard follows the same steps described in this guide, and the information provided below is still relevant.

  3. The new client dialog box is displayed:

    new_client_dialog.png

    • Select the Project for which you'd like to configure your chat client.  Projects group various resources together, including Conversation API apps.

    • Enter a Display name for your chat client. Note that end-users will be able to see this name displayed in the chat client itself.

    • Select your Conversation API app. You can also create a new Conversation API app by clicking CREATE NEW.

      Note: When creating a new Conversation API app using the CREATE NEW button within with the Sinch Chat client creation context, you are only able to set the name of the app. If you want to update the app's configuration settings after completing the chat client creation process, navigate to the Conversation API tab on the let side of the dashboard. 

    Once you have populated each field, click CREATE:

    new_client_dialog_create.png

  4. A unique Client ID is generated and your new chat client will be added to the list of available clients on the Sinch Chat - Overview page. Additionally, a notification indicating that your new chat client has been created is displayed. Click GO TO CHAT CLIENT.

  5. Your chat client's page is displayed:

    chat_client_page.png

    Confirm that the Details for your chat client are accurate.

  6. Customize the look of your chat client in the Customization section:

    chat_client_customize.png

    • Modify the Brand color, Brand color light, and Brand color dark settings to change the coloration of your client. These fields only accept hex color codes.

    • To preview how the client will appear in iOS apps, Android apps, and on web pages, use the ANDROID, IOS, and WEB tabs. The preview image will update based on your selection.

    • To preview how the client will appear on devices set to light mode and devices set to dark mode, click on either LIGHT or DARK, respectively.

    • To reset your changes to default values, click RESET TO DEFAULT VALUES.

    Once you have completed making changes, click SAVE:

    chat_client_customize_save.png


  7. Once you have finished customizing your chat client, continue to the Installation script section. Template code snippets for adding your chat client to an iOS app, Android app, or website are displayed, with the Client ID already populated in the appropriate sections:

    chat_client_install_script.png

    Note: The code snippet's language is displayed in the upper left corner of the sample.

    • To display code for adding your chat client to an iOS app, click Add chat to iOS app.

    • To display code for adding your chat client to an Android app, click Add chat to Android app.

    • To display code for adding your chat client to a website, click Add chat to website.

 

With the appropriate snippet selected, you are ready to copy and paste the code into your preferred code editor. To copy the entire snippet at once, click the COPY button in the upper right corner of the sample.


Note that you will have to modify this code in order for it to function correctly for your specific solution. Additionally, ensure that you read through the comments in the code snippets; they provide useful instructions and tips for modifying and updating the code.

 

For more technical information on how to create and configure your chat client for use with Sinch Chat, see the Sinch Chat articles on our developer documentation site. You can also learn more about the Conversation API on our developer site.

Version history
Last update:
‎03-15-2023 08:51 AM
Updated by: