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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| getHubspotMessage | Web / API | HTTP Request | See node parameters |
| OpenAi Create Thread | Web / API | HTTP Request | POST |
| OpenAI Run | Web / API | HTTP Request | POST |
| Get Run | Web / API | HTTP Request | See node parameters |
| Get Last Message | Web / API | HTTP Request | See node parameters |
| HTTP Request | Web / API | HTTP Request | See node parameters |
| Completed, Action or Inprogress | Routing | Switch | See node parameters |
| Wait | Wait | Wait | See node parameters |
| Wait1 | Wait | Wait | See node parameters |
| Submit Data | Web / API | HTTP Request | POST |
| Select Function | Routing | Switch | See node parameters |
| Code1 | Code | Code | See node parameters |
| Wait2 | Wait | Wait | See node parameters |
| HTTP Request1 | Web / API | HTTP Request | See node parameters |
| Code | Code | Code | See node parameters |
| Submit Data1 | Web / API | HTTP Request | POST |
| Wait3 | Wait | Wait | See node parameters |
| respondHubspotMessage1 | Web / API | HTTP Request | POST |
| IF | Routing | If | See node parameters |
| Airtable | Data store | Airtable | search |
| IF1 | Routing | If | See node parameters |
| createThread | Data store | Airtable | create |
| OpenAI Run1 | Web / API | HTTP Request | POST |
| IF2 | Routing | If | See node parameters |
| OpenAI | AI & models | Open Ai | assistant |
| Webhook | Trigger | Webhook | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
airtableTokenApihubspotAppTokenhubspotDeveloperApihubspotOAuth2ApiopenAiApi
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.