Sentiment analysis intercom data airbyte
Introduction
In this tutorial, we’ll analyze sentiment of Intercom conversations. We’ll use Airbyte to extract data from Intercom and store it into a Google BigQuery database. Then, we’ll make this data available to MindsDB, create and deploy a GPT model within MindsDB, and join both data and a model to predict the sentiment values to be further analyzed in business analytics tools.
Data Setup
We use Airbyte to pull data from Intercom and load it into a Google BigQuery database.
You can try Airbyte Cloud or use the Airbyte Open Source version.
Follow this video or this detailed tutorial to learn how to pull conversation data from Intercom and load it into a Google BigQuery database using Airbyte and visualize it using Metabase analytics.
Connecting a Database
Now you can connect the Google BigQuery database that stores the Intercom data to MindsDB.
Follow this instruction to connect your database to MindsDB.
Creating a model
Let’s create a GPT model that we’ll use to predict sentiment of Intercom conversations.
Before creating an OpenAI model, please create an engine, providing your OpenAI API key:
Here is how we can check its status:
Once the status is complete, we can proceeed to make predictions.
Making batch predictions
Now we join our data table (joined_conversations) that stores Intercom conversations with the model (sentiment_classifier_model) created in MindsDB. That’s how we can make batch predictions for all conversations at once.
Run it in the MindsDB editor to find out the output.
What’s Next?
Want to learn more about MindsDB? Check out these resources:
Was this page helpful?