Docs
NodesManagement Nodes
Edit Page on GitHub

GitHub - Add Comment

Add a comment to an existing Issue or Pull Request

outputgithubcommentprtoolEasy1
Social

GitHub: Add Comment

1
Flow
Comment URL
Tool
Flow
Not connectedFlow
Repository
Issue Number
Comment

Description

The GitHub: Add Comment node allows your workflows to interact directly with developers and users on GitHub by posting messages to specific Issues or Pull Requests. It authenticates using your connected GitHub account so that comments appear to come directly from you or your bot.

Crucially, this node serves a dual purpose: it can be executed as a direct step in a linear workflow, or it can be passed as a Tool into an LLM node. When provided as a tool, your AI agents can autonomously decide when to leave a comment and dynamically generate the response based on the conversation context.

Common Use Cases

  • Autonomous Code Reviewers: Passing this node as a tool to an LLM so it can read a Pull Request and automatically post constructive feedback or approve the changes.
  • Automated Triage & Support: Having an AI agent review newly opened bug reports and use this node to automatically ask the user for missing information (e.g., "Could you please provide the error logs?").
  • Welcome Messages: Triggering a workflow when a new contributor opens their first PR, and using this node to instantly post a standardized welcome message and a link to your contribution guidelines.

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowRepositoryRepository (e.g., octocat/Hello-World)TextIssue NumberThe Issue or Pull Request NumberTextCommentThe comment text (Markdown supported)Text

Outputs

The output connections this node provides:

NameDescriptionTypeFlowThe Flow to continueFlowComment URLThe URL of the posted commentTextToolThe tool version of this node, to be used by LLMsTool

Fields

The configurable fields this node provides:

NameDescriptionTypeRepositoryRepository (e.g., owner/repo)Value: ``TextIssue NumberIssue or PR NumberValue: ``TextCommentComment TextValue: Leaving a comment...TextAreaGitHubConnect your GitHub accountDefaultValue: ``social

Last updated on