WorkflowHubSpotOpen

OpenAI Assistant for Hubspot Chat

Triggered by a webhook. Connects Airtable, Code, Condition, HTTP request, Switch, Wait, Webhook. Watch for new message on the chatbot. This can be triggered with [n8n chat widget]({{ $env.WEBHOOKURL }} hubspot or other chat services. Post assistant Message back to chat service, in this case Hubspot Create a new Thread, save it to database and RUN UPDATE USER FILTER FOR DUPLICATION Search for Threa

Front matter
name: OpenAI Assistant for Hubspot Chat
description: Triggered by a webhook. Connects Airtable, Code, Condition, HTTP request, Switch, Wait, Webhook. Watch for new message on the chatbot. This can be triggered with [n8n chat widget]({{ $env.WEBHOOK_URL }} hubspot or other chat services. Post assistant Message back to chat service, in this case Hubspot Create a new Thread, save it to database and RUN UPDATE USER FILTER FOR DUPLICATION Search for Thread ID in a database. This database is maintaing references between messaging service thread id and OpenI Thread ID. POST a new message to existing thread. Get Run Status: If still in progres
category: Automation
kind: Workflow
software: Airtable|Code|Condition|HTTP request|Switch|Wait|Webhook

OpenAI Assistant for Hubspot Chat

Triggered by a webhook. Connects Airtable, Code, Condition, HTTP request, Switch, Wait, Webhook. Watch for new message on the chatbot. This can be triggered with [n8n chat widget]({{ $env.WEBHOOK_URL }} hubspot or other chat services.

Post assistant Message back to chat service, in this case Hubspot Create a new Thread, save it to database and RUN UPDATE USER FILTER FOR DUPLICATION Search for Thread ID in a database.

This database is maintaing references between messaging service thread id and OpenI Thread ID. POST a new message to existing thread. Get Run Status: If still in progres

Steps

  • getHubspotMessage (httpRequest)
  • OpenAi Create Thread (httpRequest)
  • OpenAI Run (httpRequest)
  • Get Run (httpRequest)
  • Get Last Message (httpRequest)
  • HTTP Request (httpRequest)
  • Completed, Action or Inprogress (switch)
  • Wait (wait)
  • Wait1 (wait)
  • Submit Data (httpRequest)
  • Select Function (switch)
  • Code1 (code)
  • Wait2 (wait)
  • HTTP Request1 (httpRequest)
  • Code (code)
  • Submit Data1 (httpRequest)
  • Wait3 (wait)
  • respondHubspotMessage1 (httpRequest)
  • If Node (if)
  • Airtable (airtable)
  • IF1 (if)
  • createThread (airtable)
  • OpenAI Run1 (httpRequest)
  • IF2 (if)
  • Sticky Note1 (stickyNote)
  • Sticky Note (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note6 (stickyNote)
  • Sticky Note7 (stickyNote)
  • Sticky Note8 (stickyNote)
  • Sticky Note9 (stickyNote)
  • OpenAI (noOp)
  • Webhook (webhook)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Wait/1366_Wait_Code_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.