# Comment Added Trigger

The **'Comment Added'** workflow trigger in Noloco provides a seamless way to automate actions when a comment is added to any table within your application. Whether you're managing projects, customer support, or internal tasks, this trigger allows you to streamline team communication and automate processes based on new comments. It is designed to save time, enhance collaboration, and ensure that key information is distributed efficiently.

{% @arcade/embed url="<https://app.arcade.software/share/DvUCDmJifX2RCtGBqrLY>" flowId="DvUCDmJifX2RCtGBqrLY" %}

### **What is the 'Comment Added' Trigger?**

The **'Comment Added'** trigger activates a workflow whenever a new comment is posted on any record in a specific table where the workflow has been set up. This allows you to initiate automated actions the moment someone leaves a comment, enabling faster responses, notifications, and updates across your team or system.

For example, if your Noloco app manages projects, you can set up a workflow so that each time someone comments on a project, specific team members are notified, or specific actions are automatically executed.

### **Setting Up the 'Comment Added' Trigger**

Here’s a step-by-step guide to setting up the 'Comment Added' trigger in your Noloco app:

1. **Navigate to Workflows**:
   * Go to the **Workflows** section in your Noloco app.
   * Click **Create Workflow** for your table or select an existing workflow to add the new trigger.
2. **Choose Trigger Type**:
   * In the trigger setup, select **'When a Comment is Added to...'** as your trigger.
3. **Define Actions**:
   * After setting the trigger, select the actions that will follow when a comment is added. Here are some possible actions:
     * You can [add conditions](https://guides.noloco.io/workflows/workflows/only-continue-if) that must be met for the workflow to proceed. For example, trigger the workflow only when a comment contains specific keywords or is added by a particular user group.
     * **Notify team members**: Send an email or in-app notification to the relevant people to keep them informed of the new comment.
       * **Send to Slack**: Post the comment to a Slack channel for team-wide visibility.
       * **Run Automations**: Such as Updating project status, assigning tasks, or moving records.
       * **Check for Keywords**: If you want to automatically filter comments for specific words (e.g., "urgent," "approve"), you can use conditions to trigger further actions, such as notifying managers or escalating issues.

### **Available Data**

**When you use the Comment Added trigger, you will be able to access the full details of the record that the comment was added to, as well as the full details of the comment, or the linked comments author (if relevant)**

<figure><img src="https://319575345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifpIQWu0HCVYAt51oT%2Fuploads%2Fgit-blob-97ffeaacc690ac59d6ba4820d4deccb76b77169b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Examples of Comment Added Workflows**

1. **Team Notifications**: Suppose your team collaborates on projects within a Noloco app. By setting up a 'Comment Added' workflow, you can notify team members anytime someone comments on a project, ensuring that everyone stays in the loop without manually checking the app.
2. **Slack Integration**: Integrate with Slack to keep your team informed. For instance, if a comment is added to a ticket or task, the workflow can automatically post that comment in a specific Slack channel, so team discussions and updates stay synchronized in real time.
3. **Keyword Monitoring**: With the 'Comment Added' trigger, you can automate responses based on specific keywords within comments. For example, if a client leaves a comment with the word "urgent" in a support ticket, you can automatically escalate the ticket, notify the relevant team, or move the ticket into a high-priority queue.

### **Best Practices**

* **Use Conditions**: Take advantage of conditions to filter comments and only trigger workflows when specific criteria are met. This helps avoid unnecessary notifications and actions.
* **Integrate with Communication Tools**: Use integrations like Slack or email notifications to streamline team communication and ensure that comments are seen and addressed promptly.
* **Test Before Activating**: Always test your workflows with sample comments to ensure the desired actions are executed correctly.
* **Monitor and Optimize**: After setting up the workflow, monitor its performance and adjust actions or conditions as necessary to optimize efficiency.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.noloco.io/workflows/workflows/comment-added-trigger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
