Automatically assign categories during SR and PR creation

  • Release version: Zurich
  • Updated February 11, 2025
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Automatically assign categories during SR and PR creation

    This feature uses AI-driven category prediction to automatically assign product and spend categories at the line level when creating or updating Service Requests (SRs), Purchase Requisitions (PRs), and Purchase Orders (POs). It ensures consistent, accurate classification to improve reporting, streamline procurement, and reduce manual effort.

    Show full answer Show less

    Key Features

    • AI-driven Predictions: Uses classification and similarity solutions to predict product and spend categories based on line item details and historical data.
    • Automatic Updates: Categories are only updated if the fields are empty and if AI confidence exceeds a configurable threshold (default 80%).
    • Fallback Logic: If AI confidence is low, specialized Product category predictor and Spend category predictor skills suggest categories for procurement specialists.
    • Visual Indicators and Audit Trail: AI-updated fields display visual cues and add comments in the activity stream for transparency.
    • User Overrides: Manual category changes are allowed, captured, and used to improve AI model accuracy.
    • Document Analysis: The prediction models analyze attached documents’ content (e.g., product name and description) for better categorization.
    • Automatic Auditing: An automated audit compares existing categories with new AI predictions to flag inconsistencies without automatic overwrites.
    • Integration Support: Supports category prediction for purchase requisition lines and purchase order lines imported via integrations using scheduled scripts.
    • Invoice Matching Consistency: Ensures invoice line spend categories align with corresponding purchase order lines during PO matching.

    Configuration and Management

    • The snspendgennai.spendcategoryconfidencescorethreshold system property controls the confidence threshold for category assignment (range 0–100, default 80).
    • Classification and similarity solutions for product and spend categories can be accessed and retrained to fit your specific procurement data and needs.
    • Users with categorymanageradmin and nowassistadmin roles can update and retrain these AI models.
    • Prediction models run automatically on a weekly schedule but can be retrained as needed.

    Practical Benefits for ServiceNow Customers

    • Accelerates and standardizes product and spend categorization at SR and PR creation, reducing manual classification tasks.
    • Improves accuracy and consistency of procurement data, supporting better reporting and automation downstream.
    • Provides transparency with AI predictions and enables manual overrides, ensuring procurement specialists retain control.
    • Supports integration scenarios and invoice matching processes to maintain category alignment end-to-end.
    • Facilitates ongoing AI improvements through user feedback and retraining capabilities.

    AI-driven category prediction automatically assigns product and spend categories when service requests, purchase requisitions, or purchase orders are created or updated, ensuring consistent classification at the line level.

    Key benefits

    When working with service requests (SRs), purchase requisitions (PRs), purchase orders (POs), or invoices, you must classify line-level items into product and spend categories. The Spend categorization agent enables this process by generating and validating AI-driven predictions for line-level items. The Product category and Spend category fields are updated only when they are empty. This process ensures accurate reporting, consistent procurement processes, and efficient downstream automation while reducing manual effort.

    View the Spend categorization agent by navigating to All > > AI Agent Studio > > Create and manage > Spend categorization agent.

    Classification solutions used for predictions

    For predicting product category on PRs and SRs, the following classification solutions have been added:

    • Product Category Classification For PRL
    • Product Category Classification For POL

    Classification solutions identify the most appropriate Product Category using product related information.

    You can access the classification definitions by navigating to All > Predictive Intelligence > Classification > Solution Definitions.

    Similarity solutions used for predictions

    For predicting spend category on PRs and SRs, the following similarity solutions have been added:

    • Spend Category by PRL
    • Spend Category by POL

    Similarity solutions compare line item details with previously categorized data to suggest the best Spend Category.

    You can access the similarity definitions by navigating to All > Predictive Intelligence > Similarity > Solution Definitions.

    To use the solution definitions for both PRL and POL in your instance, open each definition and select Update and Retrain. This action ensures that the solution definitions are trained to meet your specific requirements. Any PR or SR with empty Product category and Spend category fields is updated using the latest model outputs.
    Note:
    Users with the category_manager_admin and now_assist_admin roles can update the solution definitions.

    Product Category Classification solution definition interface with Update & Retrain button highlighted.

    Both solution types retrain automatically based on configured training frequency. By default, the solution definitions run automatically once every seven days.

    How to configure

    The sn_spend_genn_ai.spend_category_confidence_score_threshold system property defines the confidence score threshold for predicting the Product category and Spend category fields. You can set a value between 0 and 100. The default value is 80.

    Product and spend category prediction logic

    First, the Spend categorization agent predicts the product and spend categories for SR and PR records. It uses the prediction models and the system property confidence threshold value.

    If the confidence score is below the threshold, the Spend categorization agent does not predict categories. In this case, the Product category predictor and Spend category predictor skills act as fallback logic.

    • Product category predictor: Suggests the most likely product category for a fulfiller (sn_shop.procurement_specialist) when the primary ML-based category prediction does not meet the confidence threshold.
    • Spend category predictor: Suggests the appropriate spend category for a fulfiller (sn_shop.procurement_specialist) when primary ML-based category prediction does not meet the confidence threshold.

    These skills run and predict and update the Product category and Spend category fields on the PRLs for an SR or PR.

    View these skills by navigating to All > Now Assist Admin > Finance & Supply Chain > Sourcing and Procurement Operations.

    How it works

    When a new service request (SR) or purchase request (PR) is created using the I need a product, I need a service, or I need to submit a quote record producers, the Spend categorization agent is automatically triggered. The Spend categorization agent predicts and updates the product category and spend category on the purchase request lines (PRLs).

    If the AI-predicted category differs from the category selected by the requester, the Product category and Spend category fields are updated only when the prediction confidence score exceeds 80%.

    Visual indicators appear next to the Product category and Spend category fields in the Playbook view and the Purchase Line related lists, indicating that the fields were updated using AI predictions. In such cases, a corresponding comment is added to the activity stream, for example, "AI-suggested Spend category updated from X to Y."

    PRL form showing AI-suggested updates to Product and Spend category fields.

    You can manually select different values for either category field from the Product category and Spend category drop-down lists on the Purchase Line form.

    Purchase Line form showing Product category drop-down list with AI predictions highlighted.

    Any user-selected overrides are captured and used to improve future model accuracy. When a different value is selected, a banner appears at the top of the form that informs you that an AI-predicted value was applied.

    The prediction model also analyzes information in documents attached to the SR or PR, such as the product name and product description, to predict the product and spend categories.