Creating User Plugins

Introduction

User Plugins are typically .NET libraries, they enable RPA developers to use complex .NET components/libraries inside INTELLIBOT design studio in a seamless way.

How Do I Start?

  • Writing a user plugin is very simple.
  • Create a .NET class library project in either VB.NET or C#.NET.
  • Let's use VB.NET for this example, but it is similar in C# too.

    Screenshot

  • INTELLIBOT runs on .NET 4.5 version to ensure compatibility with legacy operating systems.
    Hence, ensure your plugin project is targeted to .NET framework 4.5 version.

    Screenshot

  • Now a key step, to let INTELLIBOT know that this library is a plugin, add an assembly called “System.AddIn” into project references as shown below.

    Screenshot

    And also, the classes needed to be expose via the plugin, ensure "System.AddIn. AddIn" attribute is set as shown in the below picture.

  • INTELLBOT identifies classes inside plugin assembly with this attribute and loads all static methods of such classes.
    And the last but not the least, ensure methods/functions are marked as static.

    Screenshot

    Info

    Component Preview: (This is how it would appear on INTELLIBOT design studio.)

    Screenshot

Congratulations!!! You have just created your first plugin.

Returning Values

To return a single value, you can simply write a function as shown in the following example.

Screenshot

Info

Component Preview: (This is how it would appear on INTELLIBOT design studio.)

Screenshot

It is also possible to return multiple values by using attribute and ‘ByRef’ params as shows in the blow example.

Screenshot

Component Preview: (This is how it would appear on INTELLIBOT design studio.)

Screenshot

Installing Plugin

Once plugin is built, follow the below steps and import assembly into INTELLIBOT design studio.

  • Go to your INTELLIBOT project folder.
  • Create ‘UserPlugins’ folder if not exists.
  • Create another folder inside ‘UserPlugins’ with any name (for example ‘MyPluginDir) to place the plugin DLL.
  • Copy your plugin DLL to Your-INTELLIBOT-ProjectPath\UserPlugins\MyPluginDir.

    Screenshot

Once above steps are complete.

  • Go to “User Plugins” folder on right top corner of INTELLIBOT studio.
  • Click on “Add User Plugin”

    Screenshot

  • Choose the plugin and click ok to add as a reference.

  • As soon as reference is added, plugin would get added to the “User Plugins" folder.

    Screenshot

Users can also view all its static methods loaded into the tool box as below.

Screenshot