Ai agent

kali
Tera Contributor

Hi All,

1)I am learning Ai agents , as a part of learning i am creating a POC where i need the AI agent to retrieve the field value of a incident and pass to another agent, how can i do this?I tried scripting but i am getting the error message that "There is something wrong on my side".Can you please help me on this

2)Does anybody has any resource on different tool along with examples. I tried looking at the ai academy but there are too many videos

Thanks in advance

5 REPLIES 5

PoonkodiS
Giga Sage

Hi @kali 

Refer this link, it shows how the data is collected in output..The reason for the issue is not collecting the inputs and follow the script for your reference.

https://www.servicenow.com/community/now-assist-forum/how-parameters-gets-pass-from-tool-to-ai-agent...

 

Regards,

Poonkodi

Nishant8
Tera Sage

Hello @kali , 

If your agents operate within an agentic workflow, you can easily facilitate an agent handshake by writing the proper prompt. Essentially, the AI Orchestrator manages Agent-to-Agent communication.
To retrieve a value from an incident, you can use the Record Operation tool. This tool allows you to define a lookup for the incident, collect the output, and pass it to another agent.
Regarding your second point, you can refer to the information below to help you get started with your exploration.
https://www.servicenow.com/community/now-assist-articles/ai-agent-tools-getting-the-most-out-of-your...
 

Regards,

Nishant

kali
Tera Contributor

Hi @Nishant8 ,

I tried the above solution, thanks for sharing it.It is saying that could not find the incident record even though the number provided is correct and used the look up record and provided the input too.

Hello @kali ,I suggest starting with a single agent and expanding later. If you are having trouble with the lookup tool, ensure you have added the input and used it correctly in your filter condition.

For example, if incident_number is your defined input, set your filter field to Number and use {{incident_number}} as the value. Additionally, make sure to include clear instructions for your agent, such as:

- Extract the incident number from the user's message.

- Pass the extracted incident number into the lookup tool to find the record

 

If you still have any issues, please share the screenshot of your agent along with the instructions used.

 

P.S: I've not tried the steps above so please make necessary changes in the field name or typo, if required.

 

Regards,

Nishant