MxAssist Logic Bot

Last modified: February 19, 2024

1 Introduction

MxAssist Logic Bot is an AI-powered virtual co-developer bot that helps you to model and configure your application logic in Mendix Studio Pro. It gives you contextualized recommendations on the next best activity in your logic based on the already designed activities, parameters, and other context-related information. It is built using the machine learning analysis of over twelve million anonymized application logics built with Mendix to detect and learn the best practice patterns in Mendix.

The key features of MxAssist Logic Bot are the following:

  • Smart search (from Studio Pro 10.6.0) - you can search for the element you want to add to your flow based on microflow or nanoflow parameters, domain model entities, or the documents in your app.

  • Next best action suggestion – it recommends the next best activities out of more than 40 different options with accuracy of 95%.

  • Auto-configuration – it does not only provide next best action, but automates the development further by pre-populating the parameters for such action.

  • Contextual suggestions – it derives context in different ways, including by ’looking’ left and right in your logic when the developer inserts a new activity or decision mid-flow; and by inferring the context using the page where it is called from.

  • High accuracy – continuous improvement and training of the model has elevated the accuracy level from 95%.

2 Modeling Using MxAssist Logic Bot

2.1 Studio Pro 10.6 and Above

MxAssist Logic Bot is displayed as a blue dot in the flow. When you want to view recommendations on a particular flow, you can hover the mouse over that flow and click on the blue circle, or navigate to it with the keyboard and press Enter.

A Logic Bot dialog box is shown with recommendations of objects or activities to insert. This list initially contains the top 10 contextual suggestions. You can select an element directly from the recommendation list:

You can also type in the search box to search for the elements that you want to add to the flow. MxAssist Logic Bot works with fuzzy search, which means that it finds direct matches first and then any matches in the recommendations. For instance, you can use cr ob to search for the recommendations that contain Create Object.

The search is based on your microflow or nanoflow parameters, domain model entities, or the documents in your app. You can search for generic activities or elements from the toolbox:

You can search for sub-actions of an aggregate list or list operation activity, such as sum, count, or average:

You can also use the search to call microflows or nanoflows with a concrete document:

Choose a suggestion with the arrow keys and press the Enter key to accept it. The suggested element will be added to the flow and the Logic Bot will open on the next flow so that you can continue adding activities.

To open the properties dialog box after adding a suggested element, accept the suggestion with Shift + Enter (or Shift + mouse click). After closing the properties dialog box, the Logic Bot will open on the next flow.

2.2 Studio Pro 10.5 and Below

In Studio Pro 10.5 and below, an older version of MxAssist Logic Bot is available. It is enabled by default. You can switch it on and off using the On-Off toggle in the top right corner of the editor. You can also enable or disable it through the Enable MxAssist Logic Bot setting under the Mendix Assist tab in Studio Pro Preferences.

To use this older version of MxAssist Logic Bot, do the following:

  1. Click the icon to see the next best action recommendations:

    Logic Bot Recommendations
  2. Click one of the recommended activities to insert it into a microflow.

  3. In the Properties dialog box, configure the selected activity/event.

The activity/event is added to your microflow.

If you do not see the desired activity or element in the top-five recommendation list, you can click Add other element and choose an activity, loop, decision, merge, or object type decision.

3 Read More