Training the AI

The following details how to train the AI for required inputs such as the “Username” and “Password” fields for the login page.

This section documents the process when using AI 3.0 (AIQ 5.0.0 and later).

  1. Blueprint Overview shows that the Blueprint had stopped running after entering the URL and clicking all the elements that are found on the page. The two resulting page states are displayed.

  2. Click Pages or State Snapshots to see the page and page state results.

  3. From there you can expand the page results to see more details about the pages and page states.

  4. Here you can see that the Blueprint has identified unknown input on the login page for username and password. Click Create Custom Action to begin training the AI how to process those inputs.

  5. The New Custom Action section shows which actions for which you can create custom actions.

  6. Select the checkboxs for the actions for which you want to create new custom actions. In this example it is for the actions associated with entering the username and password.

    Click Nextafter making the selections.

  7. In the action dropdown select Set Value.

  8. Name your new custom action. You can also enter an optional description.

    In the input fields, enter the necessary values. If needed you can change the sequence by dragging and dropping the individual actions.

    Click Create and Execute when finished.

  9. Your new custom action shows as Pending.

    You can see all of the related actions.

  10. Click Add Custom Action and select Execute JavaScript. Click Next.

  11. Enter the custom action name and description and click Create and Execute.

  12. Your new custom action shows as Pending.

  13. Navigate back to the Blueprint Overview page and verify that the Start button is enabled. This will tell you that the newly added custom actions can be executed by the Blueprint.

  14. Click on additional options menu (the three dots) and check the options that are available.

  15. Click Export Template.

  16. Save the Blueprint template.

  17. Click New.

  18. Click Blueprint from Template.

    See AI Script Generation Templates for more information.

  19. Open the Blueprint template file that you just saved.

  20. After opening the template file you are prompted to save a new blueprint file. Provide the blueprint name and click Save.

  21. The Blueprint Editor opens. Verify the Blueprint settings and details. Click Execute.

  22. Specify the execution details, then click Add to start the Blueprint execution.

  23. The Blueprint will use the custom actions you created and will be able to login to the Salesforce supplication using the username and passord details that you supplied. This will allow the Blueprint to continue past the point where it stopped in its initial execution. Use this process to train the AI by creating any additional custom actions.

For more information about working with Blueprints and configuring AI within AIQ, see AIQ AI Implementation Strategy.