Home / Companies / Stream / Blog / Post Details
Content Deep Dive

Send Chat Transcripts to HubSpot

Blog post from Stream

Post Details
Company
Date Published
Author
Taylor G.
Word Count
2,816
Language
English
Hacker News Points
-
Summary

The tutorial provides a comprehensive guide on building a chat widget that integrates with the HubSpot CRM to manage user interactions and store chat transcripts using the Stream Chat client and its webhooks. It outlines the steps to configure accounts on Stream and HubSpot, set up necessary API keys, and establish a backend with Express JS to handle user registration, chat initiation, and message logging. The tutorial explains using webhooks to communicate events between the chat widget and HubSpot, detailing how to create or update contacts and append chat transcripts in the CRM. It also covers the implementation of ngrok for creating a publicly accessible URL for the webhook setup and highlights the use of Axios for interacting with HubSpot's API. Although the tutorial focuses primarily on backend mechanics, it includes essential frontend integration for starting chat sessions, offering a practical example of building a support or sales chat application while emphasizing error handling and dynamic user management.