Setting Up AI Center

Prerequisites

To set up AI Center for Druid, follow these steps:

Step 1: Set Up UiPath AI Center

  1. Go to your Orchestrator tenant, on the main menu click AI Center and click the Create Project button.
  2. The Create new project page appears.

  3. Give your project a name and a description and click Create.
  4. On the project main menu, click ML Packages. The packages page appears.
  5. Click Upload zip file. The Create new package page appears.
  6. Enter a Package name and in the Upload package field, select the MRZDetect.zip file you downloaded in the Prerequisites. 
  7. From the Input type field, select file, and in the Output description field, enter json.
  8. Click Create. The package newly created appears in the ML Packages page and has the status "deployed".
  9. From the main menu, click ML Skills and create a new skill.
  10. Choose the package previously uploaded.
  11. Click Create. The skill appears in the ML Skills page and has the status “available”.

Step 2: Set Up UiPath processes for AI Center

  1. Log in to your orchestrator account.
  2. Download the UiPath Studio.
  3. Install UiPath on your computer.
  4. Click on the desired tenant (in our example, SetupTenant).
  5. Go to Tenant, click Machines and then click Add.
  6. Click Add Machine Template.
  7. Enter a Template name, Description and a License - Unattended Runtimes.
  8. Click PROVISION.
  9. Click Copy Machine Key to Clipboard.
  10. Copy the extended URL, you will need it later. In our example, https://cloud.uipath.com/Druidsoft1/SetupTenant/.
  11. Open the UiPath Assistant app.
  12. Click on Preferences.
  13. Click Orchestrator Settings and from the Connection Type drop-down, select Machine Key. The system automatically fills in the Machine Name field.
  14. Paste the Machine Key (from step 9) and Orchestrator URL (from step 10) and click Connect.
  15. Go to Tenant, click Users and search for your email address.
  16. Click the three dots on the right of your email address and click Edit.
  17. Go to the Unattended Robot section and tap on Automatically create an unattended robot for this user.
  18. Open the command prompt app and type in whoami. Copy the answer.
  19. In the Domain\Username field, paste the answer from the command prompt app.
  20. In the Password field, enter the password of the Windows account you use to log in on this machine and click UPDATE.
    You successfully created a UiPath Floating Unattended Robot!
  21. Go to the Folders tab and click New Folder.
  22. Enter a folder Name, Description, select Modern as Folder type and Tenant package feed as Process packages source.
  23. Click CREATE.
  24. In the Tenant, click the Folders tab, select your folder, go to Machine Templates and click Manage Machine Templates.
  25. Select the Machine Template you created at step 7 and click UPDATE.
  26. On the left side on navigation bar, click the folder created at step 22. Click the Queues tab, then click Add.
  27. The Create Queue page appears.
  28. Complete the required fields and click ADD.
  29. The queue appears in the Queues page. Write down the queue’s name, you need it later.

  30. Open UiPath Studio.
  31. Click Open a Local Project.
  32. Browse to the folder where you unzipped the ocr-id-v2.0.zip file (in the Prerequisites), select the project.json file and click Open.
  33. Right click on the process name and click Open Project Folder.
  34. Open the Framework folder, then the Config folder. There are two json files.
  35. Open DruidConfig.json. Complete all the fields as shown in the figure below.
  36. Fill in the username or email address and the password for a service account who has permissions to create a flow.

  37. Save the file.
  38. Open UiPathConfig.json. Enter the folder name (from step 22) and the queue name (from step 29).
  39. Save the file.
  40. Switch to UiPath Studio and click Publish.
  41. The Publish Process wizard appears.

  42. Click Next
  43. Select Publish to Orchestrator Tenant Process Feed and click Publish.
  44. In your folder, go to Automations > Processes and click Add.
  45. Choose the published package, enter a Process name and click CREATE.
  46. Go to Automations > Triggers and click Add.
  47. Click the Queue button. The Create Trigger page appears.
  48. Enter the trigger Name, select the Queue (from step 29) and the Process Name (from step 43).
  49. Click ADD.
  50. Switch to UiPath Assistant. Find the process from step 43, click the three dots on the right and click Install.

You can now set up AI Center in Druid.

Step 3: Set Up AI Center in Druid

UiPath AI Center processes user files uploaded in chat. It uses Document Understanding and the extracted information is used in the conversational context. For example, the chatbot might ask the customers to upload the latest utilities bill and their identity card to check their address. Druid also uses AI Center to process image files (ID cards scan).

To set up UiPath AI Center, in the Druid ChatBot Portal:

  1. Go to UiPathAiFabric Flows and click on the flow ocr-identitycard-using-AiCenter.
  2. Click the Details tab, click the General section header and write-down the FlowID.
  3. Click the Steps tab, go to step process-mrz and click the edit icon.
  4. In the Set Variables section, for variable [[Account]].ResponseFlowId paste the FlowID copied previously.
  5. Click Save.
  6. On the main menu, click Integrations and search for uipath-ai-fabric-ocr-id.
  7. Click on it. The Edit Connector Action page appears on the ConnectorSteps tab.
  8. Click to edit the only connector step available (that is, uipath-ai-fabric-ocr-id).
  9. Click the Load Orchestrator Data button and choose your QueueName.
  10. Click Save & Close.