--- title: Configure scripted extension points for the manage order operations AI agent description: Configure scripted extension points so that the manage order operations chat assistant can check product availability, validate order exception requests for delivery, quantity, and shipping location, and evaluate quote thresholds against your external inventory, ERP, or pricing systems. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/order-management/create-atp-api-call.html release: australia topic_type: task last_updated: "2026-08-04" reading_time_minutes: 3 keywords: [ServiceNow Otto, AI Agents, generative AI, agentic AI] breadcrumb: [Configuring the Manage Order Operations application, Business Portal, Configure, Sales Customer Relationship Management] --- # Configure scripted extension points for the manage order operations AI agent Configure scripted extension points so that the manage order operations chat assistant can check product availability, validate order exception requests for delivery, quantity, and shipping location, and evaluate quote thresholds against your external inventory, ERP, or pricing systems. ## Before you begin The application scope must be set to Manage Order Operations. You can change the application scope using the application picker \[Omitted image "globe-outline-24.svg"\] Alt text: in the Unified Navigation bar. Role required: admin ## About this task The demo data for the manage order operations agent includes sample implementations of the following scripted extension points. |Extension point|API name|Purpose| |---------------|--------|-------| |Order exception check|sn\_ord\_ops\_aias.orderExceptionCheckEP|Validate quantity, delivery availability, and shipping location for order line items.| |Threshold check for quote|sn\_ord\_ops\_aias.ThresholdCheckForQuote|Determine whether a requested quantity change crosses the configured threshold for quote-side handling.| To enable real-world functionality such as querying on-hand quantities, delivery dates, location feasibility, and quote thresholds from external Enterprise Resource Planning \(ERP\) or pricing systems like SAP or Oracle, replace each demo implementation with your custom logic. ## Procedure 1. Log in to the ServiceNow instance. 2. Navigate to **All** > **Scripted Extension Points** > **Scripted Extension Points**. 3. In the **API Name** field, search for a scripted extension point you want to configure. 4. View the sample script included in the demo data by selecting the API name of the extension point. 5. Create your own implementation of the selected extension point by selecting the **Create implementation** related link. 6. On the Script Include form for your chosen extension point, fill in the fields. For a description of the Script Include form fields, see [Script includes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/scripts/c_ScriptIncludes.md). 7. Edit the function in your extension-point implementation to apply your own logic, using the following function signatures. - **checkOrderExceptionReq** Placeholder function meant to be overridden. Use this placeholder to implement the logic to: - Validate the requested quantity for the specified order line items. - Confirm delivery availability for the order line items. - Validate the requested shipping location for the order line items. Input: ``` { "": { "lines": { "": { "product_offering": } }, "requested_changes": { "requested_quantity": , "requested_shipping_location": , "requested_expected_date": } } } ``` Output: ``` { "": { "canChangeQty": , "approvedQty": , "isQuantityError": , "quantityErrorMsg": , "canChangeLocation": , "isLocationError": , "locationErrorMsg": , "canExpedite": , "earliestDelivery": , "isDateError": , "dateErrorMsg": } } ``` - **isAboveQuoteThreshold** Placeholder function meant to be overridden. Use this placeholder to implement the logic to: - Compare the requested quantity change against your configured price or quantity threshold. - Return whether the request requires quote-side handling. Input: ``` casePayload: { "": { "lines": { "": { "quantity": , "product_offering": } }, "approved_changes": { "quantity": , "expected_date": , "location": } } } threshold: ``` Output: ``` ``` 8. Select **Update**. 9. Validate your implementation by requesting order changes from the Business Portal using the ServiceNow Otto Virtual Agent. For more information, see [Request order changes using ServiceNow Otto Virtual Agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/order-management/request-order-changes-now-assist.md). **Parent Topic:**[Configuring the Manage Order Operations application](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/order-management/configuring-manage-order-operations.md) **Related topics** [Using extension points to extend application functionality](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/web-services/extension-points.md) [Creating and adding a scripted extension point](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/web-services/impl-scripted-ext-pts-base-code.md)