Task Comments
Task Comments writes a comment on a task of the Task Center or reads the ones it has. It is how an agent puts its progress, a question or the result of its work in writing, where the whole team sees it.
It needs no credential. The comment is recorded under the flow’s name, with the Agent tag. It works as a normal node and as a tool of an agent.
When to use it
- An agent finishes a task and must leave the result written on it.
- An agent cannot go on and has to explain why, or ask the person responsible something.
- Before acting, the agent needs to read the task’s whole conversation, not only the last three comments the brief carries.
Configuration
| Field | What it does |
|---|---|
| Operation (required) | Add Comment writes a comment; List Comments reads the task’s comments. Add Comment by default. |
| Task (required) | The task’s key or link, for example SOP-12. {key} by default: the task that reaches the node in batch mode or, when none does, the one that started the run. See The task of the run. |
| Comment | What is written on the task. It takes Markdown. Required in Add Comment, the only operation that shows it. |
| Max Results | The most comments it returns, the latest ones, from 1 to 200. 50 by default. Only in List Comments. |
If something required is empty when the flow runs, the node fails once and names everything missing, for example Add Comment needs: Task, Comment.
Output
The Data output returns, for each comment, the task’s key, who wrote it and whether that is a person or an agent, the text and the date. List Comments returns them oldest first.
A new comment notifies whoever has the task assigned, whoever created it and whoever follows it, according to the notifications each of them chose. If the text mentions someone on the team with @ and their name, that person gets the mention notice.
Example
Inside a flow that starts with Task Trigger:
- Add Task Comments with the
Add Commentoperation, turn on tool mode and connect it to the agent’s Tools. - Leave Task with
{key}and Comment empty: the agent writes the comment and the component puts it on the task that fired the run. - In the agent’s instructions, ask it to leave the result in a comment when it is done.
Good practices
- Ask the agent for short, specific comments: what it did, what it found and what is left.
- As a tool, do not leave Comment filled in: the agent supplies it.
Related components
- Task Trigger: starts the flow with a task.
- Tasks: creates, reads, changes, moves, assigns and searches tasks.
- Task Attachments: lists, reads, adds and copies attachments.