Published on

November 24, 2023

Tutorial
eBook

Akkio + Zapier + Twitter: AI-Driven Customer Engagement

Using Akkio and Zapier to monitor your Twitter feed for negative customer reviews, then notify your team via slack to respond.
Jon Reilly
Co-Founder, Co-CEO, Akkio
Tutorial


The ability to add AI to a Zapier workflow opens up a world of possibilities. In this example, we will train an AI model to recognize positive and negative restaurant reviews. We will then deploy that model via Zapier to monitor a Twitter account. When negative feedback is detected, we will slack the customer success team to follow up with the customer and mitigate the damage. 

This is just one example of how AI can be used in conjunction with Zapier to automate workflows. The possibilities are endless and limited only by your imagination. So if you have an idea for how AI can help you automate your work, don't hesitate to give it a try.

Step 1: Training your model in Akkio

To start, we upload a set of existing restaurant reviews into a new Akkio flow. For this demonstration, we have 1000 different text examples that are tagged as positive or negative. As you can see below, Akkio will automatically detect text in one column (the review) and a category in the other (positive or negative). 

Next, we add a prediction step by choosing “add step” on the left-hand side, and select “review” as the prediction target, then train the model. Training takes about 30 seconds while the AutoML system determines the best AI model for this dataset. When complete, we are presented with the model report, which helps us understand how the model performs. The model is trained on 80% of the data and then tested on the held back 20% of the data. Our results look like this: 

Zooming in on the performance, you can see that the model is going a great job - it correctly classifies the review’s tone as positive or negative over 95% of the time! 

Now that we have built our ML model, we add one more step on the left-hand flow menu - deploy. We choose Zapier and hit confirm. 

When deploy is clicked, the confirmation screen means the model is now live and ready to be integrated into our Zapier Zap. 

Step 2: Building your Zapier Zap

Log into Zapier and start a new workflow. Because we will be monitoring Twitter, we will begin with the Twitter integration and connect it to our account. Because I don’t run a restaurant, we will use my Twitter handle @jonathonreilly. We will search for when my account is mentioned:

And we will trigger on my handle. 

You can then quickly confirm that the trigger is working correctly by validating that it pulls your latest mention. The next step is to pass the mentions (reviews) to the Akkio model we set up in Step 1. Simply add a step, search Akkio, and connect it. Then choose the event “make a prediction,” as shown below: 

Next, you will need to connect your Akkio account. You only need to do this step once. After that, all of your deployed ML models will be available for use in Zapier. Follow the link to your team settings page in the Akkio web app, and copy and paste your API key, then choose to continue. 

Now that your Akkio account is connected to Zapier, you can choose the model you created in step 1 (in this case “Akkio-Restaurant”). For the input “Review Text,” select the tweet’s text (which will also show the last time the target account was mentioned).

Finally, run a test to make sure you are getting predictions back correctly and turn on the Zap. 

The next step is adding building the Slack integration. First, we only want to slack the team if the review is negative so we add a filter step that triggers on the Akkio prediction and continues if the review is negative: 

Finally, we add the step to send the slack message. If necessary, follow the steps to connect your Slack to Zapier. Choose the event “send a channel message” and select your slack account. 

Then set up the action - we will send both the URL of the tweet, the User name, the text of the negative review tweet, and the Akkio AI model output (that it’s negative). Including the Akkio prediction is not needed, but it helps us double-check the Zap is working correctly. 

Finally, run the test, and make sure the text pops up correctly in your slack channel. If everything has worked correctly your Zap should look like this: 

Step 3: Making sure everything is working as expected. 

I had someone send a negative and a positive review of a restaurant mentioning my Twitter handle. 

As expected, only the negative review is forwarded to the slack channel for the team to address. 

Wrapping Up

Zapier is an excellent tool for automating business workflows, and when you combine it with the power of Akkio machine learning, you can automate incredibly complex tasks. 

Let's consider a few other use-cases where Zapier and Akkio could work together to save you time and effort.

If you run a marketing agency, for example, you could use Zapier to trigger a Akkio lead scoring model whenever a new lead comes in. This would allow you to automatically prioritize your leads, and save your team time and effort.

If you're in e-commerce, you could use Akkio to predict which customers are likely to churn, and then use Zapier to automatically reach out to them with targeted retention offers.

Or, if you're in HR, you could use Akkio to predict which employees are at risk of leaving, and then use Zapier to automatically reach out to those employees' managers with suggestions for how to keep them engaged.

Meanwhile, a finance team could use Akkio to predict which accounts are likely to be paid late, and then use Zapier to automatically escalate those accounts for follow up. Within finance, a fraud team could use machine learning models to predict which transactions are likely to be fraudulent, and then use Zapier to automatically flag those transactions for manual review.

The possibilities are endless - but the point is, when you combine the power of Zapier and Akkio, you can automate just about anything. So if you're looking for a way to streamline your business, give Zapier and Akkio a try.


By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.