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.

Bring AI Agents on the Forms

ameybhaisar
Tera Contributor

 

We have enabled the out-of-the-box Skills and Agentic Workflows in our system. Now, when we enter a prompt in the Now Assist chat, we receive a relevant and contextual response.

For example, if I type: "Generate Post Incident Review for INC000001", the system provides the appropriate output.

We have a new requirement: instead of manually entering a prompt in the Now Assist panel, can we provide a button to the user that triggers this activity automatically?

 

For example , In the below screenshot -- we have enabled a skill to summarize the incident. Through which we got the button. Is it possible to get the same for other AI Agentic Workflow and Agents like 'Generate Post Incident Review' for incidents?

 

ameybhaisar_0-1760523827442.png

 

 

 

3 REPLIES 3

Me Being Mustaq
Tera Guru

Hi @ameybhaisar ,

Yes, it is possible to add a button to trigger an Agentic Workflow (such as "Generate Post Incident Review") directly from the incident form or workspace, rather than requiring users to type a prompt in the Now Assist panel. ServiceNow supports triggering Agentic Workflows via UI Actions (buttons), Script Includes, APIs, or Flow Designer actions, just like the out-of-the-box "Summarize" skill button

 

How to Implement

  • UI Actions (Buttons):
    You can add a custom UI Action to your incident form or workspace. This button can be configured via server-side scripts or Flow Designer to call the Agentic Workflow for the current record. The ServiceNow platform allows triggering AI Agent and Agentic Workflow programmatically through a script or API with the right permissions.​

  • Agentic Workflow Configuration:
    When setting up or managing your use case in the Agentic Workflow Studio, you can define custom triggers—these can be record-based, schedule-based, or manual (such as from a button). Configuration options in the workflow allow you to specify when and where a trigger (including your button) will appear.​

  • Workspace or Now Assist Panel:
    In UI Builder, you can reconfigure the workspace to add or position the Agentic Workflow's trigger UI, ensuring that users see and use a button for workflows like "Generate Post Incident Review," just as you experience with the OOB summarize skill.

This approach will provide users with a seamless button—mirroring your current summary skill experience—for any custom or OOB Agentic Workflow like "Generate Post Incident Review".

 

If it is helpful, please hit the thumbs button and accept the correct solution by referring to this solution in the future it will be helpful to them.

 

Thanks & Regards,

Mohammed Mustaq Shaik

rpriyadarshy
Giga Guru

Have a Look at this Thread...

 

Call an AI Agent in Work-Flow---> https://www.servicenow.com/community/now-assist-forum/trigger-options-for-agentic-workflow-or-ai-age...

 

Now Trigger That Workflow using a button 

 

Regards

RP

PaulSylo
Tera Sage
Tera Sage

Hi @ameybhaisar - For Ex: if you enable "get Post incident review" Agent, then you will get this functionality and as @Me Being Mustaq said, create button and call from UI action, if you don't want to trigger.

 

but i have question, if you are doing this through button, you are defying the purpose of AI agent or you loosing this automnous way of working  and introducing a Tech debt ,isn't it ?

Regards,
PaulSylo

Kindly mark "helpful", if this helps, or Mark as "Accepted " if it solves your issues !