Integrate Monkey Learn with Magento 2.X

Appy Pie Connect allows you to automate multiple workflows between Monkey Learn and Magento 2.X

  • No code
  • No Credit Card
  • Lightning Fast Setup
Heart

20 Million work hours saved

Award Winning App Integration Platform

About Monkey Learn

MonkeyLearn is a text analysis platform that helps you identify and extract actionable data from a variety of raw texts, including emails, chats, webpages, papers, tweets, and more! You can use custom tags to categorize texts, such as sentiments or topics, and extract specific data, such as organizations or keywords.

About Magento 2.X

Magento 2.x is an open-source e-commerce platform written in PHP. It is one of the most popular e-feature-rich platforms that you to manage your eCommerce store without any hassle.

Want to explore Monkey Learn + Magento 2.X quick connects for faster integration? Here’s our list of the best Monkey Learn + Magento 2.X quick connects.

Explore quick connects

Looking for the Magento 2.X Alternatives? Here is the list of top Magento 2.X Alternatives

  • Big Cartel Integration Big Cartel
  • Shopify Integration Shopify
  • Shift4Shop (formerly 3dcart) Integration Shift4Shop (formerly 3dcart)
  • Volusion Integration Volusion
  • WooCommerce Integration WooCommerce
  • BigCommerce Integration BigCommerce
  • Wix Integration Wix
Connect Monkey Learn + Magento 2.X in easier way

It's easy to connect Monkey Learn + Magento 2.X without coding knowledge. Start creating your own business flow.

  • Triggers
  • New Customer

    Triggers when Magento gets a new customer.

  • New Order

    Triggers when a new order is created (with line item support).

  • New Product

    Triggers when a new product is created in Magento.

  • New Sales Order Credit Memo

    Triggers when a new sales order creditmemo is created.

  • New Sales Order Invoice

    Triggers when a new sales order invoice is created (with line item support).

  • New Sales Order Shipment

    Triggers when Magento gets a new sales order shipment (with line item support).

  • Updated Customer

    Triggers when Magento gets a updated customer.

  • Actions
  • Classify Text

    Classifies texts with a given classifier.

  • Extract Text

    Extracts information from texts with a given extractor.

  • Upload training Data

    Uploads data to a classifier.

  • Create Category

    Create a new category

  • Create Customer

    Create a new customer

  • Create Order

    Create a new catalog order

  • Create Product

    Create a new catalog product

  • Create Sales Order Comment

    Create a new sales order comment

  • Create Sales Order Invoice

    Create a new sales order invoice

  • Create/Update Product

    Create/update a new catalog product

  • Update Product

    Update a catalog product

How Monkey Learn & Magento 2.X Integrations Work

  1. Step 1: Choose Monkey Learn as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Magento 2.X as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Monkey Learn to Magento 2.X.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Monkey Learn and Magento 2.X

Monkey Learn?

MonkeyLearn is an API for machine learning. It provides tops and services for developers and data scientists to classify and tag datasets and model new ones (see Figure 1. It allows users to create custom models from the web or from the command line. Additionally, it has a model management system that allows users to share their models with others.

Figure 1. Source. MonkeyLearn website.

Magento 2.X?

Magento 2.X is a platform for online stores. It was released in November 2015. Compared to the first version of the platform, Magento 2.X comes with a lot of new features and capabilities, including a lot of tops for developers and merchants, such as a new security model, a new shopping cart, a new payment model, a new inventory management system, a new administration module, and a new templating language (see Figure 2.

Figure 2. Source. Magento website.

Integration of Monkey Learn and Magento 2.X

The integration of Monkey Learn with Magento consists of three main parts. Monkey Learn API, Magento extensions, and configuration. The main part is the integration between Monkey Learn API and Magento extensions using the API Key and Secret Key provided by Monkey Learn.

Once you have set up your API Key and Secret Key on your account, you can integrate it with your Magento store. I’ll be using two extensions for this tutorial:

The first extension is created by me, so you can find the code on GitHub at . Essentially, it adds a text field to the Magento admin page, allowing users to enter any text to be sent to the Monkey Learn API. The second extension is created by iDevBooks, so you can find the code on GitHub at . This extension integrates the User Model with the Admin Panel of Magento 2.X. It basically provides an option to save user information to the database or export it into CSV format. User Model then uses this saved information to provide personalized services for users. For example, if you use User Model to create a customer profile based on his/her name, e-mail address, location, etc., you can later use it to provide customized prices, offers, target products, etc., for this particular user/customer. You can find more information about the User Model extension here.

Once you have installed both extensions via Composer (or by using other methods), you can connect them to your Monkey Learn account by editing the fplowing files:

app/code/local/Eoar/MyExtension/etc/config.xml app/code/local/Eoar/MyExtension/Block/Adminhtml/Model/UserModel/etc/config.xml app/code/local/Eoar/MyExtension/Block/Adminhtml/View/Errors/etc/config.xml app/code/local/Eoar/MyExtension/Block/Adminhtml/View/Layouts/defaults.xml app/code/local/Eoar/MyExtension/Block/Adminhtml/View/MagentoWidget/etc/config.xml

You will have to replace the data in the <Your_API_Key> string with your own API Key, and change the <Your_Secret_Key> string with your own Secret Key. You can find more information about setting up the APIs here

After you have connected both extensions with your MonkeyLearn account, you are ready to test it out! For this purpose, I’ll be using my sample dataset that I’ve created earlier in this post. You can download this dataset from here or here , or you can use your own dataset if you have one already prepared beforehand (you can read more about creating datasets here . To test out whether these extensions are properly connected to MonkeyLearn and to run the classification task yourself, please do the fplowing:

Go to Admin > Catalog > Product > Attributes > Manage Attribute Sets > Add New Attribute Set > Attribute Set Name – “SampleSet” > Attribute Set Type – “Text” > Create Save your changes Go to Admin > Catalog > Product > Manage Products > Add New Product > Catalog Product – “SampleProduct” > Save your changes Go to Admin > Catalog > Product > Attributes – “SampleProduct – SampleSet – Label” – “SampleProduct – SampleSet – Description” – Edit > Edit Text (or Edit HTML. > Save your changes Go to Admin > Categories > Manage Categories > Add New Category > Category Name – “samplecategory” > Save your changes Go to Admin > Search Engine Optimization (SEO. > Meta Data Optimization > SEO Title Tags & SEO Description Tag (Paste your description into these fields. > Save your changes Go to Admin > System > Configuration > ADVANCED > Configuration Handle – “Yes” (You should set this up manually; read more about configuring config handles here . Go to Admin > System > Configuration > ADVANCED > Localization – “Yes” Go to Admin > Store Management > Import / Export Data – “Import CSV file” – Upload samplecsv file from here Go to Admin > Products – Browse all products – select one by clicking on its price – click on View Details tab – You should see a popup dialog with a description of the attribute set you just created – Click on Show More Details button – Your extension should now automatically connect with MonkeyLearn and try to classify your sample product – The extension should send your sample product description over to MonkeyLearn – MonkeyLearn will then try to classify your sample product description – The extension should then display which classifier was used by MonkeyLearn as well as its accuracy score – If you want to save this score as a custom property, click on Save as Custom property Select any attribute from your attribute set under SampleProduct – Show More Details tab – Select Extension from the dropdown menu under Extension Classifier – Then select User Model from Extension Classifier dropdown menu – Select Enum from Attribute dropdown menu Find the attribute named “Label” under SampleProduct – Edit Image Tab – Upload your image into this field – Click on Show More Details button – Your extension should now automatically connect with MonkeyLearn and try to classify you image selection – The extension should send your image selection over to MonkeyLearn – MonkeyLearn will then try to classify your image selection – The extension should then display which classifier was used by MonkeyLearn as well as its accuracy score – If you want to save this score as a custom property, click on Save as Custom property

The process to integrate Monkey Learn and Magento 2.X may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.

Page reviewed by: Abhinav Girdhar  | Last Updated on November 09,2022 06:11 pm