We have built an agent that is able to get an append file, read it's content accordingly the skill provided and write the conclusion in a comment when we do a Studio Test, but when we run it from an automation and use the Step "Add comment on work item" with the value <Agent reply: {{agentResponse.comment}}>
we also used {{agentResponse}} for the same step
the reply will be post by the agent but only show "Agent reply: "
I we look at the logs and "debug agent response", we can see that the agent has a values in the comment step:
{ "issueId": "test-111", "comment": "{A very large markdown reply"}
So my question is what I'm lacking in my Jira automation, to get the agent comment text ?
@Vasco If I understand your question correctly, there may be two scenarios to consider:
Scenario One
You need to double check your automation rule steps so ensure they are in the correct order and that actor adding the comment has the privileges to do it.
Scenario Two
If you may need to specify the format in the Prompt box for the Use agent step for the Rovo agent response. Example:
---
Prompt
Please answer in JSON format with the field `comment` (conclusion). You must return **only a valid JSON object**
---
Now you can use the smart value {{agentResponse.asObject.comment}} in your automation step to add the comment.
Hope that helps.
In your step "Add comment on work item" when adding {{agentResponse}} can you try to use the smart value picker to add the smart value and let me know how testing goes after.
It looks like your smart value is correct, as per Automation smart values - Rovo agents , but for some reason it's not recognizing it. I had a similar issue yesterday as I was pasting in the smart value, after I selected it from the smart value picker, saved, it worked like it should have the first time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.