- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2025 05:18 PM
Hi,
Does anyone has experience of invoking an AI agent from a script such as script include, business rule etc ? Is there an API existing for this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2026 09:19 PM
Not for an AI Agent specifically, but for an Agentic Workflow, you can do this:
var request = {
targetRecordId: "25b65a1c936339100c8a30118bba10c7",
targetTable: "incident",
usecaseId: "78c687369f19d2d02b2d1597d90a1c97",
conversationUser: "46d44a23a9fe19810012d100cca80666",
objective: "Help me resolve the incident INC0010252",
conversationLabel: "INC0010252: Incident Resolution"
};
var aiAgentRuntimeUtil = new AiAgentRuntimeUtil();
var response = aiAgentRuntimeUtil.startAiAgentConversation(request);
gs.info(JSON.stringify(response));
Also discussed here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
No, I do not believe so. The Agentic AI capabilities work off of their own queue, so it wouldn't be possible to thread within some other execution/process.'
You can try invoking your AI agent via Subflow + Flow Action. I think if you do it this way, you have more options for how to handle the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi Warren, thankyou for your reply.
Could you tell me if we can wrap our Agentic Ai Workflow inside a gen_ai_skill.
and invoke the skill through the NAP panel.
Rather than making the workflow discoverable and be it available on all the NAP Panels.