Skip to content
Demonstration - not client work

Support chatbot that answers from help docs and hands off

A customer support agent for a made-up online shop. It answers policy questions from 8 help-center documents with sources, looks up orders, checks refund eligibility, and hands real cases to a person.

  • LangGraph
  • OpenAI
  • Chroma
  • Python
  • n8n
  • HubSpot
Related servicesAI agents
A support chat for a made-up shop answering an order question next to the agent's tool-call trace for a refund check.
help documents
8
passages in total
43
question test set
30
answers correct
100%
The agent flow diagram beside the chat: search help docs, look up order, check refund, open ticket, book callback.

Problem

A support desk answers the same policy questions all day, while the cases that need a person (a refund outside the window, an upset customer) wait in the same queue.

What was built

A LangGraph agent with retrieval over 8 help documents, tools for order lookup, refund checks, tickets and callbacks, validated structured answers, French and Arabic support, a human handoff into HubSpot, and a 30-question test set.

What it does

Tidewater Supply Co. is a made-up outdoor-gear shop. Its support assistant handles four kinds of request.

Policy questions. The agent searches 8 help-center documents (43 passages in total), answers from what it finds, and shows which passages it used. The image shows that search: each dot is a passage, and the lines mark the ones retrieved for the question.

Order questions. It looks up an order through the shop's API. An order number in the wrong format is rejected by validation before any lookup happens.

Refund checks. It checks an order against the refund rules. In the test run, an order outside the 30-day return window was found not eligible, and the agent opened a support ticket.

Handoff. When a case needs a person, the agent hands it off with the transcript. The handoff opens a ticket and creates a HubSpot contact with the conversation attached as a note.

A later version added French and Arabic. The agent detects the language of each message and answers in it.

What was built

  • A LangGraph agent with a fixed budget of tool rounds, so it cannot loop forever.
  • Retrieval over 8 help documents stored in a Chroma vector database.
  • Tools: help search, order lookup, refund eligibility, ticket creation, callback booking, and human handoff.
  • Structured answers checked against a schema, and validated tool inputs.
  • A chat page with a trace panel that shows each step the agent took.
  • A 30-question test set: 23 in English, 4 in French and 3 in Arabic.

How it was tested

The 30-question test set scores each answer on four things. On the recorded run:

  • Answers correct: 100%.
  • Right tool chosen: 93.3%. Two questions used the wrong tool. One opened a warranty ticket for a zipper refund, and one answered from an order lookup when it should have checked the policy.
  • Handoff decisions correct: 100%.
  • Reply language correct: 100%.
  • 24 of the 30 conversations were resolved by the agent and 6 were handed to a person.

Five scripted demo conversations cost about two cents in model usage in total. One of the scripted demo questions failed on its first run because the agent wrote a price as "$189.0". It passed after the fix. A live handoff test created the ticket and the HubSpot contact, and a read-back confirmed the transcript note was attached.

What it does not do

The shop, its orders and its customers are made up, and the shop API is a mock. It is not deployed to production.

  • It is not deployed to production. The shop, orders and customers are sample data.
  • The shop API is a mock. No real store's order system is connected.
  • The handoff workflow in n8n is run by hand in the demo and is otherwise switched off.
  • Tickets go to a demo issue tracker. Zendesk, Freshdesk and Intercom are described as swaps but are not built.
  • Voice is not built.
  • The two tool-choice misses above are recorded as known misses.
Next demoCRM side panel agent for HubSpot and GoHighLevel

More demos

The chat giving a sample estimate with base rate, total and deposit for a wedding booking.

AI quote desk in GoHighLevel Conversation AI

A website chat assistant for a fictional limo company. It answers questions from a 64-entry knowledge base, collects the nine details a coordinator needs for a quote, and books a call.

A HubSpot contact record showing the note 'AI agent draft reply (not sent)' and a deal moved to the Emergency stage.

n8n AI agent that works each new HubSpot deal

An n8n AI agent that picks up each new deal in a HubSpot pipeline, reads the client's history, saves a reply as a Gmail draft, logs it on the timeline, sets the stage and creates a follow-up task.

Start with a free automation audit

Email the founder to arrange a free 45-minute video call. We map your workflow, tools and bottlenecks, and you get a prioritized roadmap.

Michael replies within two business days.