Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to populate a Record Producer field using Generative AI based on user selection?

Mohamed_009
Tera Contributor

Hi Everyone,

I am working on a simple Record Producer use case where I want to demonstrate Generative AI capabilities to our customer.

The Record Producer contains only three fields:

  1. Type of Request
  2. Product Recommendation (visible only when Type of Request = Product Recommendation)
  3. Product Summary (should auto-populate)

When the user selects Product Recommendation, they can choose a product from a reference list. Based on this selected product, I want the Product Summary field to be automatically populated using Generative AI.

The product details already exist in a separate table, and the goal is to let GenAI generate a short, meaningful summary instead of fetching data directly with GlideRecord.

Our objective is to use Now Assist Skill Kit / Generative AI to generate the summary dynamically and showcase GenAI features to the customer.

I need guidance on:

  • How to design a Skill in Now Assist Skill Kit for this use case
  • How to pass the selected product record as input
  • How to return only the summary generated by GenAI
  • How to auto-populate the Product Summary field on the Record Producer

Any suggestions, steps, or best practices would be very helpful.

Thanks in advance!

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

This is an example of how AI should not be used. If you already have the data, why do you need AI to go and fetch it? This is absolutely not helping your customer at all. If the data wasn't there and it should be generated, you're talking about a use case, but this is a very expensive way to get a field populated in SN. This 'use case' is costing your customer more money than they will ever save on it.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

4 REPLIES 4

Mark Manders
Mega Patron

This is an example of how AI should not be used. If you already have the data, why do you need AI to go and fetch it? This is absolutely not helping your customer at all. If the data wasn't there and it should be generated, you're talking about a use case, but this is a very expensive way to get a field populated in SN. This 'use case' is costing your customer more money than they will ever save on it.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

@Mark Manders 

Thanks for your response. I fully understand your point — and yes, I agree that this is not a typical production use case.
Just to clarify, this is already developed inside a scoped application and we are using it purely for POC/demo purposes to showcase how Generative AI and Skill Kit can dynamically generate summaries based on user selection.

I do have one specific technical question and would really appreciate your guidance:

For POC/training purposes, what is the recommended method to pass the selected product record from a Record Producer into a Now Assist Skill Kit Skill?

More specifically:

  • How should we capture the selected product value from the Record Producer (sys_id / field values)?

  • What is the best way to send this data as input to the Skill Kit (full record JSON, selected fields, or just sys_id)?

  • How should the Skill be designed to receive and process this input inside the prompt?

  • Any best practices to ensure the Skill returns only the generated summary back to the Record Producer?

Since this is just a demo scenario inside a scoped app, I want to follow the right architectural approach for Skill input → GenAI processing → summary output.

Any suggestions or examples would be very helpful.
Thanks again for your time and guidance!

This is not an AI use case, so there absolutely is no right architectural approach to use skills at all. Don't present your customer with very expensive solutions that can be achieved in a very simple way. If they want to see GenAI at work, find a good use case. This isn't one.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark