This workflow will allow you to use the 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 platforms and it will work similarly.

Prerequisites:

– Create a Hubspot Chat (Live chat available on the 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).

If you need support, feel free to message me.

Setup:

1. Create an OpenAI Assistant, define its functionality and functions.
2. Update the Hubspot modules with the Hubspot API Key.
3. Update the OpenAI modules with the OpenAI API Key.
4. 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.