Automate notifications about incoming customer reviews
This tutorial presents how to chain OpenAI models within MindsDB to analyze text sentiment and generate responses, which will be sent in the form of Slack notifications.
Data setup
Connect your database to MindsDB.
Query the input data table.
Model 1 setup
Configure an AI engine, providing the OpenAI API key.
Deploy a model using this AI engine.
Check its status.
Predictions from Model 1
You can make a single predictions, providing input to the mode in the WHERE
clause.
Or, make batch predictions, joining the data table with the model.
Automation
The alert system will send notification to Slack. Here is how to connect Slack to MindsDB.
Send a test message to test the connection.
Create a job to send notification every time a negative review is received.
These commands are used to monitor the job.
Use this command to disable the job.
Model 2 setup
Deploy a model using the AI engine created earlier.
Check its status.
Predictions from Model 2
You can make a single predictions, providing input to the mode in the WHERE
clause.
Or, make batch predictions, joining the data table with the model.
Automation and Chaining Models 1 & 2
Create a job to send notification, including a sample response, every time a positive review is received.
These commands are used to monitor the job.
Use this command to disable the job.
Was this page helpful?