SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Use Service Ticket Intelligence and Postman to Classify Service Requests

Train a machine learning model based on historical service requests in order to classify new requests.

Overview

🎓 beginner 15 min. Machine LearningBeginnerArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesService Ticket IntelligenceFree Tier

You will learn

  • โœ”How to authorize your client to communicate with your Service Ticket Intelligence service instance
  • โœ”How to upload training data and train a machine learning model to classify service requests
  • โœ”How to classify service requests into categories
Juliana Morais J Juliana Morais December 11, 2023
Created by May 25, 2020
Contributors

Prerequisites

Steps

Intro

Service Ticket Intelligence provides machine learning functionalities to effectively deal with service requests. Thereby, the service offers two main functionalities:

  1. The service is able to analyze the unstructured information in service requests and classify the requests into categories.

  2. The service is able to recommend solutions for service requests based on historical data.

Find more details on the Service Ticket Intelligence concepts here.


Step 1 Get an access token
โ€”

First, you need to retrieve an OAuth access token which will grant you access to the Service Ticket Intelligence APIs and allows you to communicate with your service instance. This access token is added to all your service instance requests.

Open Postman and make sure that the Env for STI sample collection 2012 environment is selected. For detailed steps, see Set Up Postman Environment and Collection to Call Service Ticket Intelligence APIs.

On the left, expand the STI sample collection 2012. Select the request, Get Access Token.

Click Send to send the request to your service instance.

Get Access Token
Get Access Token

The response includes your access_token that is valid for 1799 seconds (30 minutes). After that time, you will need to generate a new one using once again the Get Access Token request. There is no need to copy the access token as the collection automatically adds the token to all requests.

If you send a request and receive a response, as in the image below, with a status of 401 Unauthorized, your access token has expired. In this case please redo this step in order to get a new access token.

Unauthorized Response
Unauthorized Response

Step 2 Upload training data
+
Step 3 Train model
+
Step 4 Activate model
+
Step 5 Classify requests
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Get an access token 2. Upload training data 3. Train model 4. Activate model 5. Classify requests

Learn more →