Create skill for ServiceNow

Last Updated: 25.10.2019

You can integrate Hala with ServiceNow for creating new incidents in ServiceNow or for processing the new incidents that end-users create in ServiceNow (with this approach you can use AI technologies for the automation of the incidents in ServiceNow).

Step 1. Go to the Integration section on the Hala Platform, and add the new integration for ServiceNow. Provide the values and Save your integration.

Step 2. Go to the Actions section on the Hala Platform, and create a new action. Provide the name for the action and select the integration.

Step 3. Make the configuration of your API service. You can read more information about the ServiceNow API documentation here. After filling the values, please save your changes.

Step 4. You have set up integration and action. Now, you need to create an intent to recognize the user input about creation of new incident. Go to the Intents section on the Hala Platform and press New Utterance

Step 5. To change the default name of the intent, click on icon pencil next to the default value, or you can click on the default value, and then you will be able to modify it.

Step 6. Specify the name of the intent and press Enter

Step 7. Now you need to provide training examples (at least five examples).

Step 8. Save your changes and train model

Step 9. Go to the Skill Kit section on the Hala Platform and create a skill by pressing the button Create skill

Step 10. Provide the name of the skill, description, and tags (last two is optional). Press next for creating the dialog flow.

Step 11. You will be promoted to the interface for creation dialog flow. Create the first root node by pressing the button Add new

Step 12. Open the created dialog node and fill it.

  • Field Name - you can enter any value, for example "Create new incident"

  • Conditions - here you need to specify created intent intent.sys_createNewIncident

  • Actions - skip this section

  • Context - skip this section

  • Output - provide the response to the user

Step 13. Create a child node to process the user input.

Step 14. Open the child node and fill it.

  • Field Name - you can enter any value, for example "Get problem description"

  • Conditions - here you need to specify the condition input.text

  • Actions - When we got the needed information from the end-user, we can send the API request to the ServiceNow. Add the Action that we have created previously. When you add the action, you would need to specify the context variable where the response from the ServiceNow will be stored, for example, context.serviceNow

  • Context - We need to save the description of the problem into the context variable description

  • Output - In output you can write something like this "Please wait, I am creating a new incident in ServiceNow."

Step 15. Create a new child node to process the API response from the ServiceNow.

Open the created node and fill it:

  • Field Name - you can enter any value, for example "Create incident in ServiceNow"

  • Conditions - Specify the context variable that was created for the Action Response on previous steps: context.serviceNow

  • Actions - skip this section

  • Context - skip this section

  • Output - For output you can use the next text:

Answer from Service now {{context.serviceNow.result.number}}

‚Äč

Step 16. Save the changes by pressing button "Save Changes". You dialog tree should look like this:

Remember to save your changes.

Step 17. Test the results. Go to the Hala Web Chat by using the next link https://chat.hala.ai/ and type the first message in the chat. You can type one of the trained phrases, or you can use new phrases that weren't specified in intent training.

Congratulations! You have created the skill and tested it.