Data upload in AI Control Tower

Siddharth9
Tera Contributor

We are trying to upload data for AI systems and as per documentation and scripts in record producer, there is an entry that needs to be made in atleast 4 different tables for all of it to work. Is there any utility or quick guide on transform maps, transform scripts that helps in executing data upload in AI Control Tower?

7 REPLIES 7

sandeepdutt
Tera Patron

Hi @Siddharth9 ,

There is no such utility which comes OOTB unfortunately apart from "DATASETS" which you are trying to create for a dedicated Source. 

Create AI system assets  , same would be followed for AI Models, Promt and Dataset assets.

 

 

 

which is extremely painful if you need to create 4 updatesets for AI Systems, 4 for AI models, etc.

Parneet1
Tera Expert

I previously saw your question when I was attempting to do the same and searching for a better way to import AI assets on community.

I had previously worked with Catalog submission using Cart API and wanted similar functionality that mimics record producer form submission using script/API, and all ServiceNow defined logic auto-triggers without me needing to check the number of tables, sequencing of tables to create individual records, etc.

 

After extensive research and hit-and-trials, I stumbled upon a solution: this link (thanks to the person who wrote it), which worked like a charm- it's an API to submit a record producer. Right now, this link shows Service Unavailable, but I have my notes and can provide details about it.

 

    var recordProducerId = ""; // record producer sys_id

    var request_body = {

             variables: {

            "<variable name>": source.getValue("<field name of staging table>")

            "<variable name>": source.getValue("<field name of staging table>"),

        }

    };

 

    var catalogItem = new sn_sc.CatItem(recordProducerId);

    var variables = request_body.variables || {};

    request_body.sysparm_id = recordProducerId;

    request_body.sysparm_action = 'execute_producer';

 

    if (!request_body.sysparm_item_guid)

        request_body.sysparm_item_guid = gs.generateGUID('');

    var generatedRecord = catalogItem.submitProducer(request_body); // allow record creation via record producer

 

ignore = true; // deny record creation via transform

 

---------------------------------------------------

This is not a documented API, the mentioned link is the only documentation of this API per my search, and it works (as of Sep 2026). I used it in the transform map's script field, and in the end, set ignore = true to prevent duplicate record creation via transform. Everything related to Record producer's logic, such as record insertion in Question Answers table, triggering Record producer scripts etc.- doesn't need to be duplicated. I hope this helps! Let me know for any questions.