I am trying to use my Rovo agent in my automation in this current way:
1. When a custom field 'Organization' is updated, ask the agent to look up that Organization name against a confluence document to return the corresponding email address of the user assigned to that Organization
2. Use the {{agentResponse}} to assign that user into the 'Request Participants' field in the work item
This works about 50% of the time because sometimes the agent will respond with just the email address (great), and sometimes it will return a long sentence like "The email address associated with <organization> is abc@123.com", which of course is not ideal.
Are there any ideas on how to get rovo to return only the email address every time? I've tried many things in the prompt all in the same vein of "only return the email address, do not type anything else" to no success.
mhm... So you *could* extract the email address per Regex. But also, have you tried to limit Rovos answer by giving him a Regex representing the email format?
"Your answer has to match this Regex: ...."
Not sure if that gets you anywhere but i imagine it may be more restrictive than "only give me the email"? worth a try anyway
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.