Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to auto populate self assigned incidents through now assist?

Vishal_Jaiswal
Giga Guru

Through Now Assist chat, when I type "show me incidents assigned to me," the system shows the same.

How to achive this solution? Can anyone share the steps?

 

Currently, I am getting the following response. PFA

Vishal_Jaiswal_0-1789098404073.png

 

1 ACCEPTED SOLUTION

yashkamde
Giga Sage

Hello @Vishal_Jaiswal ,

 

Yes this is possible by creating an agent and adding it to agentic workflows for getting results into now assist panel :

Screenshot 2026-09-11 123543.png

 

1) First Create an AI Agent by navigating AI Agent Studio > Overview :

Screenshot 2026-09-11 123604.png

 

Add Script Tool into that agent :

Screenshot 2026-09-11 123631.png

 

Script :

(function(inputs) {
    // only string inputs are allowed 
    // return outputs object where the keys in it are understandable by LLM

    var str = "";
    var gr = new GlideRecord('incident');

    gr.addActiveQuery();
    gr.addQuery('assigned_to', gs.getUserID());
    gr.query();

    while (gr.next()) {
        str += gr.getValue('number') + ", ";
    }
    return {
        incidents: str
    };

})(inputs);

 

2) Then Create an Agentic Workflow :

Screenshot 2026-09-11 123615.png

 

If my response helped mark as helpful and accept the solution.

View solution in original post

2 REPLIES 2

Aditya_hublikar
Giga Sage

Hello @Vishal_Jaiswal ,

have you created any agentic ai for this ?  If no you just need to create agentic ai which will show incident assigned to you .

 

You can refer this :

Agentic ai guidence

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Adi

 

yashkamde
Giga Sage

Hello @Vishal_Jaiswal ,

 

Yes this is possible by creating an agent and adding it to agentic workflows for getting results into now assist panel :

Screenshot 2026-09-11 123543.png

 

1) First Create an AI Agent by navigating AI Agent Studio > Overview :

Screenshot 2026-09-11 123604.png

 

Add Script Tool into that agent :

Screenshot 2026-09-11 123631.png

 

Script :

(function(inputs) {
    // only string inputs are allowed 
    // return outputs object where the keys in it are understandable by LLM

    var str = "";
    var gr = new GlideRecord('incident');

    gr.addActiveQuery();
    gr.addQuery('assigned_to', gs.getUserID());
    gr.query();

    while (gr.next()) {
        str += gr.getValue('number') + ", ";
    }
    return {
        incidents: str
    };

})(inputs);

 

2) Then Create an Agentic Workflow :

Screenshot 2026-09-11 123615.png

 

If my response helped mark as helpful and accept the solution.