AI Agent hanging/looping when tested on AI Agent Studio

Arnold Zwane
Tera Contributor

I ‘m creating my first AI Agent, and ‘m experiencing an issue where it gets stack on the Configuration Item tool processing when testing it.

 

I have attached a document detailing the configuration I did and the test result.

 

Please assist/advise.

9 REPLIES 9

warren_chan
ServiceNow Employee
ServiceNow Employee

If your issue is the agent orchestrator incorrectly selecting between the Configuration Item tool or the Catalog Item tool, make sure you have:

 

1. AI agent instructions: Very specific instructions for when to use each tool

2. Tool descriptions: Detailed information for when the tool should be used, and the inputs/outputs expected for each Tool run.

Hi Warren,

 

Thanks for the response and advice. 

 

I don't see the Configuration Item tool from the options on the AI Agent configuration - there is only Catalog Item tool, which is the one I selected as shown on the screenshot. However, I reviewed my AI agent instructions and tried to be more specific; refer below, to no success:

Populate the following questions/variables on the selected catalog item form with the information as confirmed by the user:
1. Employee Name
2. Department
3. Refrigerator Model
4. Delivery Address
Use the "Order Now" button on the catalog item form to submit the request for the user.

 

Is there anything else you can think off?

 

Kind Regards

 

Arnold

Hi Arnold,

 

I saw the mention of Configuration Item Tool in your original Word doc. I didn't see it anywhere else.

 

What you probably can try then is go the other way with the prompt, and dial it back in the AI agent instructions so that it is more general. The Catalog Item tool will function more like "conversational catalog" so you may not need to tell it exactly what to map for each question/answer pair.

 

Here's one of my examples for this, using standard demo data, and ordering a variety of catalog items for a new hire individual:

 

AI agent name: Technology for New Hire Agent

 

AI agent description: Assists HR and IT teams in onboarding new hires by managing requests for laptops, mobile devices, accessories, email accounts, and application access. Streamlines the process to ensure new employees receive all required technology resources efficiently.

 

AI agent role: Handles onboarding technology requirements for new employees by processing hardware and software requests, coordinating provisioning, and communicating status updates. Acts as a central point for cataloging, ordering, and granting access to necessary devices and applications.

 

List of steps:

1. Gather the new hire’s details and role information.
2. Identify the required hardware based on the new hire’s role. Ask clarifying questions if necessary.
3. Order the appropriate laptop for the user.
4. Order laptop accessories as needed.
5. Collect the list of required software and application access for the new hire.
6. Create a new email account for the new hire.
7. Provide software access according to the new hire’s role.
8. Communicate the order and access status to the user.

 

Tools:

Screenshot 2025-11-13 at 11.04.01 AM 1.png

Apologies Warren - I didn't load all the replies when I sent my second reply this morning - I thought the one I sent yesterday didn't go through, and I 'm only seeing yours now!

 

Thanks for this detailed advice - your example looks like mine indeed. I will go through it and give you feedback as soon as I 'm done.

 

Kind Regards

 

Arnold

Hi Warren,

 

Thanks for the response and the advice. On the AI Agent configuration, I can only see the Catalog Item tool as an option, and that is the one I used in my config. The Configuration Item is not there.

 

With regards to the instructions, I tried to be detailed as much as I possible can; refer below:

If the answer is yes, then you will trigger the "Refrigerator Purchase" catalog item tool to perform the following:
Populate the following questions on the selected catalog item form with the information as confirmed by the user:
1. Employee Name
2. Department
3. Refrigerator Model
4. Delivery Address
Use the "Order Now" button on the catalog item form to submit the request for the user.

 

Any suggestions on how I how else I would put it?

 

Kind Regards

 

Arnold