Skip to content

Latest commit

 

History

History

how-to-archive-a-conversation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

How to archive a conversation example

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.

Prerequisites

To run this tutorial, you will need:

How to run the tutorial

  1. Clone or download this project.
  2. 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".
  3. Replace <APP_ID> and <SECRET_KEY> in index.html and server.js with the values found on the Settings page of your dashboard.
  4. Run npm install to install dependencies.
  5. Run npm start to create example users for the demo.