Skip to main content

Assistant for Hubspot chat using OpenAi and Airtable

Workflow preview

Workflow preview
100%
Assistant for Hubspot chat using OpenAi and Airtable preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow will allow you to use OpenAI Assistant API together with a chatting platform. This version is configured to work with Hubspot, however, the Hubspot modules can be replaced by other pl...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.wait, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.airtable, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tiberiu S - Makeitfuture.com.

Original n8n.io source

1.1 Workflow description

Title
Assistant for Hubspot chat using OpenAi and Airtable
Workflow name
Assistant for Hubspot chat using OpenAi and Airtable

This workflow will allow you to use OpenAI Assistant API together with a chatting platform. This version is configured to work with Hubspot, however, the Hubspot modules can be replaced by other platform and it will work similarly.

Prerequisites:

  • Create a Hubspot Chat (Live chat available on free plan) or Chatflow (paid hubspot only) and configure it to send all replies toward an n8n webhook (you need to create a custom app for that. I will create a separate article on how to do it, meanwhile, feel free to message me if you need support.

Setup:

  • Create a OpenAI Assistant, define its functionality and functions
  • Update the Hubspot modules with the Hubspot API Key
  • Update the OpenAI modules with OpenAI API Key
  • Create an Airtable or any other database where you keep a reference between the thread id in Hubspot and Assistant API

If you need help deploying this solution don't hesitate to email me or schedule a call here.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - getHubspotMessage

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 2 - OpenAi Create Thread

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 3 - OpenAI Run

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 4 - Get Run

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 5 - Get Last Message

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 6 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 7 - Completed, Action or Inprogress

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 1

Block 8 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 9 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 10 - Submit Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 11 - Select Function

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 1

Block 12 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Wait2

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 14 - HTTP Request1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 15 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Submit Data1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 17 - Wait3

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 18 - respondHubspotMessage1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 19 - IF

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 20 - Airtable

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2

Block 21 - IF1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 22 - createThread

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2

Block 23 - OpenAI Run1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 24 - IF2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Assistant for Hubspot chat using OpenAi and Airtable
Complexity advanced
Nodes 34
Categories Support Chatbot, AI Chatbot
Author Tiberiu S - Makeitfuture.com
Published 23 Mar 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2189/2189.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Assistant for Hubspot chat using OpenAi and Airtable do?

This workflow will allow you to use OpenAI Assistant API together with a chatting platform. This version is configured to work with Hubspot, however, the Hubspot modules can be replaced by other pl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.