AI agent trigger record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hello everyone,
Is it possible to get the trigger record details as a data pill or any other way in AI agent?
Trigger is inbound email, and I want to get the sys_email record details like sys_id and message_id
Thanks,
JK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You should be able to reference the Target record attributes directly in inbound email triggers. What exactly are you intending to do after gathering the record details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @warren_chan ,
My requirement is, once I receive an email to ServiceNow. It should trigger this AI agent where I have a tool as getEmailLoop. To this tool I need to pass the message_id from the triggered email record.
Here I'm not sure how to get the message_id from the triggered email inside AI agent
Thanks,
JK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I'd recommend trying to formulate conditions from the Target record instead of the actual Email [sys_email] record.
If you must have Message ID, I don't believe you can get that from the Trigger conditions. You would have to work backwards from the Target record that is created/updated [Lead?] on the inbound email action, and cross-reference the Email [sys_email] record to get the Message ID. This is likely possible through scripting, but not sure if it's still worth it for your use case to jump through those hoops.