# Assistant for HubSpot chat with OpenAI and Airtable: n8n workflow

> Started by another system calling it, and works across Airtable. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/assistant-for-hubspot-chat-with-openai-and-airtable (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Assistant for HubSpot chat with OpenAI and Airtable

Started by another system calling it, and works across Airtable. It hands the judgement calls to OpenAI. 26 steps, 5 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fassistant-for-hubspot-chat-with-openai-and-airtable)

**26 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**4** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 1 Logic 11 Service 13

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **IF2** If *Logic*
- 3 **getHubspotMessage** Http Request *Service*
- 4 **IF** If *Logic*
- 5 **Airtable** Airtable *Service*
- 6 **IF1** If *Logic*
- 7 **OpenAi Create Thread** Http Request *Service*
- 8 **OpenAI** Open Ai *Model*
- 9 **createThread** Airtable *Service*
- 10 **OpenAI Run1** Http Request *Service*
- 11 **OpenAI Run** Http Request *Service*
- 12 **Get Run** Http Request *Service*
- 13 **Completed, Action or Inprogress** Switch *Logic*
- 14 **Get Last Message** Http Request *Service*
- 15 **Select Function** Switch *Logic*
- 16 **Wait1** Wait *Logic*
- 17 **Wait** Wait *Logic*
- 18 **respondHubspotMessage1** Http Request *Service*
- 19 **HTTP Request** Http Request *Service*
- 20 **HTTP Request1** Http Request *Service*
- 21 **Code1** Code *Logic*
- 22 **Code** Code *Logic*
- 23 **Submit Data** Http Request *Service*
- 24 **Submit Data1** Http Request *Service*
- 25 **Wait2** Wait *Logic*
- 26 **Wait3** Wait *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 26, with 5 branches, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Airtable account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fassistant-for-hubspot-chat-with-openai-and-airtable)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Generate n8n forms from Airtable and Baserow tables** 26 steps · Airtable](https://millionrounds.com/workflow/generate-n8n-forms-from-airtable-and-baserow-tables)
- [**Assistant for n8n widget with OpenAI and Airtable** 27 steps · Airtable](https://millionrounds.com/workflow/assistant-for-n8n-widget-with-openai-and-airtable)
- [**Assign unassigned Jira issues with Airtable** 28 steps · calls a model · Airtable, Jira](https://millionrounds.com/workflow/assign-unassigned-jira-issues-with-airtable)
- [**Email subscription service with Airtable** 24 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/email-subscription-service-with-airtable)
- [**From Google Drive to Instagram, TikTok & YouTube with Airtable** 24 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/from-google-drive-to-instagram-tiktok-and-youtube-with-airta)
- [**Track and triage ops requests from Gmail with OpenAI** 24 steps · calls a model · Airtable, Discord](https://millionrounds.com/workflow/track-and-triage-ops-requests-from-gmail-with-openai)
