Look up a customer's full chat history mid conversation
Your agent types an email and sees every past conversation, rating and tag next to the CRM record, then files notes without ever leaving the chat.
Build me an internal lookup app my support agents open in the middle of a live conversation, so nobody has to answer a returning customer with no idea what we told them last time. It is a read and prep surface rather than an automation: nothing gets filed anywhere unless the agent clicks.
The whole app hangs off one search box at the top. The agent types an email address or a name. Resolve the customer profile with LiveChat Get Customer, and find the matching CRM contact with HubSpot Search Contacts by email, falling back to a name search or List Contacts when the email does not match. If there is no HubSpot match at all, say so plainly and still show the chat history.
The main panel is the chat history. Use LiveChat List Archives filtered to that customer to pull every past conversation. This matters: List Archives pages through results with next_page_id, so the handler must follow that cursor until it is exhausted and return the complete history instead of only the first batch. A customer with a long history is exactly the one the agent needs the full picture on. Show one row per past chat, newest first, with the date, the agent who handled it, the rating the customer left, and the tags on the thread. Each row expands inline to the full transcript, loaded on demand with LiveChat Get Chat, using List Threads where a chat has more than one thread. Do not load every transcript up front.
A side panel shows the HubSpot record next to that history. Pull the contact detail with Get Contact, and use List Deals narrowed to the deals associated with that contact to show open deals and recently closed ones with stage, amount and close date. The point of the layout is that the agent reads the support history and the commercial context in one glance.
Three actions run from the same screen without leaving the app. A File this conversation form takes the agent's summary of the chat they are in right now and writes it onto the contact with HubSpot Create Note. A Raise a follow up form with subject, due date and owner creates a task against the contact with HubSpot Create Task. A tag control applies a label to the current live thread with LiveChat Tag Thread.
Add a Brief me on this customer button that kicks off a background agent. It reads every past transcript for that customer, using List Archives and Get Chat, alongside the HubSpot contact and their deals, then writes a short history brief back into the app covering three things: what they have contacted us about before, what is still unresolved, and what deal is open. Render the brief in the app with an Approve and file button, and only on approval file it onto the contact as a HubSpot note with Create Note. Never file it automatically. Show progress while the agent runs so the person knows it is working, since they have a customer waiting.
Show a clear banner across the top when the customer has three or more prior chats, or any previous chat with a bad rating, and state which of the two triggered it. Those are the conversations worth handling carefully and the agent should see that before they read anything else.
Keep the app fast and keyboard friendly, because it is used with a customer waiting on a reply. Make recent lookups easy to return to so an agent handling several chats at once can flip between people.
What does this prompt do?
- Type a customer's email or name and get their whole live chat history in one list: every past conversation with its date, the agent who handled it, the rating it was given and the tags on it. Any transcript opens inline when you want to read it.
- Right beside it sits their CRM record, with contact details plus open and recently closed deals, so you know whether you are talking to a prospect in the middle of a deal or a long standing customer.
- File the conversation you are in right now as a note on their record, raise a follow up task, and tag the live thread, all from the same screen.
- Hit Brief me on this customer and an assistant reads every past transcript alongside the CRM record, then writes a short history brief covering what they have raised before, what is still unresolved and what deal is open. Approve it and it files as a note. A banner warns you when someone has three or more past chats or left a bad rating before.
What do I need to use this?
- A LiveChat account with access to your chat archives
- A HubSpot login with permission to view contacts and deals and to add notes and tasks
- Customer email addresses recorded in both tools, so the app can match a past chat to the right CRM record
How can I customize it?
- Change the banner rule: raise or lower the number of prior chats that counts as a repeat customer, or only flag a bad rating from the last few months
- Choose which contact fields and deal details appear on the record panel, and how far back recently closed deals go
- Adjust what the brief covers and whether it always waits for approval before filing
- Set the list of tags your team can apply to a live thread
FAQs
Does this change anything in LiveChat or HubSpot on its own?
What if the customer is not in our CRM yet?
Will it show everything for someone who has chatted with us dozens of times?
Can agents use this while a chat is still open?
Will this work on a free HubSpot account?
Related templates
Every couple of hours we find the chats your team never answered, email those visitors a real reply, and hand the sensitive ones to a support lead.
Twice a day we spot the people clicking your pricing and demo pages, create a follow-up task for their owner, and post a ranked recap to Slack.
Build every text campaign in one screen: check who is actually reachable, see a realistic send plan, then watch delivery land row by row.
Score last week's finished live chats against one rubric, let an AI grader draft the notes with quotes, and send coaching straight to the agent.
See the exact hours your chat queue backs up and customers give up waiting, then plan next week's shifts before it happens again.
Every proposal you have ever submitted in one searchable archive, with the closest past answers lined up against each question in a new RFP.
Stop making returning customers explain themselves again.
Give your agents every past conversation and the CRM record on one screen, before they type a single reply.