Custom AI Agents not working

Jyo090
Tera Contributor

Hi Fellow community members,

We have developed custom AI agents in DEV and it's working fine over there,but when we move the update sets in to TEST instnace we are getting below error and not able to active . anyone seen this.

 

Jyo090_0-1779463631046.png

 

 

2 REPLIES 2

hugohuyghue
Tera Contributor

Hi,

In TEST mode, you need to verify or recreate the account used by the agent, restore the correct permissions, republish the agent, and, if it still doesn’t work, check the Update Set to resolve any dependencies before trying again.

Tanushree Maiti
Giga Patron

Hi @Jyo090 

 

refer KB: KB3031064 Error "You don't have the required access to complete this request. Try another request." ... 

 

Cause

The OOTB AI user(sys_user table, sys_id=67d120fb2ba2621056c8f4cd6e91bfbb) used in the Define data access configuration lacked a valid user ID, which is a mandatory requirement for proper authentication and access if additional roles are granted to the OOTB AI user manually. This caused the access authentication error when the AI user was selected as the execution user.

Resolution

1. Create a new AI user with a valid user ID.
2. Assign the required roles (e.g., admin and sn_aia_admin) to the new AI user.
3. Configure the Define data access setting in the AI Agent to use the new AI user with the valid user ID and assigned roles.
4. Verify that the AI Agent operates successfully with the new configuration.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: