← All N8N workflows
AI & researchAirtableCodeHTTP RequestIfOpen Ai

OpenAI Assistant for Hubspot Chat

Configured with Airtable, HTTP Request, Open Ai, Switch, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Web / APIgetHubspotMessageHTTP RequestWeb / APIOpenAi Create ThreadHTTP RequestWeb / APIOpenAI RunHTTP RequestWeb / APIGet RunHTTP RequestWeb / APIGet Last MessageHTTP RequestWeb / APIHTTP RequestHTTP RequestRoutingCompleted, Action orInprogressSwitchWaitWaitWaitWaitWait1WaitWeb / APISubmit DataHTTP RequestRoutingSelect FunctionSwitchCodeCode1CodeWaitWait2WaitWeb / APIHTTP Request1HTTP RequestCodeCodeCodeWeb / APISubmit Data1HTTP RequestWaitWait3WaitWeb / APIrespondHubspotMessage1HTTP RequestRoutingIFIfData storeAirtableAirtableRoutingIF1IfData storecreateThreadAirtableWeb / APIOpenAI Run1HTTP RequestRoutingIF2IfAI & modelsOpenAIOpen AiTriggerWebhookWebhook

Node categories in this workflow

  • Web / API
  • Routing
  • Wait
  • Code
  • Data store
  • AI & models
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
getHubspotMessageWeb / APIHTTP RequestSee node parameters
OpenAi Create ThreadWeb / APIHTTP RequestPOST
OpenAI RunWeb / APIHTTP RequestPOST
Get RunWeb / APIHTTP RequestSee node parameters
Get Last MessageWeb / APIHTTP RequestSee node parameters
HTTP RequestWeb / APIHTTP RequestSee node parameters
Completed, Action or InprogressRoutingSwitchSee node parameters
WaitWaitWaitSee node parameters
Wait1WaitWaitSee node parameters
Submit DataWeb / APIHTTP RequestPOST
Select FunctionRoutingSwitchSee node parameters
Code1CodeCodeSee node parameters
Wait2WaitWaitSee node parameters
HTTP Request1Web / APIHTTP RequestSee node parameters
CodeCodeCodeSee node parameters
Submit Data1Web / APIHTTP RequestPOST
Wait3WaitWaitSee node parameters
respondHubspotMessage1Web / APIHTTP RequestPOST
IFRoutingIfSee node parameters
AirtableData storeAirtablesearch
IF1RoutingIfSee node parameters
createThreadData storeAirtablecreate
OpenAI Run1Web / APIHTTP RequestPOST
IF2RoutingIfSee node parameters
OpenAIAI & modelsOpen Aiassistant
WebhookTriggerWebhookSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • airtableTokenApi
  • hubspotAppToken
  • hubspotDeveloperApi
  • hubspotOAuth2Api
  • openAiApi

Workflow notes

Sticky Note1

Watch for new message on the chatbot. This can be triggered with n8n chat widget, hubspot or other chat services.

Sticky Note

Post assistant Message back to chat service, in this case Hubspot

Sticky Note2

Create a new Thread, save it to database and RUN

Sticky Note3

UPDATE USER FILTER FOR DUPLICATION

Sticky Note6

Search for Thread ID in a database.

This database is maintaing references between messaging service thread id and OpenI Thread ID.

Sticky Note7

POST a new message to existing thread.

Sticky Note8

Get Run Status: If still in progress, run again. If action needed go to respective action. If Completed, post message.

Sticky Note9

Run required actions based on Assistant answer and respond to Assistant with the function answer.

Each route is a function that you need to define inside your assistant configuration.

OpenAI Assistant for Hubspot Chat

OpenAI Assistant for Hubspot Chat

Purpose and structure

This folder contains the OpenAI Assistant for Hubspot Chat workflow. Its executable nodes use airtable, code, httpRequest, if, openAi, switch, wait, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/1990_Wait_Code_Automation_Webhook.json MIT; preserve source notices.

More in AI & research