OpenAI Assistant for Hubspot Chat

Watch for new message on the chatbot. This can be triggered with [n8n chat widget](https://www.npmjs.com/package/@n8n/chat), hubspot or other chat services.

Workflow Structure (26 nodes)
100%
Webhook
Webhook
If
IF2
Http Request
getHubspotMessage
If
IF
Airtable
Airtable
If
IF1
Http Request
OpenAi Create Thread
Langchain.open Ai
OpenAI
Airtable
createThread
Http Request
OpenAI Run
Http Request
OpenAI Run1
Http Request
Get Run
Switch
Completed, Action or Inprogress
Wait
Wait1
Http Request
Get Last Message
Switch
Select Function
Http Request
respondHubspotMessage1
Wait
Wait
Http Request
HTTP Request
Http Request
HTTP Request1
Code
Code
Code
Code1
Http Request
Submit Data1
Http Request
Submit Data
Wait
Wait3
Wait
Wait2
Node Types:
http
logic
default
code
action
trigger
Requires credentials

Prerequisites

Required Credentials (5)

Airtable Token

Used by: Airtable, createThread

Docs

Hubspot

Used by: getHubspotMessage, respondHubspotMessage1

Docs

Hubspot App Token

Used by: getHubspotMessage, respondHubspotMessage1

Docs

Hubspot Developer

Used by: getHubspotMessage, respondHubspotMessage1

Docs

OpenAI

Used by: OpenAi Create Thread, OpenAI Run +6 more

Docs

Multiple services required

This workflow needs 5 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~1 hour
Score: 86/100
Custom Code
Conditional Logic

When to Use This Workflow

Automated Reporting

Automatically collect and organize data into spreadsheets for analysis.

Spend less time on data entry and more time on insights.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "C2pB17EpXAJwOcst",
  "meta": {
    "instanceId": "ba379c9b99d35340c90344105e7e5d06ca0de3e88926f0384d2c23099dad1937"
  },
  "name": "OpenAI Assistant for Hubspot Chat",
  "tags": [],
  "nodes": [
    {
      "id": "7f11a684-911b-4fbc-ba1b-a8e7bce8e914",
      "name": "getHubspotMessage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        580
      ],
      "parameters": {
        "url": "=https://api.hubapi.com/conversations/v3/conversations/threads/{{ $json[\"body\"][0][\"objectId\"] }}/messages/{{ $json[\"body\"][0][\"messageId\"] }}",
        "options": {},
        "authentication": "predefinedCredentialType",
...

Workflow Details

Nodes
34
Trigger
Webhook
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

AI Agent for project management and meetings with Airtable and Fireflies

Replace API key for Fireflies

Agent
Lmchatopenai
Toolworkflow
Gmailtool
18 nodesEvent
Curated

Webhook Workflow

Automated workflow: Webhook Workflow. This workflow integrates 8 different services: webhook, stickyNote, filter, airtab...

Webhook
Airtable
Google-sheets
Notion
14 nodesWebhook

Selenium Ultimate Scraper Workflow

N8N Ultimate Scraper - Workflow This workflow's objective is to collect data from any website page, whether it requires...

Lmchatopenai
Http-request
Informationextractor
Openai
63 nodesWebhook
Curated

Handling Job Application Submissions with AI and n8n Forms

1. Application Form To Upload CV [Learn more the Form Trigger node](https://docs.n8n.io/integrations/builtin/core-nodes/...

Lmchatopenai
Outputparserstructured
Form
Airtable
23 nodesEvent
Curated

AI Agent to chat with Airtable and analyze data

Replace Mapbox public key - <yourpublickey> in code

Lmchatopenai
Agent
Memorybufferwindow
Chat
41 nodesEvent
Curated

Email Subscription Service with n8n Forms, Airtable and AI

4. Using Subworkflows to run executions concurrently This configuration is desired when sequential execution is slow and...

Schedule
Airtable
Gmail
Executeworkflow
32 nodesScheduled
Curated