Skip to content

Code to automatically send an email with the history of your chat with Watson Assistant

License

Notifications You must be signed in to change notification settings

bodonova/chat-history-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Chat history emailer

This repository contains the code to automatically send an email with the history of your chat with Watson Assistant. What it does is maintain a history of the messages sent to and from your Watson assistant. When you minimise the chat window or when you click on the email transcript button the user will be prompted to enter an email address where the history should be sent (if you cancel no email will be sent).

Deployment

  1. Place the code contained in the history_template.html file somewhere in the header part of your web site's page
  2. Modify the INTEGRATION_ID, REGION_ID and INSTANCE_ID variables to match your Watson Assistant instance
  3. Create an account on elasticmail.com if you don't already have one. Then insert the SMTP_HOST, SMTP_USERNAME, SMTP_PASSWORD and FROM_ADDRESS in the javascript code

Customisation

The code in this repository will generate an email transcript button and automatically send a transcript whenever the chat window is minimised. It is likely that you would like only one of these methods to invoke the email functionality. Therefore comment out the event haandler you don't want (there are comments in the code making it clear which line to comment out)

About

Code to automatically send an email with the history of your chat with Watson Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages