/how-to-add-a-create-new-chat-button-in-talkjs

A working implementation for TalkJS Chat on how to enable users to start new conversations from the TalkJS conversation list header, allowing them to choose one or more participants and an optional subject for the chat.

Primary LanguageHTML

Article link

https://docs.google.com/document/d/1d4EZ2HTq6yj8POuDjnCnMjBbd_RZ-aYNQYRR3lh1eUo/edit?usp=sharing

Demo GIF

Runing this project

Follow these steps to run this project:

  1. Clone this repository

  2. Open create-new-chat.js and update the TalkJS App ID and the TalkJS REST API key:

        const appId = "<Add Your TalkJS APP ID Here>"
        const api_token = "<Add Your TalkJS REST API Token Here>"
  3. Start a Web Server in this directory and open the link in the browser.

    For example, you can use Python to create a quick web server:

    python -m http.server