This is an example project for TalkJS's tutorial on how to archive a conversation.
The project uses TalkJS's custom conversation actions to add a new "Archive conversation" option to the chat UI. It then listens for this custom action and sends the conversation ID to the backend server, which calls TalkJS's REST API to delete the conversation.
To run this tutorial, you will need:
- Clone or download this project.
- Go to the Chat UI tab of your TalkJS dashboard. In the Custom conversation actions section of the "default" role settings, add a new custom conversation action with a name of "archive" and a label of "Archive conversation".
- Replace
<APP_ID>
and<SECRET_KEY>
inindex.html
andserver.js
with the values found on the Settings page of your dashboard. - Run
npm install
to install dependencies. - Run
npm start
to create example users for the demo.