Turn live chat into a fast, AI assisted support flow. New messages from HubSpot are sent to an AI assistant, actions run when needed, and clear answers are posted back to the same chat. Great for teams that want quicker replies and less manual work.
A webhook catches the chat event, then a HubSpot request pulls the full message. Airtable stores a link between the HubSpot thread and the matching AI thread. If a link is missing, a new AI thread is created and saved. If a link exists, the message is added to that thread. An OpenAI run starts and the flow checks status until it is done. If the assistant asks for an action, a switch routes the request to the right HTTP call or code step, sends the result back to the assistant, and resumes the run. When complete, the latest assistant message is fetched and posted back to the HubSpot conversation.
You will need HubSpot API access, an OpenAI API key, and an Airtable base for thread mapping. Set the assistant id and the OpenAI beta header. Expect faster first replies and fewer tickets for agents. Useful for live support, lead capture, and common tasks like order checks or booking updates, where the AI can call tools and return results to the customer.